- Use options helpers

- Add stage support
This commit is contained in:
Danilo Egea Gondolfo 2013-11-05 00:53:19 +00:00
parent 39d8d7a7f5
commit 75c3ed547f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332797

View file

@ -31,24 +31,10 @@ MAKE_ARGS= CFLAGS+="${CFLAGS}" \
PLIST_FILES= bin/${PORTNAME}${PKGNAMESUFFIX}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MICWS94}
MAKE_ARGS+= CFLAGS+="-DEXT94"
.endif
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
MAKE_ARGS+= CFLAGS+="-O3 -fomit-frame-pointer"
.endif
.if ${PORT_OPTIONS:MPERMUTATE}
MAKE_ARGS+= CFLAGS+="-DPERMUTATE"
.endif
.if ${PORT_OPTIONS:MSMALLMEM}
MAKE_ARGS+= CFLAGS+="-DSMALLMEM"
.endif
ICWS94_MAKE_ARGS= CFLAGS+="-DEXT94"
OPTIMIZED_CFLAGS_MAKE_ARGS= CFLAGS+="-O3 -fomit-frame-pointer"
PERMUTATE_MAKE_ARGS= CFLAGS+="-DPERMUTATE"
SMALLMEM_MAKE_ARGS= CFLAGS+="-DSMALLMEM"
post-patch:
@${REINPLACE_CMD} -e \
@ -60,6 +46,6 @@ post-patch:
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX})
${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX})
.include <bsd.port.mk>