1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Convert from WITH to OPTIONS

While here remove wrong pkgconfig dependency
This commit is contained in:
Baptiste Daroussin 2013-06-14 22:41:54 +00:00
parent 7ece12c46d
commit 42deff41c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320976

View File

@ -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' \