Convert to options target helper

Approved by:	portmgr (blanket)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-08-20 12:30:20 +00:00
parent 8b00ad7ff1
commit 2d7bbd90ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448414

View file

@ -48,15 +48,13 @@ REINPLACE_FILES= libguile/smob.c libguile/filesys.c libguile/gc.c \
INFO= guile r5rs
.include <bsd.port.options.mk>
post-patch:
@cd ${WRKSRC} ; \
${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${REINPLACE_FILES}
@${REINPLACE_CMD} -e 's|sys/time.h sys/timeb.h|sys/time.h |g' \
${WRKSRC}/configure
.if ${PORT_OPTIONS:MTHREADS}
post-patch-THREADS-on:
@${REINPLACE_CMD} -e 's|bdw-gc|bdw-gc-threaded|g' ${WRKSRC}/configure
.endif
.include <bsd.port.mk>