summaryrefslogtreecommitdiffstats
path: root/audio/aqualung/Makefile
blob: db573214b7627e82b65ae6e98a86566e27d8e791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# 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>
OpenPOWER on IntegriCloud