diff options
author | bjs <bjs@pkgsrc.org> | 2008-09-07 00:56:15 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-09-07 00:56:15 +0000 |
commit | c6b9aa413c5008ce6e550cdc19a9254095e7aa5a (patch) | |
tree | 8cf66665040b902781bc12d4a0f693b90682fff7 /audio/libmpg123/Makefile | |
parent | e605613802e7dfd359c9d981e62ac56552e4b5a3 (diff) | |
download | pkgsrc-c6b9aa413c5008ce6e550cdc19a9254095e7aa5a.tar.gz |
Import libmpg123-1.5.1. This package provides the mpg123 project's
core decoder library, which the new mpg123 package will depend on.
Other software packages are beginning to write plug-ins for this
library, and so installing it seperately is worthwhile.
NOTE: I have encountered segfaults when attempting to use the jack
module, which is threaded, with mpg123 unless I linked mpg123 with
libpthread. This may or may not apply to the library, though my
intuition is that it does not, as obviously the executable is
what calls lt_dlopen(). Thus, for now the Makefile and b3.mk of the
executable will pull in dlopen.buildlink3.mk, setting
DLOPEN_REQUIRE_PTHREADS=yes as necessary (last time I checked on
NetBSD 4.99, it was).
Diffstat (limited to 'audio/libmpg123/Makefile')
-rw-r--r-- | audio/libmpg123/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/audio/libmpg123/Makefile b/audio/libmpg123/Makefile new file mode 100644 index 00000000000..de51a19897c --- /dev/null +++ b/audio/libmpg123/Makefile @@ -0,0 +1,50 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/09/07 00:56:15 bjs Exp $ +# + +.include "../../audio/libmpg123/Makefile.version" + +DISTNAME= mpg123-${MPG123_VERSION} +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mpg123/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= bjs@NetBSD.org +HOMEPAGE= http://mpg123.sourceforge.net/ +COMMENT= MPEG layer 1, 2, and 3 decoder library + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_TOOLS+= pkg-config +USE_LIBTOOL= yes + +PKGCONFIG_OVERRIDE+= libmpg123.pc.in + +BUILD_DIRS= src/libmpg123 +INSTALL_DIRS= src/libmpg123 + +CONFIGURE_ARGS+= --enable-fifo=yes +CONFIGURE_ARGS+= --enable-modules=yes +CONFIGURE_ARGS+= --enable-network=yes +CONFIGURE_ARGS+= --enable-gapless=yes +### +### XXX Use pkgsrc-provided CFLAGS. +### +CONFIGURE_ARGS+= --with-optimization=0 +CFLAGS+= ${COPTS.mpg123:U${COPTS}} +### +### XXX This should be set to 'no' for platforms where it is required. +### It's easier doing this here than patching configure. +MPG123_XFERMEM?= yes +.if !empty(MPG123_XFERMEM:tl:Myes) +BUILDLINK_TRANSFORM+= rm:-DNO_XFERMEM +.endif + +LIBMPG123_PCDIR= ${PREFIX}/lib/pkgconfig +post-install: + ${INSTALL_DATA_DIR} ${DESTDIR}${LIBMPG123_PCDIR} + ${INSTALL_DATA} ${WRKSRC}/libmpg123.pc ${DESTDIR}${LIBMPG123_PCDIR} + +.include "options.mk" + +.include "../../mk/bsd.pkg.mk" |