2003-03-04 19:41:01 +01:00
|
|
|
# New ports collection makefile for: xmms-faad
|
|
|
|
# Date created: 23 Feb, 2002
|
2007-07-06 01:39:06 +02:00
|
|
|
# Whom: David Yeske <dyeske@gmail.com>
|
2003-03-04 19:41:01 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= faad2
|
2004-03-15 09:07:12 +01:00
|
|
|
PORTVERSION= 2.0
|
2009-02-21 16:51:15 +01:00
|
|
|
PORTREVISION= 8
|
2003-03-04 19:41:01 +01:00
|
|
|
CATEGORIES= audio
|
2008-03-21 20:51:42 +01:00
|
|
|
MASTER_SITES= SF
|
2003-10-06 08:55:44 +02:00
|
|
|
MASTER_SITE_SUBDIR= faac
|
2003-03-04 19:41:01 +01:00
|
|
|
PKGNAMEPREFIX= xmms-
|
|
|
|
|
2009-02-03 00:44:01 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-04 19:41:01 +01:00
|
|
|
COMMENT= XMMS plugin for faad
|
|
|
|
|
|
|
|
BUILD_DEPENDS= xmms-config:${PORTSDIR}/multimedia/xmms
|
2004-01-03 12:02:46 +01:00
|
|
|
LIB_DEPENDS= id3-3.8.3:${PORTSDIR}/audio/id3lib \
|
2003-09-08 02:10:16 +02:00
|
|
|
xmms.4:${PORTSDIR}/multimedia/xmms \
|
2009-02-21 16:51:15 +01:00
|
|
|
faad.2:${PORTSDIR}/audio/faad \
|
2005-09-14 06:18:23 +02:00
|
|
|
mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2
|
2005-11-18 23:53:33 +01:00
|
|
|
PATCH_DEPENDS= ${BUILD_DEPENDS}
|
2003-03-04 19:41:01 +01:00
|
|
|
|
2004-03-15 09:07:12 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= automake:15 autoheader:262 autoconf:262 libtool:15
|
2004-06-04 19:29:38 +02:00
|
|
|
AUTOMAKE_ARGS= --add-missing
|
|
|
|
USE_GNOME= gtk12
|
|
|
|
USE_GMAKE= yes
|
2003-03-04 19:41:01 +01:00
|
|
|
|
2004-05-14 15:52:43 +02:00
|
|
|
CONFIGURE_ARGS= --with-xmms --with-mp4v2
|
2004-12-03 01:22:06 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} -DHAVE_GTK" \
|
2004-03-15 09:07:12 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
2003-03-04 19:41:01 +01:00
|
|
|
|
|
|
|
DESCR= ${PORTSDIR}/audio/faad/pkg-descr
|
2006-02-23 11:40:44 +01:00
|
|
|
PLIST_FILES= lib/xmms/Input/libmp4.a \
|
|
|
|
lib/xmms/Input/libmp4.la \
|
|
|
|
lib/xmms/Input/libmp4.so
|
2004-03-15 09:07:12 +01:00
|
|
|
|
2004-11-23 04:57:49 +01:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/plugins/xmms/src
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/plugins/xmms/src
|
|
|
|
|
2004-03-15 09:07:12 +01:00
|
|
|
pre-patch: build-depends
|
2003-03-04 19:41:01 +01:00
|
|
|
|
|
|
|
post-patch:
|
2004-05-14 15:52:43 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/plugins/xmms/src/Makefile.am
|
2004-12-03 01:22:06 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|"faad.h"|<faad.h>|; s|"mp4.h"|<mp4.h>|' \
|
|
|
|
${WRKSRC}/plugins/xmms/src/libmp4.c
|
2004-03-15 09:07:12 +01: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 15:52:43 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
|
2006-02-23 11:40:44 +01:00
|
|
|
-e '/^_LT_AC_SHELL_INIT/d' ${WRKSRC}/aclocal.m4
|
2004-03-15 09:07:12 +01:00
|
|
|
# CFLAGS safeness
|
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.am | \
|
|
|
|
${XARGS} -n 5 -x \
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|-O2|${CFLAGS}|'
|
|
|
|
|
2003-03-04 19:41:01 +01:00
|
|
|
.include <bsd.port.mk>
|