2003-03-04 19:41:01 +01: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 09:07:12 +01:00
|
|
|
PORTVERSION= 2.0
|
2004-05-14 15:52:43 +02:00
|
|
|
PORTREVISION= 1
|
2003-03-04 19:41:01 +01:00
|
|
|
CATEGORIES= audio
|
2003-10-06 08:55:44 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= faac
|
2003-03-04 19:41:01 +01:00
|
|
|
PKGNAMEPREFIX= xmms-
|
|
|
|
|
|
|
|
MAINTAINER= dyeske@yahoo.com
|
|
|
|
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 \
|
2003-03-04 19:41:01 +01:00
|
|
|
faad.0:${PORTSDIR}/audio/faad
|
|
|
|
|
2004-03-15 09:07:12 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
USE_AUTOMAKE_VER= 15
|
2004-06-04 19:29:38 +02:00
|
|
|
USE_AUTOCONF_VER= 253
|
|
|
|
USE_AUTOHEADER_VER= 253
|
2004-07-09 19:43:11 +02:00
|
|
|
USE_INC_LIBTOOL_VER= 13
|
2004-06-04 19:29:38 +02:00
|
|
|
AUTOMAKE_ARGS= --add-missing
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GNOME= gtk12
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
2003-03-04 19:41:01 +01:00
|
|
|
|
2004-05-14 15:52:43 +02:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ARGS= --with-xmms --with-mp4v2
|
2004-03-15 09:07:12 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
2003-03-04 19:41:01 +01:00
|
|
|
|
|
|
|
DESCR= ${PORTSDIR}/audio/faad/pkg-descr
|
|
|
|
MD5_FILE= ${PORTSDIR}/audio/faad/distinfo
|
2004-05-14 15:52:43 +02:00
|
|
|
PLIST_FILES= 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-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|' \
|
|
|
|
${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>
|