ports/71304: [NEW PORT] audio/bmp-faad2: Beep Media Player (BMP) plugin for faad
Michael Johnson
ahze at ahze.net
Thu Sep 2 18:00:44 UTC 2004
>Number: 71304
>Category: ports
>Synopsis: [NEW PORT] audio/bmp-faad2: Beep Media Player (BMP) plugin for faad
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 02 18:00:43 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Michael Johnson
>Release: FreeBSD 5.3-BETA1 i386
>Organization:
>Environment:
System: FreeBSD gentoo.ahze.net 5.3-BETA1 FreeBSD 5.3-BETA1 #64: Thu Aug 26 13:59:58 EDT 2004
>Description:
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
--- bmp-faad2-2.0_1.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# bmp-faad
# bmp-faad/files
# bmp-faad/files/patch-configure
# bmp-faad/files/patch-xmms-Makefile.am
# bmp-faad/Makefile
#
echo c - bmp-faad
mkdir -p bmp-faad > /dev/null 2>&1
echo c - bmp-faad/files
mkdir -p bmp-faad/files > /dev/null 2>&1
echo x - bmp-faad/files/patch-configure
sed 's/^X//' >bmp-faad/files/patch-configure << 'END-of-bmp-faad/files/patch-configure'
X--- configure.in.orig Thu Sep 2 13:17:44 2004
X+++ configure.in Thu Sep 2 13:19:45 2004
X@@ -88,10 +88,6 @@
X fi
X
X if test x$WITHXMMS = xyes; then
X- AC_CHECK_PROGS(XMMS_CONFIG, xmms-config,"not_found")
X- if test "$XMMS_CONFIG" = "not_found"; then
X- AC_MSG_ERROR("*** xmms-config not found - xmms plugin can't be build")
X- fi
X AC_CHECK_HEADER(pthread.h,,
X AC_MSG_ERROR(*** pthread headers support not installed or not found))
X AC_CHECK_HEADER(id3.h,,
END-of-bmp-faad/files/patch-configure
echo x - bmp-faad/files/patch-xmms-Makefile.am
sed 's/^X//' >bmp-faad/files/patch-xmms-Makefile.am << 'END-of-bmp-faad/files/patch-xmms-Makefile.am'
X--- plugins/xmms/src/Makefile.am.orig Fri Feb 6 11:05:07 2004
X+++ plugins/xmms/src/Makefile.am Thu Sep 2 13:36:46 2004
X@@ -1,13 +1,13 @@
X-libdir = `$(XMMS_CONFIG) --input-plugin-dir`
X+libdir = `pkg-config --variable=input_plugin_dir bmp`
X lib_LTLIBRARIES = libmp4.la
X
X-libmp4_la_CFLAGS = `$(XMMS_CONFIG) --cflags` -Wall \
X- `$(GTK_CONFIG) --cflags` -DHAVE_GLIB_H=1 \
X+libmp4_la_CFLAGS = `pkg-config gtk+-2.0 --cflags` -Wall \
X+ `pkg-config bmp --cflags` \
X -I$(top_srcdir)/include -I$(top_srcdir)/common/mp4v2
X
X libmp4_la_LIBADD = $(top_builddir)/libfaad/libfaad.la \
X $(top_builddir)/common/mp4v2/libmp4v2.la
X
X-libmp4_la_LDFLAGS = -module -avoid-version `$(XMMS_CONFIG) --libs` \
X- `$(GTK_CONFIG) --libs` -lpthread -lstdc++
X+libmp4_la_LDFLAGS = -module -avoid-version `pkg-config bmp --libs` \
X+ `pkg-config gtk+-2.0 --libs` -lpthread -lstdc++
X libmp4_la_SOURCES = libmp4.c mp4_utils.c aac_utils.c
END-of-bmp-faad/files/patch-xmms-Makefile.am
echo x - bmp-faad/Makefile
sed 's/^X//' >bmp-faad/Makefile << 'END-of-bmp-faad/Makefile'
X# New ports collection makefile for: bmp-faad
X# Date created: 2 Sep, 2004
X# Whom: Michael Johnson <ahze at ahze.net>
X#
X# $FreeBSD: $
X#
X
XPORTNAME= faad2
XPORTVERSION= 2.0
XPORTREVISION= 1
XCATEGORIES= audio
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= faac
XPKGNAMEPREFIX= bmp-
X
XMAINTAINER= ahze at ahze.net
XCOMMENT= Beep Media Player (BMP) plugin for faad
X
XLIB_DEPENDS= id3-3.8.3:${PORTSDIR}/audio/id3lib \
X faad.0:${PORTSDIR}/audio/faad \
X beep.2:${PORTSDIR}/multimedia/beep-media-player
X
XWRKSRC= ${WRKDIR}/${PORTNAME}
X
XUSE_AUTOMAKE_VER= 15
XUSE_AUTOCONF_VER= 253
XUSE_AUTOHEADER_VER= 253
XUSE_INC_LIBTOOL_VER= 13
XAUTOMAKE_ARGS= --add-missing
XUSE_X_PREFIX= yes
XUSE_GMAKE= yes
XUSE_GNOME= gtk20
XUSE_REINPLACE= yes
X
XCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ARGS= --with-xmms --with-mp4v2
XCONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
X LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
X
XDESCR= ${PORTSDIR}/audio/faad/pkg-descr
XMD5_FILE= ${PORTSDIR}/audio/faad/distinfo
XPLIST_FILES= lib/bmp/Input/libmp4.so
X
X.include <bsd.port.pre.mk>
X
Xpre-patch: build-depends
X
Xpost-patch:
X @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/plugins/xmms/src/Makefile.am
X# make sure everything is prepared prior to configure stage
X# pre-configure will not work since *AUTO* tools happen in-between
X @cd ${WRKSRC}; ${ACLOCAL} -I ${ACLOCAL_DIR} -I .; \
X ${SETENV} ${SCRIPTS_ENV} ${LIBTOOLIZE} --automake
X @${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
X ${WRKSRC}/aclocal.m4
X# CFLAGS safeness
X @${FIND} ${WRKSRC} -type f -name Makefile.am | \
X ${XARGS} -n 5 -x \
X ${REINPLACE_CMD} -e \
X 's|-O2|${CFLAGS}|'
X
Xdo-build:
X @cd ${WRKSRC}/libfaad && ${MAKE}
X @cd ${WRKSRC}/common/mp4v2 && ${MAKE}
X @cd ${WRKSRC}/plugins/xmms/src && ${MAKE}
X
Xdo-install:
X @cd ${WRKSRC}/plugins/xmms/src && ${MAKE} install
X
X.include <bsd.port.post.mk>
END-of-bmp-faad/Makefile
exit
--- bmp-faad2-2.0_1.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list