summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-01-09 10:05:35 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-01-09 10:05:35 +0000
commit3afbd01ca210cccf7c5e8c736462edc7afca7ad7 (patch)
treec2e073012df8a405b600720d67f1a05be6d97fd1
parent- Switch to USES=localbase (diff)
- Add LICENSE_FILE
- Switch to USES=localbase - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL - Simplify installation
-rw-r--r--games/bastet/Makefile32
1 files changed, 6 insertions, 26 deletions
diff --git a/games/bastet/Makefile b/games/bastet/Makefile
index 511df0a6e1e1..57084d8af89d 100644
--- a/games/bastet/Makefile
+++ b/games/bastet/Makefile
@@ -11,34 +11,16 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Ncurses Tetris clone which is harder than every other Tetris
LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_powerpc64= Does not build
+BROKEN_powerpc64= does not build
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs
-USES= gmake ncurses tar:tgz
-
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+USES= gmake localbase:ldflags ncurses tar:tgz
PLIST_FILES= bin/bastet man/man6/bastet.6.gz
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 1000024
-.if exists(/usr/bin/clang)
-CC= clang
-CXX= clang++
-CPP= clang-cpp
-.else
-.if ${ARCH} == "i386"
-CXXFLAGS+= -fexceptions
-.else
-USE_GCC= yes
-.endif
-.endif
-.endif
-
post-patch:
@${REINPLACE_CMD} -e \
's|^CXXFLAGS+=-D|CXXFLAGS+=$$(CPPFLAGS) -D| ; \
@@ -46,9 +28,7 @@ post-patch:
s| -ggdb | |' ${WRKSRC}/Makefile
do-install:
- (cd ${WRKSRC} && ${INSTALL_PROGRAM} bastet \
- ${STAGEDIR}${PREFIX}/bin)
- (cd ${WRKSRC} && ${INSTALL_MAN} bastet.6 \
- ${STAGEDIR}${MAN6PREFIX}/man/man6)
+ ${INSTALL_PROGRAM} ${WRKSRC}/bastet ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/bastet.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>