Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2017 10:05:36 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r430938 - head/games/bastet
Message-ID:  <201701091005.v09A5awj007794@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701091005.v09A5awj007794>