diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2008-09-06 21:16:39 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2008-09-06 21:16:39 +0800 |
commit | 97b0bd7f946dddfc637b855b165b93deffb1a3c3 (patch) | |
tree | 0304c48a899ce38f9d091808a51d07744969a378 /audio/musicpd | |
parent | 70932af5af0368eb6ab3f65597c37dd1b3a1e164 (diff) | |
download | freebsd-ports-gnome-97b0bd7f946dddfc637b855b165b93deffb1a3c3.tar.gz freebsd-ports-gnome-97b0bd7f946dddfc637b855b165b93deffb1a3c3.tar.zst freebsd-ports-gnome-97b0bd7f946dddfc637b855b165b93deffb1a3c3.zip |
- Fix depends (add options for samplerate, jack; check WITH_/WITHOUT_ flags appropriately)
- Respect NOPORTDOCS and thus fix plist for NOPORTDOCS case
- Better pkg-message handling
- Reorder variables in the Makefile in more canonical way
PR: 126492
Submitted by: Henry Hu <henry dot hu dot sh at gmail dot com>
Patch by: me
Approved by: maintainer timeout
Diffstat (limited to 'audio/musicpd')
-rw-r--r-- | audio/musicpd/Makefile | 54 | ||||
-rw-r--r-- | audio/musicpd/files/pkg-message.in (renamed from audio/musicpd/pkg-message) | 2 |
2 files changed, 34 insertions, 22 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile index 5101c923243e..4f212fde3be0 100644 --- a/audio/musicpd/Makefile +++ b/audio/musicpd/Makefile @@ -7,7 +7,7 @@ PORTNAME= musicpd PORTVERSION= 0.13.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= audio ipv6 MASTER_SITES= http://musicpd.org/uploads/files/ \ http://redundancy.redundancy.org/mirror/ @@ -23,6 +23,17 @@ USE_BZIP2= yes GNU_CONFIGURE= yes USE_RC_SUBR= musicpd.sh PKGMESSAGE= ${WRKDIR}/pkg-message +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +CFLAGS+= -I${PREFIX}/include + +MAN1= mpd.1 +MAN5= mpd.conf.5 + +DOCSDIR= ${PREFIX}/share/doc/mpd + +SUB_FILES= pkg-message OPTIONS= FLAC "Support for FLAC Audio" on \ VORBIS "Support for OGG Vorbis Audio" on \ @@ -35,7 +46,9 @@ OPTIONS= FLAC "Support for FLAC Audio" on \ IPV6 "Support for IPV6" on \ AO "Support for libao" off \ PULSE "Support for PulseAudio" off \ - SHOUT "Support for Icecast and Shoutcast" on + JACK "Support for JACK" off \ + SHOUT "Support for Icecast and Shoutcast" on \ + SAMPLERATE "Support for ibsamplerate" on .include <bsd.port.pre.mk> @@ -96,34 +109,33 @@ CONFIGURE_ARGS+=--enable-ao LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao .endif -.ifdef(WITHOUT_PULSE) +.ifdef(WITH_PULSE) +LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio +.else CONFIGURE_ARGS+=--disable-pulse +.endif + +.ifdef(WITH_JACK) +LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack .else -LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio +CONFIGURE_ARGS+=--disable-jack .endif .ifdef(WITHOUT_SHOUT) CONFIGURE_ARGS+=--disable-shout .endif -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib" - -CFLAGS+= -I${PREFIX}/include - -MAN1= mpd.1 -MAN5= mpd.conf.5 - -DOCSDIR= ${PREFIX}/share/doc/mpd -DOCS= COMMANDS \ - mpdconf.example \ - README \ - UPGRADING - -SED_SCRIPT+= -e 's,%%PREFIX%%,${PREFIX},g' +.ifdef(WITHOUT_SAMPLERATE) +CONFIGURE_ARGS+=--disable-lsr +.else +LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate +.endif -post-build: - @${SED} ${SED_SCRIPT} ${MASTERDIR}/pkg-message >${PKGMESSAGE} +.if defined(NOPORTDOCS) +post-patch: + @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-docDATA||' \ + ${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in +.endif post-install: @${CAT} ${PKGMESSAGE} diff --git a/audio/musicpd/pkg-message b/audio/musicpd/files/pkg-message.in index 6159a0375d45..ee89e3e0e154 100644 --- a/audio/musicpd/pkg-message +++ b/audio/musicpd/files/pkg-message.in @@ -14,7 +14,7 @@ or reboot. NOTE: The musicpd server is pretty useless without a client. You might want to install one of the following - ports, too: mpc, glurp, gmpc, kmp or phpmp + ports, too: mpc, ncmpc, glurp, gmpc, kmp or phpmp ************************************************************ |