aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-07-14 22:08:47 +0800
committerpav <pav@FreeBSD.org>2004-07-14 22:08:47 +0800
commit6515e13de6b93027faf32e2ede7a2b494a0ce3f2 (patch)
treea89424b9294f1ff2a811476871ae6bff9ddc7a00 /games
parentfe9281f91242b2316ff0df16cbfcd5edbf692c9d (diff)
downloadfreebsd-ports-gnome-6515e13de6b93027faf32e2ede7a2b494a0ce3f2.tar.gz
freebsd-ports-gnome-6515e13de6b93027faf32e2ede7a2b494a0ce3f2.tar.zst
freebsd-ports-gnome-6515e13de6b93027faf32e2ede7a2b494a0ce3f2.zip
Childsplay is a 'suite' of educational games for young children, like gcompris,
but without the overkill of GNOME environment. Also the use of the SDL libraries makes smooth animation and the playing of sound very easy. Childsplay uses a plugin system for the games, so you might want to check the childsplay-plugins page. (There are two built-in games; Memory and a typing game) PR: ports/68953 Submitted by: bruno <bruno@mail.tinkerbox.org>
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/childsplay/Makefile42
-rw-r--r--games/childsplay/distinfo2
-rw-r--r--games/childsplay/files/patch-Makefile34
-rw-r--r--games/childsplay/files/patch-cleanup.sh15
-rw-r--r--games/childsplay/files/patch-letter-trans.py12
-rw-r--r--games/childsplay/files/patch-letters.py15
-rw-r--r--games/childsplay/files/patch-pyassetml.py10
-rw-r--r--games/childsplay/pkg-descr8
-rw-r--r--games/childsplay/pkg-plist149
10 files changed, 288 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 6b737e799a40..74f20048892b 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -65,6 +65,7 @@
SUBDIR += cardpics
SUBDIR += cgoban
SUBDIR += cgoban2
+ SUBDIR += childsplay
SUBDIR += chromium
SUBDIR += circuslinux
SUBDIR += civ2demo
diff --git a/games/childsplay/Makefile b/games/childsplay/Makefile
new file mode 100644
index 000000000000..6820744bfb16
--- /dev/null
+++ b/games/childsplay/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: pyassetml
+# Date created: 6 July 2004
+# Whom: bruno
+#
+# $FreeBSD$
+#
+
+PORTNAME= childsplay
+PORTVERSION= 0.71
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= childsplay
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= bruno@tinkerbox.org
+COMMENT= Educative games for children
+
+BUILD_DEPENDS= ${LOCALBASE}/include/${PYTHON_VERSION}/pygame/pygame.h:${PORTSDIR}/devel/py-game
+RUN_DEPENDS= ${LOCALBASE}/include/${PYTHON_VERSION}/pygame/pygame.h:${PORTSDIR}/devel/py-game
+LIB_DEPENDS= assetml.0:${PORTSDIR}/devel/libassetml
+
+USE_PYTHON= yes
+USE_REINPLACE= yes
+
+# avoid asking for translation to your local language on install
+MAKE_ENV= LANG=C
+
+MAN6= childsplay.6
+
+post-patch:
+ @${REINPLACE_CMD} -e "s@PREFIX = /usr/local@PREFIX=${PREFIX}@g " ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e "s@ASSETMLROOT = '/usr/local'@ASSETMLROOT= '${PREFIX}'@g " ${WRKSRC}/pyassetml.py
+ @${REINPLACE_CMD} -e "s@PREFIX = \"/usr/local\"@PREFIX= '${PREFIX}'@g" ${WRKSRC}/pyassetmlcreator.py
+ @${REINPLACE_CMD} -e "s@ASSETMLROOT= '/usr/local'@ASSETMLROOT= '${PREFIX}/share/gnome/assetml'@g" ${WRKSRC}/pyassetmlSDL.py
+ @${REINPLACE_CMD} -e "s@PREFIX=/usr/local@PREFIX=${PREFIX}@g " ${WRKSRC}/cleanup.sh
+ @${REINPLACE_CMD} -e "s@'/','usr'@'${PREFIX}'@g" ${WRKSRC}/pyassetmlcreator.py
+ @${REINPLACE_CMD} -e "s@/usr/share/assetml@${PREFIX}/share/gnome/assetml@g" ${WRKSRC}/pyassetml.py ${WRKSRC}/pyassetmlSDL.py
+
+post-build:
+ @${FIND} ${WRKSRC} -name *.orig -delete
+
+.include <bsd.port.mk>
diff --git a/games/childsplay/distinfo b/games/childsplay/distinfo
new file mode 100644
index 000000000000..1ffa567f9b51
--- /dev/null
+++ b/games/childsplay/distinfo
@@ -0,0 +1,2 @@
+MD5 (childsplay-0.71.tgz) = 15bc9eb10abc78ba7b3a1cd71b02e883
+SIZE (childsplay-0.71.tgz) = 1144737
diff --git a/games/childsplay/files/patch-Makefile b/games/childsplay/files/patch-Makefile
new file mode 100644
index 000000000000..6995224989e3
--- /dev/null
+++ b/games/childsplay/files/patch-Makefile
@@ -0,0 +1,34 @@
+--- Makefile.orig Tue Jun 29 10:42:05 2004
++++ Makefile Sun Jul 11 23:11:10 2004
+@@ -4,12 +4,13 @@
+ PREFIX = /usr/local
+
+ LOCALEDIR = $(PREFIX)/share/locale
+-ASSETMLDIR = /usr/share/assetml
++ASSETMLDIR = $(PREFIX)/share/gnome/assetml
+ PYTHON = /usr/bin/env python
+-DOCDIR = $(PREFIX)/doc/childsplay
++DOCDIR = $(PREFIX)/share/doc/childsplay
+ MANDIR = $(PREFIX)/man
+-DESTDIR = $(PREFIX)/games/childsplay
++DESTDIR = $(PREFIX)/childsplay
+
++all: childsplay
+ default: childsplay
+
+ install:
+@@ -36,12 +37,12 @@
+ @cp -rf lib $(DESTDIR)
+
+ @echo "Copy docs to $(MANDIR) and $(DOCDIR)"
+- @cp -rf man/childsplay.6.gz $(MANDIR)
++ @cp -rf man/childsplay.6.gz $(MANDIR)/man6
+ @cp -rf doc/* $(DOCDIR)
+
+ @echo "Looking for old locale files, and removing them"
+ @sh ./cleanup.sh
+-
++
+ @echo "Copy locales to $(LOCALEDIR)"
+ @cp -rf locale/* $(LOCALEDIR)
+
diff --git a/games/childsplay/files/patch-cleanup.sh b/games/childsplay/files/patch-cleanup.sh
new file mode 100644
index 000000000000..c9ac2c81b703
--- /dev/null
+++ b/games/childsplay/files/patch-cleanup.sh
@@ -0,0 +1,15 @@
+--- cleanup.sh.orig Tue Jun 29 10:42:05 2004
++++ cleanup.sh Sun Jul 11 23:58:19 2004
+@@ -1,7 +1,11 @@
+ #!/bin/sh
++PREFIX=/usr/local
+
+ for old in childsplay.mo letters.mo numbers.mo memory.mo \
+ soundmemory.mo soundNpic.mo packid.mo; do
+ echo "Looking for $old"
+- find /usr/share/locale/ -name $old -exec rm -v {} \;
++ if [ -e $PREFIX/share/locale ]
++ then
++ find $PREFIX/share/locale/ -name $old -exec rm -v {} \;
++ fi
+ done
diff --git a/games/childsplay/files/patch-letter-trans.py b/games/childsplay/files/patch-letter-trans.py
new file mode 100644
index 000000000000..60c1cdbb346f
--- /dev/null
+++ b/games/childsplay/files/patch-letter-trans.py
@@ -0,0 +1,12 @@
+--- letters-trans.py.orig Tue Jun 29 10:42:05 2004
++++ letters-trans.py Wed Jul 7 11:28:25 2004
+@@ -60,7 +60,8 @@
+ sys.exit(0)
+
+ # get description names from memory assetml, these are the words used by letters.py
+-parser = pyassetml.AssetmlParser('childsplay/memory-136x136/memory-136x136.assetml')
++assetmlfile = os.path.join(cwd,'memory-136x136.assetml')
++parser = pyassetml.AssetmlParser(assetmlfile)
+ loc = parser.get_locale()# get current locale setting, only the first two chars !!
+ wlist_org = parser.find_names((('file','.'),('description',"en")))
+ wlist = parser.find_names((('file','.'),('description',loc)))
diff --git a/games/childsplay/files/patch-letters.py b/games/childsplay/files/patch-letters.py
new file mode 100644
index 000000000000..f5e4ec41a546
--- /dev/null
+++ b/games/childsplay/files/patch-letters.py
@@ -0,0 +1,15 @@
+--- lib/letters.py.orig Tue Jun 29 10:42:05 2004
++++ lib/letters.py Mon Jul 12 10:15:43 2004
+@@ -80,7 +80,11 @@
+ loc = 'en'
+ self.trans_descr_pics = {}
+ for k,v in descr_pics.items():
+- found = parser.find_names((('file',k),('description',loc)))[0]
++ try:
++ found = parser.find_names((('file',k),('description',loc)))[0]
++ except TypeError:
++ if DEBUG: print >> sys.stderr,"Error in names searching, assetml","descr_pics",descr_pics,"locale",loc
++ found = None
+ if found:
+ self.trans_descr_pics[found.upper()] = v
+ else:
diff --git a/games/childsplay/files/patch-pyassetml.py b/games/childsplay/files/patch-pyassetml.py
new file mode 100644
index 000000000000..a243fc65366d
--- /dev/null
+++ b/games/childsplay/files/patch-pyassetml.py
@@ -0,0 +1,10 @@
+--- pyassetml.py.orig Tue Jun 29 10:42:05 2004
++++ pyassetml.py Sun Jul 11 22:31:09 2004
+@@ -158,6 +159,7 @@
+
+ def get_locale(self):
+ loc = locale.setlocale(locale.LC_ALL,'')[:2]
++ if loc == 'C': loc = 'en'
+ return loc
+
+ def _get_nodes(self):
diff --git a/games/childsplay/pkg-descr b/games/childsplay/pkg-descr
new file mode 100644
index 000000000000..25c49954f1c7
--- /dev/null
+++ b/games/childsplay/pkg-descr
@@ -0,0 +1,8 @@
+Childsplay is a 'suite' of educational games for young children, like gcompris,
+but without the overkill of GNOME environment. Also the use of the SDL
+libraries makes smooth animation and the playing of sound very easy.
+Childsplay uses a plugin system for the games, so you might want to check the
+childsplay-plugins page. (There are two built-in games; Memory and a typing
+game)
+
+WWW: http://childsplay.sourceforge.net
diff --git a/games/childsplay/pkg-plist b/games/childsplay/pkg-plist
new file mode 100644
index 000000000000..b24ac0ef0b52
--- /dev/null
+++ b/games/childsplay/pkg-plist
@@ -0,0 +1,149 @@
+bin/childsplay
+childsplay/CPConstants.py
+childsplay/utils.py
+childsplay/splash.py
+childsplay/pyassetmlcreator.py
+childsplay/pyassetmlSDL.py
+childsplay/pyassetml.py
+childsplay/letters-trans.py
+childsplay/install.py
+childsplay/childsplay.py
+childsplay/Timer.py
+childsplay/SpriteUtils.py
+childsplay/ConfParser.py
+childsplay/CPMenu.py
+childsplay/version.py
+childsplay/Data/icons/letters.icon.png
+childsplay/Data/icons/memory.icon.png
+childsplay/Data/bluebold.ttf
+childsplay/Data/bluehigh.ttf
+childsplay/Data/boom.wav
+childsplay/Data/bullpen3.ttf
+childsplay/Data/bummer.wav
+childsplay/Data/chpl-icon-48-flat.png
+childsplay/Data/chpl-icon-48.png
+childsplay/Data/chpl-icon-48.xpm
+childsplay/Data/cows.ogg
+childsplay/Data/cowsplash-load.png
+childsplay/Data/cowsplash.png
+childsplay/Data/pointer_mask.xbm
+childsplay/Data/score
+childsplay/Data/wahoo.wav
+childsplay/lib/ConfigData/childsplayrc
+childsplay/lib/MemoryData/cardback.png
+childsplay/lib/MemoryData/cardfront.png
+childsplay/lib/letters.py
+childsplay/lib/memory.py
+childsplay/lib/letters.pyc
+childsplay/lib/memory.pyc
+childsplay/CPConstants.pyc
+childsplay/CPMenu.pyc
+childsplay/ConfParser.pyc
+childsplay/SpriteUtils.pyc
+childsplay/Timer.pyc
+childsplay/childsplay.pyc
+childsplay/install.pyc
+childsplay/letters-trans.pyc
+childsplay/pyassetml.pyc
+childsplay/pyassetmlSDL.pyc
+childsplay/pyassetmlcreator.pyc
+childsplay/splash.pyc
+childsplay/utils.pyc
+childsplay/version.pyc
+share/doc/childsplay/po/fr/childsplay_0.71_fr.po
+share/doc/childsplay/po/da/childsplay_0.71_da.po
+share/doc/childsplay/po/de/childsplay_0.71_de.po
+share/doc/childsplay/po/es/childsplay_0.71_es.po
+share/doc/childsplay/po/wordlist/README.gz
+share/doc/childsplay/po/wordlist/words-en.gz
+share/doc/childsplay/po/wordlist/words-esp.gz
+share/doc/childsplay/po/wordlist/words-fr.gz
+share/doc/childsplay/po/wordlist/words-nl.gz
+share/doc/childsplay/po/wordlist/words-de.gz
+share/doc/childsplay/po/nl/childsplay_0.71_nl.po
+share/doc/childsplay/po/tr/childsplay_0.71_tr.po
+share/doc/childsplay/po/childsplay_0.71.pot
+share/doc/childsplay/copyright
+share/doc/childsplay/changelog.text
+share/doc/childsplay/README.games-module
+share/doc/childsplay/README.develop
+share/doc/childsplay/GPL-2
+share/doc/childsplay/README.rc-files
+share/locale/nl/LC_MESSAGES/childsplay.mo
+share/locale/fr/LC_MESSAGES/childsplay.mo
+share/locale/es/LC_MESSAGES/childsplay.mo
+share/locale/de/LC_MESSAGES/childsplay.mo
+share/locale/da/LC_MESSAGES/childsplay.mo
+share/gnome/assetml/childsplay/childsplay-images/po/Translation.raw
+share/gnome/assetml/childsplay/childsplay-images/MORE_but.png
+share/gnome/assetml/childsplay/childsplay-images/OK_but.png
+share/gnome/assetml/childsplay/childsplay-images/arrow.png
+share/gnome/assetml/childsplay/childsplay-images/balloonsl.png
+share/gnome/assetml/childsplay/childsplay-images/balloonsr.png
+share/gnome/assetml/childsplay/childsplay-images/blue.jpg
+share/gnome/assetml/childsplay/childsplay-images/bluebold.ttf
+share/gnome/assetml/childsplay/childsplay-images/bluehigh.ttf
+share/gnome/assetml/childsplay/childsplay-images/bullpen3.ttf
+share/gnome/assetml/childsplay/childsplay-images/childsplay-images.assetml
+share/gnome/assetml/childsplay/childsplay-images/chpl-icon-48-flat.png
+share/gnome/assetml/childsplay/childsplay-images/chpl-icon-48.png
+share/gnome/assetml/childsplay/childsplay-images/chpl-icon-48.xpm
+share/gnome/assetml/childsplay/childsplay-images/cowsplash-load.png
+share/gnome/assetml/childsplay/childsplay-images/cowsplash.png
+share/gnome/assetml/childsplay/childsplay-images/firework1.png
+share/gnome/assetml/childsplay/childsplay-images/firework2.png
+share/gnome/assetml/childsplay/childsplay-images/hscore.png
+share/gnome/assetml/childsplay/childsplay-images/land.png
+share/gnome/assetml/childsplay/childsplay-images/pointer.png
+share/gnome/assetml/childsplay/childsplay-images/question1.png
+share/gnome/assetml/childsplay/childsplay-images/stop.png
+share/gnome/assetml/childsplay/childsplay-images/tux.png
+share/gnome/assetml/childsplay/childsplay-sounds/po/Translation.raw
+share/gnome/assetml/childsplay/childsplay-sounds/po/nl.po
+share/gnome/assetml/childsplay/childsplay-sounds/Winner2.ogg
+share/gnome/assetml/childsplay/childsplay-sounds/boom.wav
+share/gnome/assetml/childsplay/childsplay-sounds/bummer.wav
+share/gnome/assetml/childsplay/childsplay-sounds/childsplay-sounds.assetml
+share/gnome/assetml/childsplay/childsplay-sounds/cows.ogg
+share/gnome/assetml/childsplay/childsplay-sounds/dealcard1.wav
+share/gnome/assetml/childsplay/childsplay-sounds/level_clear.wav
+share/gnome/assetml/childsplay/childsplay-sounds/music1.ogg
+share/gnome/assetml/childsplay/childsplay-sounds/rocket.wav
+share/gnome/assetml/childsplay/childsplay-sounds/wahoo.wav
+share/gnome/assetml/childsplay/memory-136x136/po/memory-136x136.pot
+share/gnome/assetml/childsplay/memory-136x136/po/nl.po
+share/gnome/assetml/childsplay/memory-136x136/bear.png
+share/gnome/assetml/childsplay/memory-136x136/boat.png
+share/gnome/assetml/childsplay/memory-136x136/bread.png
+share/gnome/assetml/childsplay/memory-136x136/car.png
+share/gnome/assetml/childsplay/memory-136x136/dog.png
+share/gnome/assetml/childsplay/memory-136x136/fish.png
+share/gnome/assetml/childsplay/memory-136x136/grapes.png
+share/gnome/assetml/childsplay/memory-136x136/lion.png
+share/gnome/assetml/childsplay/memory-136x136/memory-136x136.assetml
+share/gnome/assetml/childsplay/memory-136x136/monkey.png
+share/gnome/assetml/childsplay/memory-136x136/plane.png
+share/gnome/assetml/childsplay/memory-136x136/tree.png
+share/gnome/assetml/childsplay/memory-136x136/apple.png
+@dirrm childsplay/Data/icons
+@dirrm childsplay/Data
+@dirrm childsplay/lib/ConfigData
+@dirrm childsplay/lib/MemoryData
+@dirrm childsplay/lib
+@dirrm childsplay
+@dirrm share/doc/childsplay/po/fr
+@dirrm share/doc/childsplay/po/da
+@dirrm share/doc/childsplay/po/de
+@dirrm share/doc/childsplay/po/es
+@dirrm share/doc/childsplay/po/wordlist
+@dirrm share/doc/childsplay/po/nl
+@dirrm share/doc/childsplay/po/tr
+@dirrm share/doc/childsplay/po
+@dirrm share/doc/childsplay
+@dirrm share/gnome/assetml/childsplay/childsplay-images/po
+@dirrm share/gnome/assetml/childsplay/childsplay-images
+@dirrm share/gnome/assetml/childsplay/childsplay-sounds/po
+@dirrm share/gnome/assetml/childsplay/childsplay-sounds
+@dirrm share/gnome/assetml/childsplay/memory-136x136/po
+@dirrm share/gnome/assetml/childsplay/memory-136x136
+@dirrm share/gnome/assetml/childsplay