aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-01-09 18:05:35 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-01-09 18:05:35 +0800
commit7dc9268e18bf7604222b385634a42ce828c64759 (patch)
treec2e073012df8a405b600720d67f1a05be6d97fd1 /games
parent86c835a6f756e790e2dfaa48d5629ede344678d8 (diff)
downloadfreebsd-ports-gnome-7dc9268e18bf7604222b385634a42ce828c64759.tar.gz
freebsd-ports-gnome-7dc9268e18bf7604222b385634a42ce828c64759.tar.zst
freebsd-ports-gnome-7dc9268e18bf7604222b385634a42ce828c64759.zip
- Add LICENSE_FILE
- Switch to USES=localbase - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL - Simplify installation
Diffstat (limited to 'games')
-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>