mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
Upgrade to 0.9.2.
PR: ports/57977 Submitted by: Mark Daniel Reidel <ports@mark.reidel.info>
This commit is contained in:
parent
1aa50ba883
commit
7b367090eb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91114
@ -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>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mpd-0.9.1.tar.gz) = 1a61ef1c3b6c482b7615ad6e92c7551d
|
||||
MD5 (mpd-0.9.2.tar.gz) = 32bedb3d393aed27f3c6b51f1042c459
|
||||
|
@ -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.
|
||||
|
||||
************************************************************
|
||||
|
@ -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%%
|
||||
|
Loading…
Reference in New Issue
Block a user