pkgsrc/audio/libmpg123/Makefile.common
bjs a7b6f59066 Change PKGNAME to libmpg123, and set the version to that of the
library's soname.  Split Makefile.common out from Makefile in preparation
for the addition of the mpg123 program and output module packages.
Change buildlink3.mk to reflect this, and rename options.mk
to mpg123-options.mk in adherence with convention, e.g.
gecko-options.mk.
2008-10-15 01:58:53 +00:00

35 lines
914 B
Makefile

# $NetBSD: Makefile.common,v 1.1 2008/10/15 01:58:53 bjs Exp $
#
# used by audio/libmpg123/Makefile
.include "../../audio/libmpg123/Makefile.version"
DISTNAME= mpg123-${MPG123_DISTVERSION}
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mpg123/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= bjs@NetBSD.org
HOMEPAGE= http://mpg123.sourceforge.net/
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
USE_LIBTOOL= yes
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