diff options
author | clement <clement@FreeBSD.org> | 2005-10-21 02:02:18 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2005-10-21 02:02:18 +0800 |
commit | e3cc306086f85f2cfec95ba8acb85ef0159cd6cb (patch) | |
tree | 408a8d3938ca3fdccbab9e79c482bf6b783bae8e /devel/portmk | |
parent | d42020fd0113cd4804d9a073b63e98b1360d0efe (diff) | |
download | freebsd-ports-gnome-e3cc306086f85f2cfec95ba8acb85ef0159cd6cb.tar.gz freebsd-ports-gnome-e3cc306086f85f2cfec95ba8acb85ef0159cd6cb.tar.zst freebsd-ports-gnome-e3cc306086f85f2cfec95ba8acb85ef0159cd6cb.zip |
- Add "make patch-o-matic" target. It applies to a fresh ports tree patches
required to build ports correctly with devel/portmk. Currently only USE_GMAKE
changes [1] are applied. It will be heavily used in the future to support
new knobs in b.p.m (like USE_APACHE, USE_TCL, new OPTIONS, etc.)
Currently patches are added by hand. I hope I can add soon an automated way
to submit patches.
[1] Submitted by: jylefort
Diffstat (limited to 'devel/portmk')
-rw-r--r-- | devel/portmk/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/devel/portmk/Makefile b/devel/portmk/Makefile index 1adef89e2ee9..3b66f3cdaa2f 100644 --- a/devel/portmk/Makefile +++ b/devel/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> |