svn commit: r430938 - head/games/bastet

Dmitry Marakasov amdmi3 at FreeBSD.org
Mon Jan 9 10:05:37 UTC 2017


Author: amdmi3
Date: Mon Jan  9 10:05:35 2017
New Revision: 430938
URL: https://svnweb.freebsd.org/changeset/ports/430938

Log:
  - Add LICENSE_FILE
  - Switch to USES=localbase
  - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL
  - Simplify installation

Modified:
  head/games/bastet/Makefile

Modified: head/games/bastet/Makefile
==============================================================================
--- head/games/bastet/Makefile	Mon Jan  9 10:05:19 2017	(r430937)
+++ head/games/bastet/Makefile	Mon Jan  9 10:05:35 2017	(r430938)
@@ -11,34 +11,16 @@ MAINTAINER=	ports at 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>


More information about the svn-ports-all mailing list