Staging support

This commit is contained in:
Pawel Pekala 2014-02-28 16:13:26 +00:00
parent 7cfb742746
commit 12e7306968
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346535
2 changed files with 7 additions and 4 deletions

View file

@ -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>

View file

@ -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