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
|
2014-04-23 15:25:16 +02:00
|
|
|
PORTREVISION= 5
|
2003-12-07 01:50:00 +01:00
|
|
|
CATEGORIES= audio
|
2013-10-12 20:16:59 +02:00
|
|
|
MASTER_SITES= SF/mad/${PORTNAME}/${PORTVERSION}
|
2009-08-22 02:13:26 +02:00
|
|
|
|
2013-10-12 20:16:59 +02:00
|
|
|
MAINTAINER= sunpoet@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
|
|
|
|
|
2013-10-12 20:16:59 +02:00
|
|
|
CONFIGURE_ARGS= --disable-debugging --enable-sso
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-12-19 08:23:42 +01:00
|
|
|
USE_LDCONFIG= yes
|
2014-02-05 16:54:15 +01:00
|
|
|
USES= libtool:oldver
|
2013-10-12 20:16:59 +02:00
|
|
|
|
|
|
|
SUB_LIST= VERSION=${PORTVERSION}
|
|
|
|
SUB_FILES= mad.pc
|
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:
|
2013-10-12 20:16:59 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| -fforce-mem||' ${WRKSRC}/configure
|
|
|
|
|
|
|
|
post-build:
|
2014-02-05 16:54:15 +01:00
|
|
|
@${STRIP_CMD} ${WRKSRC}/.libs/libmad.so.2
|
2004-10-12 00:20:46 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-10-12 20:16:59 +02:00
|
|
|
${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>
|