Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 16:13:26 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346535 - head/audio/ascd
Message-ID:  <201402281613.s1SGDQRx064397@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Feb 28 16:13:26 2014
New Revision: 346535
URL: http://svnweb.freebsd.org/changeset/ports/346535
QAT: https://qat.redports.org/buildarchive/r346535/

Log:
  Staging support

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

Modified: head/audio/ascd/Makefile
==============================================================================
--- head/audio/ascd/Makefile	Fri Feb 28 15:57:52 2014	(r346534)
+++ head/audio/ascd/Makefile	Fri Feb 28 16:13:26 2014	(r346535)
@@ -16,7 +16,6 @@ LICENSE=	BSD
 
 LIB_DEPENDS=	libworkman.so:${PORTSDIR}/audio/libworkman
 
-NO_STAGE=	yes
 USES=		imake
 
 USE_XORG=	xpm
@@ -24,8 +23,6 @@ USE_XORG=	xpm
 DATAFILES=	ascd-0.13pr6-themes.tgz
 THEMESDIR=	ascd-0.13pr6-themes
 
-MAN1=		ascd.1
-
 post-patch:
 	@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
 		${WRKSRC}/misc/config.h.default > ${WRKSRC}/config.h
@@ -33,11 +30,16 @@ post-patch:
 		${WRKSRC}/misc/dirs.h.default > ${WRKSRC}/dirs.h
 	@${CAT} ${WRKSRC}/version.h >> ${WRKSRC}/config.h
 
+post-configure:
+	@${REINPLACE_CMD} -E '/@(cp|cd)/ s,\(THEMESDIR\),\(DESTDIR\)$$&,g' \
+		${WRKSRC}/Makefile
+
 post-install:
 	@${ECHO_CMD} "AScd additional themes installation"
 	@${ECHO_CMD} ""
 	@${ECHO_CMD} "Untarring"
-	@${TAR} xf ${WRKDIR}/${THEMESDIR}/themes.tar -C ${PREFIX}/share/ascd/Themes
+	@${TAR} xf ${WRKDIR}/${THEMESDIR}/themes.tar -C \
+		${STAGEDIR}${PREFIX}/share/ascd/Themes
 	@${ECHO_CMD} "Done."
 
 .include <bsd.port.mk>

Modified: head/audio/ascd/pkg-plist
==============================================================================
--- head/audio/ascd/pkg-plist	Fri Feb 28 15:57:52 2014	(r346534)
+++ head/audio/ascd/pkg-plist	Fri Feb 28 16:13:26 2014	(r346535)
@@ -1,4 +1,5 @@
 bin/ascd
+man/man1/ascd.1.gz
 share/ascd/themes-manual.ps.gz
 share/ascd/Default/back.xpm
 share/ascd/Default/back_bar.xpm



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