Page MenuHomeFreeBSD

Create option target helpers.
ClosedPublic

Authored by mat on Jun 29 2015, 3:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 11:36 AM
Unknown Object (File)
Mon, Oct 28, 10:37 PM
Unknown Object (File)
Oct 25 2024, 3:03 PM
Unknown Object (File)
Oct 21 2024, 7:01 AM
Unknown Object (File)
Sep 22 2024, 5:49 PM
Unknown Object (File)
Sep 21 2024, 3:54 PM
Unknown Object (File)
Sep 13 2024, 12:20 AM
Unknown Object (File)
Sep 11 2024, 4:10 PM
Subscribers
None

Details

Reviewers
None
Group Reviewers
portmgr
Commits
rP391051: Introduce target option helpers.
Summary

It will permit 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

so that there's even less need to .include bsd.port.options.mk.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mat retitled this revision from to Create option target helpers..
mat updated this object.
mat edited the test plan for this revision. (Show Details)
mat added a reviewer: portmgr.
mat edited edge metadata.

Looks like pre-stage-*-o{n,ff} were forgotten there. Also there is no pre-stage target.

This revision was automatically updated to reflect the committed changes.