diff options
author | gahr <gahr@FreeBSD.org> | 2014-02-13 21:50:35 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2014-02-13 21:50:35 +0800 |
commit | 1a636fe11de027d1170121af74ad1aa18428b929 (patch) | |
tree | ea3882317a09d9b2101201fe7433ee302036e666 /mail | |
parent | 1fa74784740b054a2c56474011c555a8f5ece4e0 (diff) | |
download | freebsd-ports-gnome-1a636fe11de027d1170121af74ad1aa18428b929.tar.gz freebsd-ports-gnome-1a636fe11de027d1170121af74ad1aa18428b929.tar.zst freebsd-ports-gnome-1a636fe11de027d1170121af74ad1aa18428b929.zip |
- STAGE-clean
- Refactor a bit
Diffstat (limited to 'mail')
-rw-r--r-- | mail/gmail-notify/Makefile | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/mail/gmail-notify/Makefile b/mail/gmail-notify/Makefile index f163691354ee..31a7409b59de 100644 --- a/mail/gmail-notify/Makefile +++ b/mail/gmail-notify/Makefile @@ -16,30 +16,28 @@ USE_GNOME= pygtk2 USE_PYTHON= yes USES= gmake pkgconfig -NO_STAGE= yes -.include <bsd.port.pre.mk> - WRKSRC= ${WRKDIR}/${PORTNAME} -EXTRAS_WRKSRC!= cd ${PORTSDIR}/x11-toolkits/py-gnome-extras && ${MAKE} -V WRKSRC +EXTRAS_DIR= ${PORTSDIR}/x11-toolkits/py-gnome-extras post-patch: ${SED} -e 's|@DATADIR@|${DATADIR}|' ${FILESDIR}/gmail-notifier > ${WRKSRC}/gmail-notifier ${SED} -e 's|@PYTHON_INCLUDEDIR@|${PYTHON_INCLUDEDIR}|' ${FILESDIR}/Makefile.in > ${WRKSRC}/Makefile -pre-configure: - ${CP} ${EXTRAS_WRKSRC}/egg/tray/eggtrayicon.[ch] ${EXTRAS_WRKSRC}/egg/tray/trayicon* ${WRKSRC} +pre-build: + ${CP} `${MAKE} -C ${EXTRAS_DIR} -V WRKSRC`/egg/tray/eggtrayicon.[ch] ${WRKSRC} + ${CP} `${MAKE} -C ${EXTRAS_DIR} -V WRKSRC`/egg/tray/trayicon* ${WRKSRC} ${CP} ${FILESDIR}/config.h ${WRKSRC} ${RM} ${WRKSRC}/pytrayicon.so do-install: - ${MKDIR} ${DATADIR} - ${INSTALL_SCRIPT} ${WRKSRC}/gmail-notifier ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/*.py ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/*.png ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/*.jpg ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/*.so ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/langs.xml ${DATADIR} - -.include <bsd.port.post.mk> + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/gmail-notifier ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/*.png ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/*.jpg ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/*.so ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/langs.xml ${STAGEDIR}${DATADIR} + +.include <bsd.port.mk> |