aboutsummaryrefslogtreecommitdiffstats
path: root/audio/musicpd
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2003-10-14 07:25:49 +0800
committersumikawa <sumikawa@FreeBSD.org>2003-10-14 07:25:49 +0800
commit2553afefd774f052e2a7797e8b31a175b4f3b84b (patch)
treefb558e13cb397bfa0a9689a684b4536ec0e95f22 /audio/musicpd
parent4bb94e47401e19611cfa4fc891179460c12801af (diff)
downloadfreebsd-ports-gnome-2553afefd774f052e2a7797e8b31a175b4f3b84b.tar.gz
freebsd-ports-gnome-2553afefd774f052e2a7797e8b31a175b4f3b84b.tar.zst
freebsd-ports-gnome-2553afefd774f052e2a7797e8b31a175b4f3b84b.zip
Upgrade to 0.9.2.
PR: ports/57977 Submitted by: Mark Daniel Reidel <ports@mark.reidel.info>
Diffstat (limited to 'audio/musicpd')
-rw-r--r--audio/musicpd/Makefile46
-rw-r--r--audio/musicpd/distinfo2
-rw-r--r--audio/musicpd/pkg-message6
-rw-r--r--audio/musicpd/pkg-plist16
4 files changed, 39 insertions, 31 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile
index ba6b724ed938..c31ccbc4836c 100644
--- a/audio/musicpd/Makefile
+++ b/audio/musicpd/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= musicpd
-PORTVERSION= 0.9.1
+PORTVERSION= 0.9.2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -18,19 +18,17 @@ COMMENT= A remote-controllable music-daemon
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao \
mad.1:${PORTSDIR}/audio/mad
-GNU_CONFIGURE= yes
+GNU_CONFIGURE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500038
-RC_SUBR?= ${DESTDIR}/etc/rc.subr
-RC_DIR= ${DESTDIR}/etc/rc.d
+RC_SUBR?= ${DESTDIR}/etc/rc.subr
RC_SUFX=
.else
-USE_RC_SUBR= yes
-RC_DIR= ${PREFIX}/etc/rc.d
-RC_SUFX= .sh
+USE_RC_SUBR= yes
+RC_SUFX= .sh
.endif
.ifdef(WITHOUT_FLAC)
@@ -45,34 +43,44 @@ CONFIGURE_ARGS+=--disable-ogg
LIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis
.endif
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CFLAGS+= -I${PREFIX}/include
MAN1= mpd.1
+DOCS= README \
+ UPGRADING \
+ doc/COMMANDS
+
SED_SCRIPT+= -e 's,%%PREFIX%%,${PREFIX},g' \
- -e 's,%%RC_DIR%%,${RC_DIR},g' \
+ -e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g' \
-e 's,%%RC_SUFX%%,${RC_SUFX},g'
-PLIST_SUB+= RC_DIR=${RC_DIR} \
- RC_SUFX=${RC_SUFX}
+PLIST_SUB+= RC_SUFX=${RC_SUFX}
pre-everything::
- @${ECHO} "You can build ${PKGNAME} with the following options:"
- @${ECHO}
- @${ECHO} "WITHOUT_OGG Disable OGG-Vorbis-support"
- @${ECHO} "WITHOUT_FLAC Disable FLAC-support"
- @${ECHO}
+ @${ECHO_CMD} "You can build ${PKGNAME} with the following options:"
+ @${ECHO_CMD}
+ @${ECHO_CMD} "WITHOUT_OGG Disable OGG-Vorbis-support"
+ @${ECHO_CMD} "WITHOUT_FLAC Disable FLAC-support"
+ @${ECHO_CMD}
post-build:
@${SED} ${SED_SCRIPT} ${FILESDIR}/musicpd.sh >${WRKDIR}/musicpd.sh
@${SED} ${SED_SCRIPT} ${MASTERDIR}/pkg-message >${PKGMESSAGE}
-post-install:
- @${INSTALL_SCRIPT} ${FILESDIR}/mpd.conf.sample ${PREFIX}/etc
- @${INSTALL_SCRIPT} ${WRKDIR}/musicpd.sh ${RC_DIR}/musicpd${RC_SUFX}
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/mpd ${PREFIX}/bin/
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${FILESDIR}/mpd.conf.sample ${EXAMPLESDIR}/mpd.conf
+ ${INSTALL_SCRIPT} ${WRKDIR}/musicpd.sh ${PREFIX}/etc/rc.d/musicpd${RC_SUFX}
+ ${INSTALL_MAN} ${WRKSRC}/doc/mpd.1 ${MAN1PREFIX}/man/man1/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ @cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}/
+.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/audio/musicpd/distinfo b/audio/musicpd/distinfo
index 30706ed588b0..31495bdfa296 100644
--- a/audio/musicpd/distinfo
+++ b/audio/musicpd/distinfo
@@ -1 +1 @@
-MD5 (mpd-0.9.1.tar.gz) = 1a61ef1c3b6c482b7615ad6e92c7551d
+MD5 (mpd-0.9.2.tar.gz) = 32bedb3d393aed27f3c6b51f1042c459
diff --git a/audio/musicpd/pkg-message b/audio/musicpd/pkg-message
index c96ffedae378..51e5c8eb7bb1 100644
--- a/audio/musicpd/pkg-message
+++ b/audio/musicpd/pkg-message
@@ -4,16 +4,16 @@ The musicpd package has been successfully installed.
In order to run the MPD server, you need to create
%%PREFIX%%/etc/mpd.conf out of
- %%PREFIX%%/etc/mpd.conf.sample
+ %%EXAMPLESDIR%%/mpd.conf
and add the following line to /etc/rc.conf:
musicpd_enable="YES"
Then start the server with
- %%RC_DIR%%/musicpd%%RC_SUFX%% start
+ %%PREFIX%%/etc/rc.d/musicpd%%RC_SUFX%% start
or reboot.
NOTE: The musicpd server is pretty useless without a
- client. You might want to install the mpc-port,
+ client. You might want to install the traymp-port,
too.
************************************************************
diff --git a/audio/musicpd/pkg-plist b/audio/musicpd/pkg-plist
index d3c3a3099dc8..f6edfcf4ec41 100644
--- a/audio/musicpd/pkg-plist
+++ b/audio/musicpd/pkg-plist
@@ -1,9 +1,9 @@
bin/mpd
-@unexec %%RC_DIR%%/musicpd%%RC_SUFX%% stop 2>/dev/null || true
-share/doc/mpd/COMMANDS
-share/doc/mpd/README
-share/doc/mpd/UPGRADING
-etc/mpd.conf.sample
-@dirrm share/doc/mpd
-@cwd %%RC_DIR%%
-musicpd%%RC_SUFX%%
+@unexec etc/rc.d/musicpd%%RC_SUFX%% stop 2>/dev/null || true
+%%PORTDOCS%%%%DOCSDIR%%/COMMANDS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/UPGRADING
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%EXAMPLESDIR%%/mpd.conf
+@dirrm %%EXAMPLESDIR%%
+etc/rc.d/musicpd%%RC_SUFX%%