Skip to content

Commit

Permalink
- Support staging
Browse files Browse the repository at this point in the history
- Add STATIC option
  (inspired by commented out CFLAGS+=-static)
  • Loading branch information
ehaupt committed Feb 8, 2014
1 parent 8684843 commit 2fab063
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions benchmarks/bonnie/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ MAINTAINER= [email protected]
COMMENT= Performance Test of Filesystem I/O

NO_WRKSUBDIR= yes
#CFLAGS+= -static
MAKE_ARGS+= -e CFLAGS="${CFLAGS}"
ALL_TARGET= bsd
MAN1= bonnie.1
PLIST_FILES= bin/bonnie
PLIST_FILES= bin/bonnie man/man1/bonnie.1.gz

OPTIONS_DEFINE= STATIC

STATIC_CFLAGS+= -static

.include <bsd.port.options.mk>

NO_STAGE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Bonnie ${PREFIX}/bin/bonnie
${INSTALL_MAN} ${FILESDIR}/bonnie.1 ${PREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKSRC}/Bonnie ${STAGEDIR}${PREFIX}/bin/bonnie
${INSTALL_MAN} ${FILESDIR}/bonnie.1 ${STAGEDIR}${PREFIX}/man/man1

.include <bsd.port.mk>

0 comments on commit 2fab063

Please sign in to comment.