summaryrefslogtreecommitdiff
path: root/audio/arts/Makefile
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2004-05-02 18:05:22 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2004-05-02 18:05:22 +0000
commite7734ef40be36145254ccb8156a2e8b8468458c7 (patch)
treed19f235b2bb7d9e1123cc938f91e3fe8655a1748 /audio/arts/Makefile
parentConvert build switches to OPTIONS. (diff)
Add optional dependencies on esound and NAS.
Noticed by: Albert Kinderman <albert.kinderman@csun.edu> Lauri Watts <lauri@kde.org>
Notes
Notes: svn path=/head/; revision=108175
Diffstat (limited to 'audio/arts/Makefile')
-rw-r--r--audio/arts/Makefile32
1 files changed, 31 insertions, 1 deletions
diff --git a/audio/arts/Makefile b/audio/arts/Makefile
index 07093cf6b6f7..7ebaaf1a5bb2 100644
--- a/audio/arts/Makefile
+++ b/audio/arts/Makefile
@@ -23,17 +23,47 @@ LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile \
glib:${PORTSDIR}/devel/glib20 \
vorbis:${PORTSDIR}/audio/libvorbis
+WANT_GNOME= yes
USE_QT_VER= 3
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
QTCPPFLAGS+= -L${LOCALBASE}/lib
+USE_REINPLACE= yes
DO_NOT_COMPILE+=gmcop
CFLAGS+= -DHAVE_VASPRINTF
CONFIGURE_ENV+= DO_NOT_COMPILE="${DO_NOT_COMPILE}"
+OPTIONS= ESD "Enable esound support" off \
+ NAS "Enable NAS support" off
+
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_ESD)
+USE_GNOME+= esound
+.endif
+
+.if defined(WITH_NAS)
+LIB_DEPENDS+= audio:${PORTSDIR}/audio/nas
+.endif
+
+pre-configure:
+.if defined(WITHOUT_ESD)
+ ${REINPLACE_CMD} -e 's|arts_libesd_include=yes|arts_libesd_include=no|g' \
+ ${WRKSRC}/configure
+.endif
+
+.if defined(WITH_NAS)
+ ${REINPLACE_CMD} \
+ -e 's|LIBS="-laudio $$LIBS"|LIBS="-laudio -lm -lXt -lXau $$LIBS"|g' \
+ ${WRKSRC}/configure
+.elseif defined(WITHOUT_NAS)
+ ${REINPLACE_CMD} \
+ -e 's|ac_cv_lib_audio_AuOpenServer=yes|ac_cv_lib_audio_AuOpenServer=no|g' \
+ ${WRKSRC}/configure
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>