- Use options helpers
- Add stage support
This commit is contained in:
parent
39d8d7a7f5
commit
75c3ed547f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332797
1 changed files with 5 additions and 19 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue