2003-03-04 18:41:01 +00:00
|
|
|
# New ports collection makefile for: xmms-faad
|
|
|
|
# Date created: 23 Feb, 2002
|
|
|
|
# Whom: David Yeske <dyeske@yahoo.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= faad2
|
2004-03-15 08:07:12 +00:00
|
|
|
PORTVERSION= 2.0
|
|
|
|
PORTREVISION= 0
|
2003-03-04 18:41:01 +00:00
|
|
|
CATEGORIES= audio
|
2003-10-06 06:55:44 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= faac
|
2003-03-04 18:41:01 +00:00
|
|
|
PKGNAMEPREFIX= xmms-
|
2004-03-15 08:07:12 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-rc3
|
2003-03-04 18:41:01 +00:00
|
|
|
|
|
|
|
MAINTAINER= dyeske@yahoo.com
|
|
|
|
COMMENT= XMMS plugin for faad
|
|
|
|
|
|
|
|
BUILD_DEPENDS= xmms-config:${PORTSDIR}/multimedia/xmms
|
2004-01-03 11:02:46 +00:00
|
|
|
LIB_DEPENDS= id3-3.8.3:${PORTSDIR}/audio/id3lib \
|
2003-09-08 00:10:16 +00:00
|
|
|
xmms.4:${PORTSDIR}/multimedia/xmms \
|
2003-03-04 18:41:01 +00:00
|
|
|
faad.0:${PORTSDIR}/audio/faad
|
|
|
|
|
2004-03-15 08:07:12 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
USE_AUTOMAKE_VER= 15
|
|
|
|
USE_AUTOHEADER= yes
|
|
|
|
AUTOMAKE_ARGS= --add-missing
|
2004-03-14 03:44:48 +00:00
|
|
|
|
2003-03-04 18:41:01 +00:00
|
|
|
USE_X_PREFIX= yes
|
2004-03-15 08:07:12 +00:00
|
|
|
USE_GNOME= gtk12
|
2003-03-04 18:41:01 +00:00
|
|
|
USE_GMAKE= yes
|
2004-03-25 04:31:55 +00:00
|
|
|
USE_LIBTOOL_VER=13
|
2003-03-04 18:41:01 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2004-03-15 08:07:12 +00:00
|
|
|
CONFIGURE_ARGS= --program-transform-name='' --with-mp4v2
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
2003-03-04 18:41:01 +00:00
|
|
|
|
|
|
|
DESCR= ${PORTSDIR}/audio/faad/pkg-descr
|
|
|
|
MD5_FILE= ${PORTSDIR}/audio/faad/distinfo
|
2004-03-15 08:07:12 +00:00
|
|
|
PLIST_FILES= lib/xmms/Input/libaac.so \
|
|
|
|
lib/xmms/Input/libmp4.so
|
|
|
|
|
|
|
|
pre-patch: build-depends
|
2003-03-04 18:41:01 +00:00
|
|
|
|
|
|
|
post-patch:
|
2004-03-15 08:07:12 +00:00
|
|
|
# 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
|
|
|
|
# CFLAGS safeness
|
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.am | \
|
|
|
|
${XARGS} -n 5 -x \
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|-O2|${CFLAGS}|'
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
# sync the multiple libtool copies
|
|
|
|
@${CP} ${WRKSRC}/libtool ${WRKSRC}/common/mp4v2/
|
|
|
|
@${CP} ${WRKSRC}/libtool ${WRKSRC}/plugins/xmms/
|
|
|
|
@${CP} ${WRKSRC}/libtool ${WRKSRC}/plugins/xmmsmp4/
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC}/plugins/xmms && ${MAKE}
|
|
|
|
@cd ${WRKSRC}/plugins/xmmsmp4 && ${MAKE}
|
2003-03-04 18:41:01 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-03-15 08:07:12 +00:00
|
|
|
@cd ${WRKSRC}/plugins/xmms && ${MAKE} install
|
|
|
|
@cd ${WRKSRC}/plugins/xmmsmp4 && ${MAKE} install
|
2003-03-04 18:41:01 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|