Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2013 12:48:38 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337978 - head/audio/darkice
Message-ID:  <201312291248.rBTCmcjp027646@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Dec 29 12:48:38 2013
New Revision: 337978
URL: http://svnweb.freebsd.org/changeset/ports/337978

Log:
  Stage support

Modified:
  head/audio/darkice/Makefile
  head/audio/darkice/pkg-plist

Modified: head/audio/darkice/Makefile
==============================================================================
--- head/audio/darkice/Makefile	Sun Dec 29 12:42:57 2013	(r337977)
+++ head/audio/darkice/Makefile	Sun Dec 29 12:48:38 2013	(r337978)
@@ -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>

Modified: head/audio/darkice/pkg-plist
==============================================================================
--- head/audio/darkice/pkg-plist	Sun Dec 29 12:42:57 2013	(r337977)
+++ head/audio/darkice/pkg-plist	Sun Dec 29 12:48:38 2013	(r337978)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312291248.rBTCmcjp027646>