aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-02-03 00:38:22 +0800
committerantoine <antoine@FreeBSD.org>2014-02-03 00:38:22 +0800
commit44313d9453ee8170905c6a36987e263a27b2eff8 (patch)
tree1a5e79cf91b2076c1c29f3f9f42a0a74205dd14f /deskutils
parent2f65e0461197e365852af0cf04f0e6eced78c539 (diff)
downloadfreebsd-ports-gnome-44313d9453ee8170905c6a36987e263a27b2eff8.tar.gz
freebsd-ports-gnome-44313d9453ee8170905c6a36987e263a27b2eff8.tar.zst
freebsd-ports-gnome-44313d9453ee8170905c6a36987e263a27b2eff8.zip
Stage support
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/splashsetter/Makefile39
1 files changed, 20 insertions, 19 deletions
diff --git a/deskutils/splashsetter/Makefile b/deskutils/splashsetter/Makefile
index aebaa6a11d51..a2a8126f4a15 100644
--- a/deskutils/splashsetter/Makefile
+++ b/deskutils/splashsetter/Makefile
@@ -14,31 +14,32 @@ USE_BZIP2= yes
USE_PYTHON= yes
USE_GNOME= pygnome2 gnomeprefix
-NO_STAGE= yes
do-build:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
${WRKSRC}/*.py
@${FIND} ${WRKSRC} -name '*.bak' -delete
@${FIND} ${WRKSRC} -name '*.orig' -delete
- @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
- @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
- ${MKDIR} ${PREFIX}/share/pixmaps/${PORTNAME}/splash
- ${MKDIR} ${PREFIX}/libexec/${PORTNAME}
- @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} \
- ${PREFIX}/libexec/${PORTNAME}/
- @${INSTALL_DATA} ${WRKSRC}/*.py* \
- ${PREFIX}/libexec/${PORTNAME}/
- @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
- ${PREFIX}/share/applications/
- @${INSTALL_DATA} ${WRKSRC}/*.svg \
- ${PREFIX}/share/pixmaps/${PORTNAME}/
- @${INSTALL_DATA} ${WRKSRC}/splashsetter_icon.svg \
- ${PREFIX}/share/pixmaps/${PORTNAME}.svg
- @${INSTALL_DATA} ${WRKSRC}/*.png \
- ${PREFIX}/share/pixmaps/${PORTNAME}/splash/
- @${LN} -sf ${PREFIX}/libexec/${PORTNAME}/${PORTNAME} \
- ${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}/splash
+ @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} \
+ ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/*.py \
+ ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
+ ${STAGEDIR}${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/*.svg \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/splashsetter_icon.svg \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.svg
+ ${INSTALL_DATA} ${WRKSRC}/*.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}/splash
+ ${LN} -sf ${PREFIX}/libexec/${PORTNAME}/${PORTNAME} \
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
+ -d ${PREFIX}/libexec/${PORTNAME} -f libexec/${PORTNAME}
+ cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O -m compileall \
+ -d ${PREFIX}/libexec/${PORTNAME} -f libexec/${PORTNAME}
.include <bsd.port.mk>