2003-01-18 20:21:13 +01:00
|
|
|
# New ports collection makefile for: faad
|
|
|
|
# Date created: 8 January 2003
|
|
|
|
# Whom: Sean McGovern <sean@sfarc.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= faad2
|
2004-03-05 08:27:02 +01:00
|
|
|
PORTVERSION= 2.0
|
2004-10-14 07:13:43 +02:00
|
|
|
PORTREVISION= 4
|
|
|
|
PORTEPOCH= 1
|
2003-01-18 20:21:13 +01:00
|
|
|
CATEGORIES= audio
|
2004-10-14 07:13:43 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2003-07-12 22:51:02 +02:00
|
|
|
MASTER_SITE_SUBDIR= faac
|
2003-01-18 20:21:13 +01:00
|
|
|
|
2004-05-12 15:23:47 +02:00
|
|
|
MAINTAINER= ahze@ahze.net
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT= A LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder
|
2003-01-18 20:21:13 +01:00
|
|
|
|
2004-10-14 07:13:43 +02:00
|
|
|
LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile
|
2003-01-18 20:21:13 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2004-10-04 23:29:46 +02:00
|
|
|
NO_CDROM= "Restrictive copyright (do not sell for profit)"
|
|
|
|
|
2004-06-04 19:29:38 +02:00
|
|
|
USE_AUTOMAKE_VER= 15
|
|
|
|
USE_AUTOHEADER_VER= 253
|
2003-01-18 20:21:13 +01:00
|
|
|
AUTOMAKE_ARGS= --add-missing
|
2004-05-14 15:06:33 +02:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
USE_GETOPT_LONG=yes
|
2003-01-18 20:21:13 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2004-07-09 19:43:11 +02:00
|
|
|
USE_INC_LIBTOOL_VER=13
|
2003-01-18 20:21:13 +01:00
|
|
|
USE_REINPLACE= yes
|
2004-10-14 07:13:43 +02:00
|
|
|
WANT_SDL= yes
|
2003-01-18 20:21:13 +01:00
|
|
|
|
2004-10-14 07:13:43 +02:00
|
|
|
CONFIGURE_ARGS= --with-mp4v2 --with-drm
|
2003-01-18 20:21:13 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
|
|
|
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2004-10-15 00:09:08 +02:00
|
|
|
# mpeg4ip is broke for now, disable it.
|
|
|
|
WITHOUT_MPEG4IP=yes
|
|
|
|
|
2004-05-14 15:06:33 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-10-14 07:13:43 +02:00
|
|
|
.if defined(WITHOUT_MPEG4IP)
|
|
|
|
PLIST_SUB+= WITHOUT_MPEG4IP="" PLUGIN="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= mp4.0:${PORTSDIR}/multimedia/mpeg4ip
|
|
|
|
USE_SDL= sdl
|
|
|
|
PLIST_SUB+= WITHOUT_MPEG4IP="@comment " PLUGIN=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
.if !defined(WITHOUT_MPEG4IP)
|
|
|
|
@${ECHO_MSG} "===> you can disable mpeg4ip support by"
|
|
|
|
@${ECHO_MSG} "===> defining WITHOUT_MPEG4IP"
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "===> WARNING: WITHOUT_MPEG4IP is defined"
|
|
|
|
@${ECHO_MSG} "===> Having WITHOUT_MPEG4IP defined conflicts"
|
|
|
|
@${ECHO_MSG} "===> with multimedia/mpeg4ip and you will not"
|
|
|
|
@${ECHO_MSG} "===> be able to install mpeg4ip after you install faad2"
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
|
2003-06-09 20:57:03 +02:00
|
|
|
pre-patch: build-depends
|
|
|
|
|
2003-01-18 20:21:13 +01: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-27 00:58:32 +02:00
|
|
|
@cd ${WRKSRC}; ${ACLOCAL} -I ${ACLOCAL_DIR} -I .; \
|
|
|
|
${SETENV} ${SCRIPTS_ENV} ${LIBTOOLIZE} --automake
|
2004-05-12 15:23:47 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
|
|
|
|
${WRKSRC}/aclocal.m4
|
2004-10-14 07:13:43 +02:00
|
|
|
.if !defined(WITHOUT_MPEG4IP)
|
|
|
|
@${REINPLACE_CMD} -e 's|<SDL|<SDL11|' \
|
|
|
|
${WRKSRC}/plugins/mpeg4ip/faad2.cpp
|
|
|
|
.endif
|
|
|
|
@${ECHO_CMD} "SUBDIRS = libfaad common frontend plugins" > \
|
2004-05-14 15:06:33 +02: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 20:21:13 +01:00
|
|
|
# CFLAGS safeness
|
2004-05-14 15:06:33 +02:00
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.am | \
|
2003-01-18 20:21:13 +01:00
|
|
|
${XARGS} -n 5 -x \
|
|
|
|
${REINPLACE_CMD} -e \
|
2003-10-27 10:11:28 +01:00
|
|
|
's|-O2|${CFLAGS}|'
|
2004-10-14 07:13:43 +02:00
|
|
|
post-install:
|
|
|
|
.if defined(WITHOUT_MPEG4IP)
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/common/mp4v2/systems.h ${PREFIX}/include
|
|
|
|
.endif
|
2004-05-10 11:12:16 +02:00
|
|
|
|
2004-05-14 15:06:33 +02:00
|
|
|
.include <bsd.port.post.mk>
|