2000-12-19 16:39:12 +01:00
|
|
|
# New ports collection makefile for: mad
|
|
|
|
# Date created: 18 November 2000
|
2001-05-22 18:57:53 +02:00
|
|
|
# Whom: Jason R. Mastaler <jason@mastaler.com>
|
2000-12-19 16:39:12 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mad
|
2001-11-16 23:48:18 +01:00
|
|
|
PORTVERSION= 0.14.2b
|
2002-04-12 19:10:20 +02:00
|
|
|
PORTREVISION= 2
|
2000-12-19 16:39:12 +01:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
ftp://ftp.mars.org/pub/mpeg/
|
|
|
|
MASTER_SITE_SUBDIR= mad
|
|
|
|
|
2001-05-22 18:57:53 +02:00
|
|
|
MAINTAINER= jason@mastaler.com
|
2000-12-19 16:39:12 +01:00
|
|
|
|
2002-08-01 18:22:41 +02:00
|
|
|
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
2001-02-20 19:51:09 +01:00
|
|
|
|
2001-11-18 15:44:21 +01:00
|
|
|
WANT_ESOUND= yes
|
2001-08-19 01:33:12 +02:00
|
|
|
|
2002-07-08 21:33:27 +02:00
|
|
|
USE_AUTOCONF= yes
|
2000-12-19 16:39:12 +01:00
|
|
|
USE_LIBTOOL= yes
|
2002-07-08 21:33:27 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-11-18 15:44:21 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
2001-10-29 05:44:19 +01:00
|
|
|
LIBTOOLFILES= configure libmad/configure libid3tag/configure
|
2001-08-19 01:33:12 +02:00
|
|
|
CONFIGURE_ARGS= --enable-shared \
|
|
|
|
--disable-debugging \
|
|
|
|
--enable-sso \
|
|
|
|
--enable-accuracy
|
2001-02-20 19:51:09 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2000-12-19 16:39:12 +01:00
|
|
|
|
2001-02-20 19:51:09 +01:00
|
|
|
MAN1= abxtest.1 madplay.1
|
2000-12-19 16:39:12 +01:00
|
|
|
|
2001-11-18 15:44:21 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(HAVE_ESOUND)
|
|
|
|
USE_ESOUND= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-esd
|
|
|
|
.endif
|
|
|
|
|
2002-07-08 21:33:27 +02:00
|
|
|
post-patch:
|
|
|
|
# fix weird @INSTALL@ behavior caused by USE_AUTOCONF
|
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} -n 10 \
|
|
|
|
${REINPLACE_CMD} -E -e 's|^(INSTALL[[:space:]]*=).*$$|\1 ${INSTALL_DATA}|'
|
|
|
|
|
2001-11-18 15:44:21 +01:00
|
|
|
.include <bsd.port.post.mk>
|