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
|
2005-09-14 04:18:23 +00:00
|
|
|
PORTREVISION= 2
|
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-
|
|
|
|
|
|
|
|
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 \
|
2005-09-14 04:18:23 +00:00
|
|
|
faad.0:${PORTSDIR}/audio/faad \
|
|
|
|
mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2
|
2005-11-18 22:53:33 +00:00
|
|
|
PATCH_DEPENDS= ${BUILD_DEPENDS}
|
2003-03-04 18:41:01 +00:00
|
|
|
|
2004-03-15 08:07:12 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2005-11-15 06:52:12 +00:00
|
|
|
USE_AUTOTOOLS= automake:15 autoheader:253 autoconf:253 libtool:13:inc
|
2004-06-04 17:29:38 +00:00
|
|
|
AUTOMAKE_ARGS= --add-missing
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GNOME= gtk12
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
2003-03-04 18:41:01 +00:00
|
|
|
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-05-14 13:52:43 +00:00
|
|
|
CONFIGURE_ARGS= --with-xmms --with-mp4v2
|
2004-12-03 00:22:06 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} -DHAVE_GTK" \
|
2004-03-15 08:07:12 +00:00
|
|
|
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-05-14 13:52:43 +00:00
|
|
|
PLIST_FILES= lib/xmms/Input/libmp4.so
|
2004-03-15 08:07:12 +00:00
|
|
|
|
2004-11-23 03:57:49 +00:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/plugins/xmms/src
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/plugins/xmms/src
|
|
|
|
|
2004-03-15 08:07:12 +00:00
|
|
|
pre-patch: build-depends
|
2003-03-04 18:41:01 +00:00
|
|
|
|
|
|
|
post-patch:
|
2004-05-14 13:52:43 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/plugins/xmms/src/Makefile.am
|
2004-12-03 00:22:06 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|"faad.h"|<faad.h>|; s|"mp4.h"|<mp4.h>|' \
|
|
|
|
${WRKSRC}/plugins/xmms/src/libmp4.c
|
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
|
2004-05-14 13:52:43 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
|
|
|
|
${WRKSRC}/aclocal.m4
|
2004-03-15 08:07:12 +00:00
|
|
|
# CFLAGS safeness
|
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.am | \
|
|
|
|
${XARGS} -n 5 -x \
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|-O2|${CFLAGS}|'
|
|
|
|
|
2003-03-04 18:41:01 +00:00
|
|
|
.include <bsd.port.mk>
|