2003-01-18 19:21:13 +00:00
|
|
|
# New ports collection makefile for: faad
|
|
|
|
# Date created: 8 January 2003
|
|
|
|
# Whom: Sean McGovern <sean@sfarc.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= faad2
|
2004-03-05 07:27:02 +00:00
|
|
|
PORTVERSION= 2.0
|
2004-11-10 01:48:47 +00:00
|
|
|
PORTREVISION= 5
|
2004-10-14 05:13:43 +00:00
|
|
|
PORTEPOCH= 1
|
2003-01-18 19:21:13 +00:00
|
|
|
CATEGORIES= audio
|
2004-11-10 01:48:47 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2003-07-12 20:51:02 +00:00
|
|
|
MASTER_SITE_SUBDIR= faac
|
2003-01-18 19:21:13 +00:00
|
|
|
|
2004-10-29 22:24:47 +00:00
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
2005-01-19 05:31:03 +00:00
|
|
|
COMMENT= MPEG-2 and MPEG-4 AAC audio decoder
|
2003-01-18 19:21:13 +00:00
|
|
|
|
2004-11-10 01:48:47 +00:00
|
|
|
LIB_DEPENDS= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \
|
|
|
|
sndfile.1:${PORTSDIR}/audio/libsndfile
|
2003-01-18 19:21:13 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2004-10-04 21:29:46 +00:00
|
|
|
NO_CDROM= "Restrictive copyright (do not sell for profit)"
|
|
|
|
|
2004-06-04 17:29:38 +00:00
|
|
|
USE_AUTOMAKE_VER= 15
|
2004-11-27 15:16:11 +00:00
|
|
|
USE_AUTOHEADER_VER= 259
|
2003-01-18 19:21:13 +00:00
|
|
|
AUTOMAKE_ARGS= --add-missing
|
2004-05-14 13:06:33 +00:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
USE_GETOPT_LONG=yes
|
2003-01-18 19:21:13 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2004-07-09 17:43:11 +00:00
|
|
|
USE_INC_LIBTOOL_VER=13
|
2003-01-18 19:21:13 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2004-11-10 01:48:47 +00:00
|
|
|
CONFIGURE_ARGS= --with-drm
|
2003-01-18 19:21:13 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
|
|
|
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2004-10-18 02:19:57 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-06-09 18:57:03 +00:00
|
|
|
pre-patch: build-depends
|
|
|
|
|
2003-01-18 19:21:13 +00:00
|
|
|
post-patch:
|
|
|
|
# make sure everything is prepared prior to configure stage
|
|
|
|
# pre-configure will not work since *AUTO* tools happen in-between
|
2003-06-26 22:58:32 +00:00
|
|
|
@cd ${WRKSRC}; ${ACLOCAL} -I ${ACLOCAL_DIR} -I .; \
|
|
|
|
${SETENV} ${SCRIPTS_ENV} ${LIBTOOLIZE} --automake
|
2004-05-12 13:23:47 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
|
|
|
|
${WRKSRC}/aclocal.m4
|
2004-11-10 01:48:47 +00:00
|
|
|
@${ECHO_CMD} "SUBDIRS = libfaad common frontend" > \
|
2004-05-14 13:06:33 +00:00
|
|
|
${WRKSRC}/Makefile.am
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${REINPLACE_CMD} -e 's|stdint.h|sys/inttypes.h|' \
|
|
|
|
${WRKSRC}/common/mp4ff/mp4ff_int_types.h
|
|
|
|
.endif
|
2003-01-18 19:21:13 +00:00
|
|
|
# CFLAGS safeness
|
2004-05-14 13:06:33 +00:00
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.am | \
|
2003-01-18 19:21:13 +00:00
|
|
|
${XARGS} -n 5 -x \
|
|
|
|
${REINPLACE_CMD} -e \
|
2003-10-27 09:11:28 +00:00
|
|
|
's|-O2|${CFLAGS}|'
|
2004-05-10 09:12:16 +00:00
|
|
|
|
2004-05-14 13:06:33 +00:00
|
|
|
.include <bsd.port.post.mk>
|