wok-6.x rev 1042
Add xpat2
author | Bill Nagel <wcnagel@xxxxxxxx> |
---|---|
date | Fri Jul 11 20:11:55 2008 +0000 (2008-07-11) |
parents | 48fcd5723861 |
children | bfa41136b77a |
files | xpat2/receipt xpat2/stuff/Makefile xpat2/stuff/XPat.ad xpat2/stuff/xpat2.desktop xpat2/stuff/xpat2.patch xpat2/stuff/xpat2.png |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpat2/receipt Fri Jul 11 20:11:55 2008 +0000 1.3 @@ -0,0 +1,33 @@ 1.4 +# SliTaz package receipt 1.5 + 1.6 +PACKAGE="xpat2" 1.7 +VERSION="1.07" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="Soltaire games for X." 1.10 +MAINTAINER="wcnagel" 1.11 +DEPENDS="xorg" 1.12 +BUILD_DEPENDS="xorg-dev xorg-dev-proto" 1.13 +TARBALL="$PACKAGE-$VERSION-src.tar.gz" 1.14 +WGET_URL="http://www.ibiblio.org/pub/Linux/games/solitaires/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $src 1.20 + patch -p1 < ../stuff/xpat2.patch 1.21 + cd src 1.22 + cp ../../stuff/Makefile . 1.23 + make 1.24 + make DESTDIR=../_pkg install 1.25 +} 1.26 + 1.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 +genpkg_rules() 1.29 +{ 1.30 + mkdir -p $fs/var/games/xpat2 1.31 + cp -a $_pkg/usr $fs 1.32 + mkdir -p $fs/usr/share/X11/app-defaults/ 1.33 + cp -a $src/../stuff/XPat.ad $fs/usr/share/X11/app-defaults/XPat 1.34 + touch $fs/var/games/xpat2/xpat.log 1.35 + chmod 666 $fs/var/games/xpat2/xpat.log 1.36 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/xpat2/stuff/Makefile Fri Jul 11 20:11:55 2008 +0000 2.3 @@ -0,0 +1,35 @@ 2.4 +PREFIX = /usr 2.5 +CFLAGS = -DuseXaw -DONLINE_HELP -DSOUND -DGFX2 2.6 +CFLAGS += -DLIBDIR=\"/usr/share/xpat2\" 2.7 +CFLAGS += -DSCOREFILE=\"/var/games/xpat2/xpat.log\" 2.8 +LDFLAGS = -lX11 -lXaw 2.9 + 2.10 +STDOBJS = rules.o commands.o messages.o hints.o layout.o \ 2.11 + arrows.o loadsave.o util.o moves.o \ 2.12 + r_Klondike.o r_Spider.o r_Delight.o r_MonteCarlo.o \ 2.13 + r_Midnight.o r_Gypsy.o r_Seahaven.o r_FreeCell.o \ 2.14 + r_Calculatio.o r_Michaels.o r_Royal.o r_Canfield.o \ 2.15 + r_mdCanfield.o r_Bakers.o r_Oonsoo.o r_BlueMoon.o 2.16 + 2.17 +XOBJS = X-events.o X-layout.o X-expose.o X-cards.o \ 2.18 + X-markcard.o X-arrows.o X-widget.o $(GFXOBJ) \ 2.19 + Xaw-help.o Xaw-main.o X-sound_SUN.o X-gfx2.o 2.20 + 2.21 +OBJS = $(STDOBJS) $(XOBJS) 2.22 + 2.23 +MYPROG = xpat2 2.24 + 2.25 +all: $(MYPROG) 2.26 + 2.27 +$(MYPROG): $(OBJS) 2.28 + gcc -o $(MYPROG) $(LDFLAGS) $(OBJS) 2.29 + 2.30 +install: 2.31 + install -d $(DESTDIR)$(PREFIX)/bin 2.32 + install -m 755 xpat2 $(DESTDIR)$(PREFIX)/bin 2.33 + install -d $(DESTDIR)$(PREFIX)/share/xpat2/default 2.34 + install -m 644 ../lib/help* ../lib/hlp* ../lib/keys $(DESTDIR)$(PREFIX)/share/xpat2 2.35 + install -m 644 ../lib/default/* $(DESTDIR)$(PREFIX)/share/xpat2/default 2.36 + 2.37 +clean: 2.38 + rm $(MYPROG) *.o
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/xpat2/stuff/XPat.ad Fri Jul 11 20:11:55 2008 +0000 3.3 @@ -0,0 +1,58 @@ 3.4 +! sample entries to use argv[0] as -rules argument: 3.5 +spider*rules: Spider 3.6 +gypsy*rules: Gypsy 3.7 +klondike*rules: Klondike 3.8 +seahaven*rules: Seahaven 3.9 +freecell*rules: Free Cell 3.10 +canfield*rules: Canfield 3.11 + 3.12 +XPat*font: 6x13 3.13 +XPat*beNiceToColormap: false 3.14 +XPat*shapeStyle: Rectangle 3.15 +XPat*topShadowContrast: 20 3.16 +XPat*bottomShadowContrast: 40 3.17 +XPat*Scrollbar*background: Gray70 3.18 +XPat*Background: grey85 3.19 +XPat*Foreground: black 3.20 +XPat*resizeToPreferred: True 3.21 +XPat*input: True 3.22 +XPat*showGrip: off 3.23 +XPat*shadowWidth: 2 3.24 +XPat*messages.justify: Left 3.25 +XPat*upperbox.orientation: XtorientHorizontal 3.26 +XPat*lowerbox.orientation: XtorientHorizontal 3.27 +XPat*Tableau.keyboardFile: keys 3.28 +XPat*Tableau.messageFile: messages 3.29 +XPat*Tableau.background: DarkGreen 3.30 +XPat*Tableau.arrowColor: Gold 3.31 +XPat*Tableau.markColor: Black 3.32 +XPat*Tableau.rules: Gypsy 3.33 +XPat*Viewport.allowHoriz: True 3.34 +XPat*Viewport.allowVert: True 3.35 +XPat*Viewport.useBottom: True 3.36 +XPat*Viewport.useRight: True 3.37 +XPat*Label.shadowWidth: 0 3.38 +XPat*Label.BorderWidth: 2 3.39 +XPat*Dialog*Translations: #override \n\ 3.40 +<Key>y: Ok()\n\ 3.41 +<Key>n: Cancel()\n 3.42 + 3.43 +XPat*title: XPat 3.44 +XPat.prompt.allowShellResize: True 3.45 +XPat.prompt.saveUnder: True 3.46 +XPat*Dialog*resizable: True 3.47 +XPat*Hint.Translations: #override\n\ 3.48 +<BtnDown>:set()\n\ 3.49 +<BtnUp>:HintNotify()unset()\n 3.50 + 3.51 +XPat*Sound.state: True 3.52 +XPat.help.width: 403 3.53 +XPat.help.height: 200 3.54 +XPat.help.title: XPat Help Window 3.55 +XPat.help.saveUnder: True 3.56 +XPat*Close Help.fromHoriz: Topic 3.57 +XPat*helptext*string: Please choose a topic. 3.58 +XPat*helptext*displayCaret: False 3.59 +XPat*helptext*scrollHorizontal: whenNeeded 3.60 +XPat*helptext*scrollVertical: whenNeeded 3.61 +XPat*helptext*editType: read
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/xpat2/stuff/xpat2.desktop Fri Jul 11 20:11:55 2008 +0000 4.3 @@ -0,0 +1,8 @@ 4.4 +[Desktop Entry] 4.5 +Type=Application 4.6 +Encoding=UTF-8 4.7 +Name=Solitaire Games (xpat2) 4.8 +Exec=xpat2 4.9 +Icon=xpat2.png 4.10 +Terminal=false 4.11 +Categories=Application;Game;
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/xpat2/stuff/xpat2.patch Fri Jul 11 20:11:55 2008 +0000 5.3 @@ -0,0 +1,10 @@ 5.4 +--- xpat2-1.07-orig/src/loadsave.c Fri Jul 11 19:33:50 2008 5.5 ++++ xpat2-1.07/src/loadsave.c Fri Jul 11 19:35:36 2008 5.6 +@@ -31,6 +31,7 @@ 5.7 + # define NAME_MAX 14 /* every UNIX should have at least this */ 5.8 + #else 5.9 + # include <unistd.h> /* for pathconf() */ 5.10 ++# include <sys/types.h> 5.11 + # include <sys/utsname.h> /* for uname() */ 5.12 + #endif 5.13 +
6.1 Binary file xpat2/stuff/xpat2.png has changed