summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg>2014-02-24 16:16:11 +0000
committerjoerg <joerg>2014-02-24 16:16:11 +0000
commitff8819a846b2c3ac468597bce47ade79ed8318b1 (patch)
treedd1a0d012cc020e559842dccb6b69c5b03b1b5bb /games
parente42e17a0c9831270010fc3a117d2e9580d4115da (diff)
downloadpkgsrc-ff8819a846b2c3ac468597bce47ade79ed8318b1.tar.gz
Simplify and unbreak.
Diffstat (limited to 'games')
-rw-r--r--games/flare-game/Makefile27
1 files changed, 2 insertions, 25 deletions
diff --git a/games/flare-game/Makefile b/games/flare-game/Makefile
index 5871d796a02..b97250be0d4 100644
--- a/games/flare-game/Makefile
+++ b/games/flare-game/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2014/02/02 23:21:37 rodent Exp $
+# $NetBSD: Makefile,v 1.2 2014/02/24 16:16:11 joerg Exp $
#
DISTNAME= v0.19
@@ -18,35 +18,12 @@ WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES= c c++
USE_CMAKE= yes
-CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:STRING="${DESTDIR}${PREFIX}"
-CMAKE_ARGS+= -DDATADIR:STRING="${PREFIX}/share/flare"
+CMAKE_ARGS+= -DDATADIR:STRING="${PREFIX}/share/flare" -DBINDIR:STRING=bin -DMANDIR:STRING=${PKGMANDIR}
REPLACE_PYTHON+= mods/alpha_demo/languages/xgettext.py
REPLACE_PYTHON+= mods/default/languages/xgettext.py
REPLACE_PYTHON+= mods/fantasycore/languages/xgettext.py
-SUBST_CLASSES+= paths
-SUBST_FILES.paths= CMakeLists.txt build/cmake_install.cmake
-SUBST_FILES.paths+= build/CMakeCache.txt
-SUBST_MESSAGE.paths= Fixing paths.
-SUBST_SED.paths= -e "s|/usr/local/games|${PREFIX}/bin|g"
-SUBST_SED.paths+= -e "s|/usr/local|${PREFIX}|g"
-SUBST_SED.paths+= -e 's|share/games|share|g'
-SUBST_SED.paths+= -e 's|/games|/bin|1'
-SUBST_STAGE.paths= post-configure
-
-pre-configure:
- cd ${WRKSRC} && ${MKDIR} build
-
-do-configure:
- cd ${WRKSRC}/build && ${SETENV} ${CONFIGURE_ENV} ${CMAKE} ..
-
-do-build:
- cd ${WRKSRC}/build && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
-
-do-install:
- cd ${WRKSRC}/build && ${SETENV} ${INSTALL_ENV} ${MAKE_PROGRAM} ${INSTALL_TARGET}
-
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/pthread.buildlink3.mk"