diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-07-01 12:11:16 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-07-01 12:11:16 +0000 |
commit | fc9ea03981dd03ed872cb96b7cc171b6ba64dc97 (patch) | |
tree | c001c2276a0940cf57f57f670c1824077d9ed3b4 /CHANGES | |
parent | 2e495a014418c045da9cc30cd02a000a0617598e (diff) |
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-- | CHANGES | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -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 |