diff options
author | tijl <tijl@FreeBSD.org> | 2016-03-20 18:53:08 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2016-03-20 18:53:08 +0800 |
commit | 9bf09f69cf8a3acf95e51a0a1e8d6eedfd31e3ca (patch) | |
tree | c30aa05ffe4be67ca3bb38317073b7e6603daa7c /Mk | |
parent | 6af0c041428d493f447a328f9e81efe5b6d72273 (diff) | |
download | freebsd-ports-gnome-9bf09f69cf8a3acf95e51a0a1e8d6eedfd31e3ca.tar.gz freebsd-ports-gnome-9bf09f69cf8a3acf95e51a0a1e8d6eedfd31e3ca.tar.zst freebsd-ports-gnome-9bf09f69cf8a3acf95e51a0a1e8d6eedfd31e3ca.zip |
Install net/libnet headers and libraries back in the location where other
ports expect it. The files were put in a different location to avoid a
conflict with net/libnet10 but this port has been removed a while ago now.
PR: 208122
Exp-run by: antoine
Approved by: portmgr (antoine)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 50 |
1 files changed, 46 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 1312907a8d5d..fd942284229e 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1064,6 +1064,8 @@ LIB_DIRS?= /lib /usr/lib ${LOCALBASE}/lib STAGEDIR?= ${WRKDIR}/stage NOTPHONY?= MINIMAL_PKG_VERSION= 1.6.0 +LANG= C +.export LANG # make sure bmake treats -V as expected .MAKE.EXPAND_VARIABLES= yes @@ -1104,12 +1106,44 @@ STRIPBIN= ${STRIP_CMD} .else +# Look for files named "*.orig" under ${PATCH_WRKSRC} and (re-)generate +# ${PATCHDIR}/patch-* files from them. .if !target(makepatch) makepatch: - @${SETENV} WRKDIR=${WRKDIR} PATCHDIR=${PATCHDIR} \ - PATCH_WRKSRC=${PATCH_WRKSRC} \ - STRIP_COMPONENTS="${PATCH_STRIP:S/-p//}" \ - ${SH} ${SCRIPTSDIR}/smart_makepatch.sh + @${MKDIR} ${PATCHDIR} + @(cd ${PATCH_WRKSRC} && find -s * -type f -name '*.orig' | awk ' \ + BEGIN { sep = "-" }; \ + FILENAME == "-" { sub(/\.orig$$/, ""); list[n++] = $$0 }; \ + FILENAME == "-" && index($$0, sep) { \ + gsub(/-/, "_", sep) || gsub(/_/, "+", sep) || \ + gsub(/\+/, "-", sep) && sep = sep "-" }; \ + FILENAME != "-" && /^\+\+\+/ { \ + sub(/^\.\//, "", $$2); patches[$$2] = FILENAME; \ + if (index($$2, sep)) \ + gsub(/-/, "_", sep) || gsub(/_/, "+", sep) || \ + gsub(/\+/, "-", sep) && sep = sep "-" }; \ + END { \ + for (i in list) { \ + p = list[i]; \ + if (p in patches) system("${RM} " patches[p]); \ + } \ + for (i = 0; i < n; i++) { \ + p = list[i]; \ + if (p in patches) print p, patches[p]; \ + else { \ + gsub("/", sep, p); \ + print list[i], "${PATCHDIR}/patch-" p; \ + } \ + } \ + }' - `find -s ${PATCHDIR} -name 'patch-*'` | \ + while read f p; do \ + cmp -s $$f.orig $$f && continue; \ + ${ECHO} ${DIFF} -udp $$f.orig $$f '>>' $$p; \ + TZ=UTC ${DIFF} -udp $$f.orig $$f | ${SED} \ + -e '/^---/s|\.[0-9]* +0000$$| UTC|' \ + -e '/^+++/s|\([[:blank:]][-0-9:.+]*\)*$$||' \ + >> $$p || ${TRUE}; \ + done) .endif @@ -3215,6 +3249,14 @@ do-extract: fi .endif +.if !target(extract-recursive) +extract-recursive: + @${ECHO_MSG} "===> Extracting ${PKGNAME} and dependencies"; + @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ + (cd $$dir; ${MAKE} extract); \ + done +.endif # extract-recursive + # Patch .if !target(do-patch) |