aboutsummaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-07-01 12:11:16 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-07-01 12:11:16 +0000
commitfc9ea03981dd03ed872cb96b7cc171b6ba64dc97 (patch)
treec001c2276a0940cf57f57f670c1824077d9ed3b4 /CHANGES
parent2e495a014418c045da9cc30cd02a000a0617598e (diff)
downloadports-fc9ea03981dd03ed872cb96b7cc171b6ba64dc97.tar.gz
ports-fc9ea03981dd03ed872cb96b7cc171b6ba64dc97.zip
Introduce target option helpers.
With hat: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D2944
Notes
Notes: svn path=/head/; revision=391051
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES32
1 files changed, 32 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 69c3cf765c98..cddde1ab7ca1 100644
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,38 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
+20150701:
+AUTHOR: mat@FreeBSD.org
+
+ Make option target helpers have been added, it allows replacing:
+
+ .include <bsd.port.options.mk>
+
+ post-patch:
+ ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
+ ${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh
+ .if ${PORT_OPTIONS:MPTHREAD}
+ ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|-lpthread|g;' \
+ ${WRKSRC}/hints/freebsd.sh
+ .else
+ ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
+ ${WRKSRC}/hints/freebsd.sh
+ .endif
+
+ with:
+
+ post-patch:
+ ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
+ ${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh
+
+ post-patch-PTHREAD-on:
+ ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|-lpthread|g;' \
+ ${WRKSRC}/hints/freebsd.sh
+
+ post-patch-PTHREAD-off:
+ ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
+ ${WRKSRC}/hints/freebsd.sh
+
20150622:
AUTHOR: bapt@FreeBSD.org