mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Stage support
This commit is contained in:
parent
b60587959c
commit
94d66de604
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337978
@ -20,7 +20,6 @@ OPTIONS_DEFAULT= VORBIS
|
||||
OPUS_DESC= Ogg Opus audio codec support
|
||||
AACPLUS_DESC= AAC HEv2 and libsamplerate support
|
||||
|
||||
NO_STAGE= yes
|
||||
USE_AUTOTOOLS= aclocal automake autoconf
|
||||
ACLOCAL_ARGS= # none
|
||||
AUTOMAKE_ARGS= --add-missing --copy --foreign
|
||||
@ -30,9 +29,6 @@ CONFIGURE_ARGS= --without-alsa
|
||||
SUB_FILES= pkg-message
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
MAN1= darkice.1
|
||||
MAN5= darkice.cfg.5
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MJACK}
|
||||
@ -97,18 +93,10 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-O2 -pedantic||g' ${WRKSRC}/src/Makefile.am
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg \
|
||||
${PREFIX}/etc/${PORTNAME}.cfg.dist
|
||||
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.cfg.5 ${MAN5PREFIX}/man/man5
|
||||
|
||||
post-install:
|
||||
@${ECHO_MSG}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${ECHO_MSG}
|
||||
@if [ ! -f ${PREFIX}/etc/darkice.cfg ]; then \
|
||||
${CP} -p ${PREFIX}/etc/darkice.cfg.dist ${PREFIX}/etc/darkice.cfg ; \
|
||||
fi
|
||||
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.dist
|
||||
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.cfg.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -2,3 +2,5 @@ bin/darkice
|
||||
@unexec if cmp -s %D/etc/darkice.cfg.dist %D/etc/darkice.cfg; then rm -f %D/etc/darkice.cfg; fi
|
||||
etc/darkice.cfg.dist
|
||||
@exec if [ ! -f %D/etc/darkice.cfg ] ; then cp -p %D/%F %B/darkice.cfg; fi
|
||||
man/man1/darkice.1.gz
|
||||
man/man5/darkice.cfg.5.gz
|
||||
|
Loading…
Reference in New Issue
Block a user