2004-05-06 10:40:42 +02:00
|
|
|
# New ports collection makefile for: faac
|
|
|
|
# Date created: Wed May 5 16:38:55 EDT 2004
|
|
|
|
# Whom: Michael Johnson <ahze@ahze.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= faac
|
|
|
|
PORTVERSION= 1.24
|
2004-11-28 16:11:55 +01:00
|
|
|
PORTREVISION= 3
|
2004-05-06 10:40:42 +02:00
|
|
|
CATEGORIES= audio
|
2004-05-25 21:16:09 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2004-05-06 10:40:42 +02:00
|
|
|
MASTER_SITE_SUBDIR= faac
|
|
|
|
|
2004-10-30 00:24:47 +02:00
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
2004-05-06 10:40:42 +02:00
|
|
|
COMMENT= FAAC is an AAC audio encoder
|
|
|
|
|
|
|
|
NO_PACKAGE= Distribution in binary form is prohibited
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_AUTOMAKE_VER=15
|
2004-11-27 16:16:11 +01:00
|
|
|
USE_AUTOHEADER_VER=259
|
2004-05-06 10:40:42 +02:00
|
|
|
AUTOMAKE_ARGS= --add-missing
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LIBTOOL_VER=13
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-05-10 11:24:21 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2004-10-13 03:48:28 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
HAVECXX="yes"
|
|
|
|
|
2004-05-06 10:40:42 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2004-11-28 16:11:55 +01:00
|
|
|
OPTIONS= MPEG4IP "Enable mpeg4 audio encoding" On
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/lib/libmp4v2.a)
|
|
|
|
WITH_MPEG4IP=yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MPEG4IP)
|
|
|
|
LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2
|
|
|
|
.endif
|
|
|
|
|
2004-05-06 10:40:42 +02:00
|
|
|
pre-patch: build-depends
|
|
|
|
|
|
|
|
post-patch:
|
2004-07-22 03:26:13 +02:00
|
|
|
@${ECHO_CMD} "" >>${WRKSRC}/libfaac/psych.h
|
2004-08-04 00:36:52 +02:00
|
|
|
@cd ${WRKSRC}; ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} -I .; \
|
2004-05-06 10:40:42 +02:00
|
|
|
${SETENV} ${SCRIPTS_ENV} ${LIBTOOLIZE} --automake
|
2004-08-04 00:36:52 +02:00
|
|
|
${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
|
2004-05-06 10:40:42 +02:00
|
|
|
${WRKSRC}/aclocal.m4
|
|
|
|
|
2004-11-28 16:11:55 +01:00
|
|
|
.include <bsd.port.post.mk>
|