summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2002-10-08 23:01:05 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2002-10-08 23:01:05 +0000
commitcf193e6015d465454c3e5f9dbf06fdada8b359e2 (patch)
tree7240c75dfcd4aa56ba3020d61c36f6a8191d55f9 /audio
parentinstalltion dir changed from lib to libexec (diff)
Clean up the configure step and allow building with an older version
still installed. Problem reported by: alane
Notes
Notes: svn path=/head/; revision=67670
Diffstat (limited to 'audio')
-rw-r--r--audio/flac/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/audio/flac/Makefile b/audio/flac/Makefile
index 9373a8fadc67..6ea2a7602beb 100644
--- a/audio/flac/Makefile
+++ b/audio/flac/Makefile
@@ -13,12 +13,15 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= naddy@FreeBSD.org
+BUILD_DEPENDS= ${LOCALBASE}/share/gettext/config.rpath:${PORTSDIR}/devel/gettext
LIB_DEPENDS= ogg.4:${PORTSDIR}/audio/libogg
.if defined(WITH_XMMS)
+# id3lib is only used by the XMMS plugin
BUILD_DEPENDS+= xmms-config:${PORTSDIR}/audio/xmms
LIB_DEPENDS+= id3-3.7.13:${PORTSDIR}/audio/id3lib \
xmms.3:${PORTSDIR}/audio/xmms
+CONFIGURE_ARGS+=--with-id3lib="${LOCALBASE}"
PLIST_SUB= XMMS=""
.else
CONFIGURE_ENV+= XMMS_CONFIG=/usr/bin/false # must be absolute path
@@ -31,10 +34,10 @@ BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
USE_LIBTOOL= yes
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
-CONFIGURE_ARGS= --enable-sse --enable-3dnow
-CONFIGURE_ENV+= CONFIG_SHELL=${SH} \
- CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS+=--enable-sse --enable-3dnow \
+ --with-libiconv-prefix="${LOCALBASE}" \
+ --with-ogg="${LOCALBASE}"
+CONFIGURE_ENV= CONFIG_SHELL=${SH}
.if defined(NOPORTDOCS)
MAKE_ENV= DOC=""
@@ -45,7 +48,12 @@ MAKE_ENV= DOC=doc
INSTALLS_SHLIB= yes
MAN1= flac.1
+# missing auxiliary script
+post-extract:
+ @${CP} ${LOCALBASE}/share/gettext/config.rpath ${WRKSRC}
+
+# "obj" is magic to our make(1)
post-configure:
- @${RM} -rf ${WRKSRC}/obj # "obj" is magic to our make(1)
+ @${RM} -rf ${WRKSRC}/obj
.include <bsd.port.mk>