summaryrefslogtreecommitdiffstats
path: root/games/emptyepsilon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/emptyepsilon/Makefile')
-rw-r--r--games/emptyepsilon/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/games/emptyepsilon/Makefile b/games/emptyepsilon/Makefile
new file mode 100644
index 0000000..53ec9bf
--- /dev/null
+++ b/games/emptyepsilon/Makefile
@@ -0,0 +1,34 @@
+# Created by: Yuri Victorovich <yuri@rawbw.com>
+# $FreeBSD$
+
+PORTNAME= emptyepsilon
+PORTVERSION= 2016.09.02
+DISTVERSIONPREFIX= EE-
+CATEGORIES= games
+
+MAINTAINER= yuri@rawbw.com
+COMMENT= Spaceship bridge simulator game
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libsfml-system.so:devel/sfml
+
+USE_GITHUB= yes
+GH_TUPLE= daid:EmptyEpsilon:${DISTVERSIONFULL}
+GH_TUPLE+= daid:SeriousProton:${DISTVERSIONFULL}:sproton
+
+USES= cmake compiler:c++11-lib gmake
+USE_GL= gl glu
+CMAKE_ARGS= -DSERIOUS_PROTON_DIR="${WRKSRC_sproton}/"
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|basepath + |"${DATADIR}/" + basepath + |' \
+ ${WRKSRC_sproton}/src/resources.cpp
+ @${REINPLACE_CMD} -e 's|loadFromFile("resources/"|loadFromFile("${DATADIR}/resources/"|' \
+ ${WRKSRC_sproton}/src/postProcessManager.cpp
+
+post-install:
+ @${MV} ${STAGEDIR}${PREFIX}/bin/EmptyEpsilon ${STAGEDIR}${PREFIX}/bin/emptyepsilon
+
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud