pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/einstein-puzzle Import einstein-puzzle-2.1.1 as ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8f7c23613d64
branches:  trunk
changeset: 350187:8f7c23613d64
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Jul 24 11:48:14 2016 +0000

description:
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:

 games/einstein-puzzle/DESCR                  |   5 ++++
 games/einstein-puzzle/Makefile               |  30 ++++++++++++++++++++++++++++
 games/einstein-puzzle/PLIST                  |   4 +++
 games/einstein-puzzle/distinfo               |   7 ++++++
 games/einstein-puzzle/patches/patch-Makefile |  28 ++++++++++++++++++++++++++
 5 files changed, 74 insertions(+), 0 deletions(-)

diffs (94 lines):

diff -r a9105453f75f -r 8f7c23613d64 games/einstein-puzzle/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/einstein-puzzle/DESCR       Sun Jul 24 11:48:14 2016 +0000
@@ -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 -r a9105453f75f -r 8f7c23613d64 games/einstein-puzzle/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/einstein-puzzle/Makefile    Sun Jul 24 11:48:14 2016 +0000
@@ -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@localhost
+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 -r a9105453f75f -r 8f7c23613d64 games/einstein-puzzle/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/einstein-puzzle/PLIST       Sun Jul 24 11:48:14 2016 +0000
@@ -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 -r a9105453f75f -r 8f7c23613d64 games/einstein-puzzle/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/einstein-puzzle/distinfo    Sun Jul 24 11:48:14 2016 +0000
@@ -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 -r a9105453f75f -r 8f7c23613d64 games/einstein-puzzle/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/einstein-puzzle/patches/patch-Makefile      Sun Jul 24 11:48:14 2016 +0000
@@ -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.
+ 



Home | Main Index | Thread Index | Old Index