2003-12-07 01:50:00 +01:00
|
|
|
# New ports collection makefile for: libmad
|
|
|
|
# Date created: 26 November 2003
|
|
|
|
# Whom: Sergey Akifyev <asa@gascom.ru>
|
|
|
|
#
|
|
|
|
# $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
|
|
|
|
2003-12-07 01:50:00 +01:00
|
|
|
|
2006-12-02 20:44:32 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-12-07 01:50:00 +01:00
|
|
|
COMMENT= Libmad library (part of MAD project)
|
|
|
|
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-10-12 00:20:46 +02:00
|
|
|
USE_GNOME= pkgconfig
|
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
|
|
|
|
.if defined(WITH_SPEED)
|
|
|
|
CONFIGURE_ARGS+= --enable-speed
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-accuracy
|
|
|
|
.endif
|
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:
|
2005-05-19 18:40:08 +02:00
|
|
|
${MKDIR} ${PREFIX}/libdata/pkgconfig
|
2004-10-12 00:20:46 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mad.pc ${PREFIX}/libdata/pkgconfig
|
|
|
|
|
2003-12-07 01:50:00 +01:00
|
|
|
.include <bsd.port.mk>
|