aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-15 06:41:54 +0800
committerbapt <bapt@FreeBSD.org>2013-06-15 06:41:54 +0800
commit355a2960db5115d0e27c7d2aecbd60f2db7e92eb (patch)
treeee54187112f11b0d31fc635a9e928f6ad5991892 /audio
parent8f2ad5681a9252be770bca88f1ecff1e6128f1b4 (diff)
downloadfreebsd-ports-gnome-355a2960db5115d0e27c7d2aecbd60f2db7e92eb.tar.gz
freebsd-ports-gnome-355a2960db5115d0e27c7d2aecbd60f2db7e92eb.tar.zst
freebsd-ports-gnome-355a2960db5115d0e27c7d2aecbd60f2db7e92eb.zip
Convert from WITH to OPTIONS
While here remove wrong pkgconfig dependency
Diffstat (limited to 'audio')
-rw-r--r--audio/libmad/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/audio/libmad/Makefile b/audio/libmad/Makefile
index a3af38fb6d54..0bbe9cf7895e 100644
--- a/audio/libmad/Makefile
+++ b/audio/libmad/Makefile
@@ -12,17 +12,17 @@ MASTER_SITES= SF/mad/${PORTNAME}/${PORTVERSION} \
MAINTAINER= ports@FreeBSD.org
COMMENT= Libmad library (part of MAD project)
+OPTIONS_DEFINE= SPEED
+SPEED_DESC= Optimize for speed over accuracy
+
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
-USE_GNOME= pkgconfig
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-debugging \
--enable-sso
-.if defined(WITH_SPEED)
-CONFIGURE_ARGS+= --enable-speed
-.else
-CONFIGURE_ARGS+= --enable-accuracy
-.endif
+
+SPEED_CONFIGURE_ON= --enable-speed
+SPEED_CONFIGURE_OFF= --enable-accuracy
post-patch:
@${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \