Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= faad2 |
8 |
PORTNAME= faad2 |
9 |
PORTVERSION= 2.0 |
9 |
PORTVERSION= 2.6.1 |
10 |
PORTREVISION= 9 |
|
|
11 |
CATEGORIES= audio |
10 |
CATEGORIES= audio |
12 |
MASTER_SITES= SF/faac |
11 |
MASTER_SITES= SF/faac |
13 |
PKGNAMEPREFIX= bmp- |
12 |
PKGNAMEPREFIX= bmp- |
Lines 15-63
Link Here
|
15 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= Beep Media Player (BMP) plugin for faad |
15 |
COMMENT= Beep Media Player (BMP) plugin for faad |
17 |
|
16 |
|
18 |
PATCH_DEPENDS= ${AUTOMAKE_DEPENDS} ${AUTOCONF_DEPENDS} ${LIBTOOL_DEPENDS} |
17 |
LIB_DEPENDS= faad.0:${PORTSDIR}/audio/faad \ |
19 |
LIB_DEPENDS= id3-3.8.3:${PORTSDIR}/audio/id3lib \ |
|
|
20 |
faad.0:${PORTSDIR}/audio/faad \ |
21 |
mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \ |
22 |
beep.2:${PORTSDIR}/multimedia/beep-media-player |
18 |
beep.2:${PORTSDIR}/multimedia/beep-media-player |
23 |
|
19 |
|
24 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
20 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
25 |
|
21 |
|
|
|
22 |
USE_GNOME= gnometarget gtk20 |
23 |
USE_GMAKE= yes |
26 |
USE_AUTOTOOLS= automake:15 autoheader:261 autoconf:261 libtool:15 |
24 |
USE_AUTOTOOLS= automake:15 autoheader:261 autoconf:261 libtool:15 |
27 |
AUTOMAKE_ARGS= --add-missing |
25 |
AUTOMAKE_ARGS= --add-missing |
28 |
USE_GMAKE= yes |
26 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ |
29 |
USE_GNOME= gtk20 |
27 |
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" |
30 |
|
|
|
31 |
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
32 |
CONFIGURE_ARGS= --with-xmms --with-mp4v2 |
33 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} -DHAVE_GTK" \ |
34 |
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \ |
35 |
|
28 |
|
36 |
DESCR= ${PORTSDIR}/audio/faad/pkg-descr |
29 |
DESCR= ${PORTSDIR}/audio/faad/pkg-descr |
37 |
PLIST_FILES= lib/bmp/Input/libmp4.a \ |
30 |
PLIST_FILES= lib/bmp/Input/libmp4.so |
38 |
lib/bmp/Input/libmp4.la \ |
|
|
39 |
lib/bmp/Input/libmp4.so |
40 |
|
41 |
BUILD_WRKSRC= ${WRKSRC}/plugins/xmms/src |
42 |
INSTALL_WRKSRC= ${WRKSRC}/plugins/xmms/src |
43 |
|
31 |
|
44 |
.include <bsd.port.pre.mk> |
32 |
.include <bsd.port.pre.mk> |
45 |
|
33 |
|
46 |
post-patch: |
34 |
post-patch: |
47 |
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/plugins/xmms/src/Makefile.am |
35 |
@${REINPLACE_CMD} -e '/AC_CONFIG_FILES(plugins/d' ${WRKSRC}/configure.in |
48 |
@${REINPLACE_CMD} -e 's|"faad.h"|<faad.h>|; s|"mp4.h"|<mp4.h>|' \ |
36 |
@${REINPLACE_CMD} -e 's|"faad.h"|<faad.h>|g ; \ |
49 |
${WRKSRC}/plugins/xmms/src/libmp4.c |
37 |
s|<xmms/|<bmp/|g' ${WRKSRC}/plugins/xmms/src/mp4_utils.c |
50 |
# make sure everything is prepared prior to configure stage |
38 |
@${ECHO_CMD} "SUBDIRS = common" > ${WRKSRC}/Makefile.am |
51 |
# pre-configure will not work since *AUTO* tools happen in-between |
39 |
|
52 |
@cd ${WRKSRC}; ${ACLOCAL} -I ${ACLOCAL_DIR} -I .; \ |
40 |
pre-configure: |
53 |
${SETENV} ${SCRIPTS_ENV} ${LIBTOOLIZE} --automake |
41 |
@cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \ |
54 |
@${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \ |
42 |
&& ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --automake |
55 |
-e '/^_LT_AC_SHELL_INIT/d' ${WRKSRC}/aclocal.m4 |
43 |
|
56 |
# CFLAGS safeness |
44 |
post-build: |
57 |
@${FIND} ${WRKSRC} -type f -name Makefile.am | \ |
45 |
cd ${WRKSRC}/plugins/xmms/src && ${CC} ${CFLAGS} -fPIC -shared \ |
58 |
${XARGS} -n 5 -x \ |
46 |
-DHAVE_BMP -I../../../common/mp4ff -I${LOCALBASE}/include \ |
59 |
${REINPLACE_CMD} -e \ |
47 |
`pkg-config --cflags bmp` *.c -o libmp4.so \ |
60 |
's|-O2|${CFLAGS}|' |
48 |
../../../common/mp4ff/.libs/libmp4ff.a \ |
61 |
@${REINPLACE_CMD} -e 's|<xmms|<bmp|' ${WRKSRC}/plugins/xmms/src/libmp4.c |
49 |
-L${LOCALBASE}/lib -lfaad \ |
|
|
50 |
`pkg-config --libs bmp` |
51 |
|
52 |
do-install: |
53 |
${INSTALL_DATA} ${WRKSRC}/plugins/xmms/src/libmp4.so \ |
54 |
${PREFIX}/lib/bmp/Input |
62 |
|
55 |
|
63 |
.include <bsd.port.post.mk> |
56 |
.include <bsd.port.post.mk> |