1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/audio/aqualung/Makefile
2014-02-05 15:53:18 +00:00

75 lines
2.3 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= aqualung
DISTVERSION= 0.9beta11
PORTREVISION= 16
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION} \
http://wickedmachine.net/mirror/
MAINTAINER= jsa@FreeBSD.org
COMMENT= Music player with rich features
LIB_DEPENDS= libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
libsndfile.so:${PORTSDIR}/audio/libsndfile \
libFLAC.so:${PORTSDIR}/audio/flac \
libvorbis.so:${PORTSDIR}/audio/libvorbis \
liboggz.so:${PORTSDIR}/audio/liboggz \
libspeex.so:${PORTSDIR}/audio/speex \
libmad.so:${PORTSDIR}/audio/libmad \
libmodplug.so:${PORTSDIR}/audio/libmodplug \
libmpcdec.so:${PORTSDIR}/audio/musepack \
libmac.so:${PORTSDIR}/audio/mac \
libtag.so:${PORTSDIR}/audio/taglib \
liblrdf.so:${PORTSDIR}/textproc/liblrdf \
libcdio.so:${PORTSDIR}/sysutils/libcdio \
libmp3lame.so:${PORTSDIR}/audio/lame \
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
libstrfunc.so:${PORTSDIR}/devel/libstrfunc \
libwavpack.so:${PORTSDIR}/audio/wavpack \
libxslt.so:${PORTSDIR}/textproc/libxslt \
libcddb.so:${PORTSDIR}/audio/libcddb \
libstrfunc.so:${PORTSDIR}/devel/libstrfunc
NO_STAGE= yes
USES= gmake pkgconfig gettext
USE_GNOME= gtk20 libxml2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-transform-name="" --with-alsa=no --with-ifp=no \
--with-cdda=no
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lstrfunc
MAN1= ${PORTNAME}.1
OPTIONS_DEFINE= JACK PULSEAUDIO DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MJACK}
CONFIGURE_ARGS+= --with-jack=no
.else
LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack
CONFIGURE_ARGS+= --with-jack=yes
.endif
.if ${PORT_OPTIONS:MPULSEAUDIO}
CONFIGURE_ARGS+= --with-pulse=no
.else
LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio
CONFIGURE_ARGS+= --with-pulse=yes
.endif
post-patch:
@${REINPLACE_CMD} -e '/^docdir/s!=.*!= ${DOCSDIR}!'\
${WRKSRC}/doc/Makefile.in
# @${REINPLACE_CMD} -e 's/libcdio_paranoia/libcdda_paranoia/g'\
# ${WRKSRC}/configure
@${ECHO_CMD} "#include <sys/stat.h>" >> ${WRKSRC}/src/common.h
@${ECHO_CMD} "#include <sys/types.h>" >> ${WRKSRC}/src/common.h
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/^install-data-am/s!install-docDATA!!'\
${WRKSRC}/doc/Makefile.in
.endif
.include <bsd.port.mk>