diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2014-04-12 05:41:16 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2014-04-12 05:41:16 +0800 |
commit | 2c805d3550a3f20b804a91b664683ae78d47f910 (patch) | |
tree | 4d2abbebebafd26f91f9779afaae80919dd2be9c /games | |
parent | e5d14be3dddfda985a9bdff11e75d9184166d3b4 (diff) | |
download | freebsd-ports-gnome-2c805d3550a3f20b804a91b664683ae78d47f910.tar.gz freebsd-ports-gnome-2c805d3550a3f20b804a91b664683ae78d47f910.tar.zst freebsd-ports-gnome-2c805d3550a3f20b804a91b664683ae78d47f910.zip |
- Support staging
- Define DOCS option
Diffstat (limited to 'games')
-rw-r--r-- | games/nibbles/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/games/nibbles/Makefile b/games/nibbles/Makefile index eedba4e115e4..fb529ced1b56 100644 --- a/games/nibbles/Makefile +++ b/games/nibbles/Makefile @@ -14,7 +14,8 @@ CFLAGS+= -Wall DOCSDIR= ${PREFIX}/share/doc/${PORTNAME} -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + do-build: (cd ${WRKSRC} && ${CC} ${CFLAGS} -c -o main.o main.c) (cd ${WRKSRC} && ${CC} ${CFLAGS} -c -o misc.o misc.c) @@ -22,11 +23,8 @@ do-build: (cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} main.o misc.o screen.o) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} - -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |