diff options
author | mat <mat@FreeBSD.org> | 2015-07-01 20:11:16 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-07-01 20:11:16 +0800 |
commit | a38043e933c1c59036dce545e2cd6d003b38a434 (patch) | |
tree | c001c2276a0940cf57f57f670c1824077d9ed3b4 /CHANGES | |
parent | b5885ed0b137c179bdfc2d87acef262ac263b86f (diff) | |
download | freebsd-ports-gnome-a38043e933c1c59036dce545e2cd6d003b38a434.tar.gz freebsd-ports-gnome-a38043e933c1c59036dce545e2cd6d003b38a434.tar.zst freebsd-ports-gnome-a38043e933c1c59036dce545e2cd6d003b38a434.zip |
Introduce target option helpers.
With hat: portmgr
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D2944
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 |