2012-10-21 10:47:17 +02:00
|
|
|
# Created by: Sergey Akifyev <asa@gascom.ru>
|
2003-12-07 01:50:00 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libmad
|
2004-07-07 09:17:28 +02:00
|
|
|
PORTVERSION= 0.15.1b
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 2
|
2003-12-07 01:50:00 +01:00
|
|
|
CATEGORIES= audio
|
2009-08-22 02:13:26 +02:00
|
|
|
MASTER_SITES= SF/mad/${PORTNAME}/${PORTVERSION} \
|
2003-12-07 01:50:00 +01:00
|
|
|
ftp://ftp.mars.org/pub/mpeg/
|
2009-08-22 02:13:26 +02:00
|
|
|
|
2012-10-21 10:47:17 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-12-07 01:50:00 +01:00
|
|
|
COMMENT= Libmad library (part of MAD project)
|
|
|
|
|
2013-06-15 00:41:54 +02:00
|
|
|
OPTIONS_DEFINE= SPEED
|
|
|
|
SPEED_DESC= Optimize for speed over accuracy
|
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-12-19 08:23:42 +01:00
|
|
|
USE_LDCONFIG= yes
|
2003-12-07 01:50:00 +01:00
|
|
|
CONFIGURE_ARGS= --disable-debugging \
|
2004-12-09 17:54:10 +01:00
|
|
|
--enable-sso
|
2013-06-15 00:41:54 +02:00
|
|
|
|
|
|
|
SPEED_CONFIGURE_ON= --enable-speed
|
|
|
|
SPEED_CONFIGURE_OFF= --enable-accuracy
|
2003-12-07 01:50:00 +01:00
|
|
|
|
2004-10-12 00:20:46 +02:00
|
|
|
post-patch:
|
|
|
|
@${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \
|
|
|
|
${FILESDIR}/mad.pc.in > ${WRKDIR}/mad.pc
|
2010-02-11 15:47:35 +01:00
|
|
|
@${REINPLACE_CMD} -e 's| -fforce-mem||' \
|
|
|
|
${WRKSRC}/configure
|
2004-10-12 00:20:46 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-09-30 00:01:20 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mad.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
2004-10-12 00:20:46 +02:00
|
|
|
|
2003-12-07 01:50:00 +01:00
|
|
|
.include <bsd.port.mk>
|