aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorClement Laforet <clement@FreeBSD.org>2005-10-20 18:02:18 +0000
committerClement Laforet <clement@FreeBSD.org>2005-10-20 18:02:18 +0000
commitc595d1e445f170ee908699627e4eaeca64cf4ab0 (patch)
tree27a7f32ec4bb66858cff089753fcf0a0d9e25275 /ports-mgmt
parent5885f567cc0ef225daa4822df7636fc29df79a58 (diff)
downloadports-c595d1e445f170ee908699627e4eaeca64cf4ab0.tar.gz
ports-c595d1e445f170ee908699627e4eaeca64cf4ab0.zip
Notes
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portmk/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/ports-mgmt/portmk/Makefile b/ports-mgmt/portmk/Makefile
index 1adef89e2ee9..3b66f3cdaa2f 100644
--- a/ports-mgmt/portmk/Makefile
+++ b/ports-mgmt/portmk/Makefile
@@ -20,6 +20,10 @@ PLIST_FILES= bin/omake
PORTDOCS= ReadMe ChangeLog Features KnownIssues
+MASTER_SITE_PATCHOMATIC?= http://people.freebsd.org/~clement/portmk/
+PATCHOMATIC_FILE?= patch-o-matic-latest.tar.bz2
+WRKSRC= ${WRKDIR}/patch-o-matic
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
@@ -58,4 +62,21 @@ activate:
${CAT} ${FILESDIR}/make.conf >> /etc/make.conf && \
${ECHO_MSG} ">> Configured make.conf(5)."
+patch-o-matic:
+ @${MKDIR} ${WRKDIR}
+ @${ECHO_CMD} "==> Fetching patch-o-matic file (${MASTER_SITE_PATCHOMATIC}/${PATCHOMATIC_FILE}"
+ @(cd ${WRKDIR} ; ${RM} -f ${PATCHOMATIC_FILE} ; ${FETCH_CMD} \
+ ${MASTER_SITE_PATCHOMATIC}/${PATCHOMATIC_FILE})
+ @${TAR} yxf ${WRKDIR}/${PATCHOMATIC_FILE} -C ${WRKDIR}
+ @${ECHO_CMD} "==> Applying patches..."
+ @for patch in $$(${CAT} ${WRKSRC}/AFFECTED_PORTS); do \
+ eval `${ECHO_CMD} $$patch | ${AWK} -F\: \
+ '{print "PORT="$$1"; PATCH="$$2";"}'`; \
+ [ -e ${WRKSRC}/patches/$$PATCH ] && { \
+ ${ECHO_CMD} -n " Applying $$PATCH to $$PORT... " ; \
+ ${PATCH} -d ${PORTSDIR} -p0 < ${WRKSRC}/patches/$$PATCH > /dev/null 2>&1 || echo -n "N" ;\
+ echo OK ;\
+ }; ${TRUE} ;\
+ done
+
.include <bsd.port.post.mk>