summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2016-07-24 11:48:14 +0000
committerwiz <wiz@pkgsrc.org>2016-07-24 11:48:14 +0000
commit4dd31da5e2f179d8ce3df4db4ce0f1ee84aec263 (patch)
treec453b8c83d28c04df148010a01b3631df2690e73 /games
parent3162739b7413b44fe6415616abcfc7b9b91d56a9 (diff)
downloadpkgsrc-4dd31da5e2f179d8ce3df4db4ce0f1ee84aec263.tar.gz
Import einstein-puzzle-2.1.1 as games/einstein-puzzle.
Einstein puzzle is a free cross-platform open source remake of old DOS game Sherlock which was inspired by Albert Einstein's puzzle. The game goal is to open all cards in square of 6x6 cards. For this, a number of hints describing relations between card positions are given. Use them to find the correct layout.
Diffstat (limited to 'games')
-rw-r--r--games/einstein-puzzle/DESCR5
-rw-r--r--games/einstein-puzzle/Makefile30
-rw-r--r--games/einstein-puzzle/PLIST4
-rw-r--r--games/einstein-puzzle/distinfo7
-rw-r--r--games/einstein-puzzle/patches/patch-Makefile28
5 files changed, 74 insertions, 0 deletions
diff --git a/games/einstein-puzzle/DESCR b/games/einstein-puzzle/DESCR
new file mode 100644
index 00000000000..322b223b77d
--- /dev/null
+++ b/games/einstein-puzzle/DESCR
@@ -0,0 +1,5 @@
+Einstein puzzle is a free cross-platform open source remake of old
+DOS game Sherlock which was inspired by Albert Einstein's puzzle.
+The game goal is to open all cards in square of 6x6 cards. For this,
+a number of hints describing relations between card positions are
+given. Use them to find the correct layout.
diff --git a/games/einstein-puzzle/Makefile b/games/einstein-puzzle/Makefile
new file mode 100644
index 00000000000..9c2fdff9091
--- /dev/null
+++ b/games/einstein-puzzle/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2016/07/24 11:48:14 wiz Exp $
+
+DISTNAME= einstein-puzzle-2.1.1
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_GITHUB:=lksj/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/lksj/einstein-puzzle/
+COMMENT= Computer implementation of a puzzle invented by Albert Einstein
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c++
+
+MAKE_FLAGS+= PREFIX=${PREFIX}
+
+INSTALLATION_DIRS+= libexec
+
+post-build:
+ ${ECHO} '#!/bin/sh' > ${WRKDIR}/einstein.sh
+ ${ECHO} "cd ${PREFIX}/share/einstein/res && ${PREFIX}/libexec/einstein" >> ${WRKDIR}/einstein.sh
+
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/bin/einstein ${DESTDIR}${PREFIX}/libexec
+ ${INSTALL_SCRIPT} ${WRKDIR}/einstein.sh ${DESTDIR}${PREFIX}/bin/einstein
+
+.include "../../audio/SDL_mixer/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/SDL_ttf/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/einstein-puzzle/PLIST b/games/einstein-puzzle/PLIST
new file mode 100644
index 00000000000..6aec756b4b5
--- /dev/null
+++ b/games/einstein-puzzle/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/24 11:48:14 wiz Exp $
+bin/einstein
+libexec/einstein
+share/einstein/res/einstein.res
diff --git a/games/einstein-puzzle/distinfo b/games/einstein-puzzle/distinfo
new file mode 100644
index 00000000000..f86c1c17b41
--- /dev/null
+++ b/games/einstein-puzzle/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/07/24 11:48:14 wiz Exp $
+
+SHA1 (einstein-puzzle-2.1.1.tar.gz) = d64acf11a56ed278eced25572c245ec1d9ac3822
+RMD160 (einstein-puzzle-2.1.1.tar.gz) = c2a97550cf2c7aa45b113cec2cd7d968f6ae0bc2
+SHA512 (einstein-puzzle-2.1.1.tar.gz) = e34e8e0ef47c311d7417c42ba306b9e9cf94d1fd1829b3948d791543d1fb5f8f1d8d975154bab2559691cf3b94574d5485f8541882d59dd0b6284ff76e435cf3
+Size (einstein-puzzle-2.1.1.tar.gz) = 1317979 bytes
+SHA1 (patch-Makefile) = f761dfe51a52382181e1471dcb3134171ef78d16
diff --git a/games/einstein-puzzle/patches/patch-Makefile b/games/einstein-puzzle/patches/patch-Makefile
new file mode 100644
index 00000000000..b245acd22e1
--- /dev/null
+++ b/games/einstein-puzzle/patches/patch-Makefile
@@ -0,0 +1,28 @@
+$NetBSD: patch-Makefile,v 1.1 2016/07/24 11:48:14 wiz Exp $
+
+Add DESTDIR support.
+Support install(1) that does not create directories automatically.
+
+--- Makefile.orig 2015-12-03 16:45:59.000000000 +0000
++++ Makefile
+@@ -6,6 +6,7 @@
+
+ # installation prefix
+ PREFIX=/usr/local
++DESTDIR?=
+
+ ########################################
+ #
+@@ -61,8 +62,10 @@ run: $(TARGET)
+ ./$(TARGET)
+
+ install: $(TARGET)
+- $(INSTALL) -s -D $(TARGET) $(PREFIX)/bin/$(TARGET)
+- $(INSTALL) -D einstein.res $(PREFIX)/share/einstein/res/einstein.res
++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/einstein/res
++ $(INSTALL) -s $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
++ $(INSTALL) einstein.res $(DESTDIR)$(PREFIX)/share/einstein/res/einstein.res
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+