diff options
-rw-r--r-- | net/linneighborhood/Makefile | 8 | ||||
-rw-r--r-- | sysutils/linneighborhood/Makefile | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/net/linneighborhood/Makefile b/net/linneighborhood/Makefile index eae30b9a6956..8a410a93a898 100644 --- a/net/linneighborhood/Makefile +++ b/net/linneighborhood/Makefile @@ -24,6 +24,12 @@ USE_REINPLACE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 502102 +FORBIDDEN= "Does not respect PTHREAD_{CFLAGS,LIBS}" +.endif + post-patch: ${CP} ${FILESDIR}/mntent* ${WRKSRC}/src @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure @@ -31,4 +37,4 @@ post-patch: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/sysutils/linneighborhood/Makefile b/sysutils/linneighborhood/Makefile index eae30b9a6956..8a410a93a898 100644 --- a/sysutils/linneighborhood/Makefile +++ b/sysutils/linneighborhood/Makefile @@ -24,6 +24,12 @@ USE_REINPLACE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 502102 +FORBIDDEN= "Does not respect PTHREAD_{CFLAGS,LIBS}" +.endif + post-patch: ${CP} ${FILESDIR}/mntent* ${WRKSRC}/src @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure @@ -31,4 +37,4 @@ post-patch: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |