c3d8037aeb
after 5.4-RELEASE.
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
# New ports collection makefile for: faad
|
|
# Date created: 8 January 2003
|
|
# Whom: Sean McGovern <sean@sfarc.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= faad2
|
|
PORTVERSION= 2.0
|
|
PORTREVISION= 5
|
|
PORTEPOCH= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= faac
|
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
|
COMMENT= MPEG-2 and MPEG-4 AAC audio decoder
|
|
|
|
LIB_DEPENDS= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \
|
|
sndfile.1:${PORTSDIR}/audio/libsndfile
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
NO_CDROM= "Restrictive copyright (do not sell for profit)"
|
|
|
|
USE_AUTOMAKE_VER= 15
|
|
USE_AUTOHEADER_VER= 259
|
|
AUTOMAKE_ARGS= --add-missing
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
USE_GETOPT_LONG=yes
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
USE_INC_LIBTOOL_VER=13
|
|
USE_REINPLACE= yes
|
|
|
|
CONFIGURE_ARGS= --with-drm
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-patch: build-depends
|
|
|
|
post-patch:
|
|
# make sure everything is prepared prior to configure stage
|
|
# pre-configure will not work since *AUTO* tools happen in-between
|
|
@cd ${WRKSRC}; ${ACLOCAL} -I ${ACLOCAL_DIR} -I .; \
|
|
${SETENV} ${SCRIPTS_ENV} ${LIBTOOLIZE} --automake
|
|
@${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
|
|
${WRKSRC}/aclocal.m4
|
|
@${ECHO_CMD} "SUBDIRS = libfaad common frontend" > \
|
|
${WRKSRC}/Makefile.am
|
|
.if ${OSVERSION} < 500000
|
|
@${REINPLACE_CMD} -e 's|stdint.h|sys/inttypes.h|' \
|
|
${WRKSRC}/common/mp4ff/mp4ff_int_types.h
|
|
.endif
|
|
# CFLAGS safeness
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.am | \
|
|
${XARGS} -n 5 -x \
|
|
${REINPLACE_CMD} -e \
|
|
's|-O2|${CFLAGS}|'
|
|
|
|
.include <bsd.port.post.mk>
|