# HG changeset patch # User Bill Nagel # Date 1215807115 0 # Node ID 99a4ec0e2e77bd333215fcde6aa6cc65ec4049b4 # Parent 48fcd57238619846a34673fb93c57d4d82a6951b Add xpat2 diff -r 48fcd5723861 -r 99a4ec0e2e77 xpat2/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xpat2/receipt Fri Jul 11 20:11:55 2008 +0000 @@ -0,0 +1,33 @@ +# SliTaz package receipt + +PACKAGE="xpat2" +VERSION="1.07" +CATEGORY="games" +SHORT_DESC="Soltaire games for X." +MAINTAINER="wcnagel" +DEPENDS="xorg" +BUILD_DEPENDS="xorg-dev xorg-dev-proto" +TARBALL="$PACKAGE-$VERSION-src.tar.gz" +WGET_URL="http://www.ibiblio.org/pub/Linux/games/solitaires/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -p1 < ../stuff/xpat2.patch + cd src + cp ../../stuff/Makefile . + make + make DESTDIR=../_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/var/games/xpat2 + cp -a $_pkg/usr $fs + mkdir -p $fs/usr/share/X11/app-defaults/ + cp -a $src/../stuff/XPat.ad $fs/usr/share/X11/app-defaults/XPat + touch $fs/var/games/xpat2/xpat.log + chmod 666 $fs/var/games/xpat2/xpat.log +} diff -r 48fcd5723861 -r 99a4ec0e2e77 xpat2/stuff/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xpat2/stuff/Makefile Fri Jul 11 20:11:55 2008 +0000 @@ -0,0 +1,35 @@ +PREFIX = /usr +CFLAGS = -DuseXaw -DONLINE_HELP -DSOUND -DGFX2 +CFLAGS += -DLIBDIR=\"/usr/share/xpat2\" +CFLAGS += -DSCOREFILE=\"/var/games/xpat2/xpat.log\" +LDFLAGS = -lX11 -lXaw + +STDOBJS = rules.o commands.o messages.o hints.o layout.o \ + arrows.o loadsave.o util.o moves.o \ + r_Klondike.o r_Spider.o r_Delight.o r_MonteCarlo.o \ + r_Midnight.o r_Gypsy.o r_Seahaven.o r_FreeCell.o \ + r_Calculatio.o r_Michaels.o r_Royal.o r_Canfield.o \ + r_mdCanfield.o r_Bakers.o r_Oonsoo.o r_BlueMoon.o + +XOBJS = X-events.o X-layout.o X-expose.o X-cards.o \ + X-markcard.o X-arrows.o X-widget.o $(GFXOBJ) \ + Xaw-help.o Xaw-main.o X-sound_SUN.o X-gfx2.o + +OBJS = $(STDOBJS) $(XOBJS) + +MYPROG = xpat2 + +all: $(MYPROG) + +$(MYPROG): $(OBJS) + gcc -o $(MYPROG) $(LDFLAGS) $(OBJS) + +install: + install -d $(DESTDIR)$(PREFIX)/bin + install -m 755 xpat2 $(DESTDIR)$(PREFIX)/bin + install -d $(DESTDIR)$(PREFIX)/share/xpat2/default + install -m 644 ../lib/help* ../lib/hlp* ../lib/keys $(DESTDIR)$(PREFIX)/share/xpat2 + install -m 644 ../lib/default/* $(DESTDIR)$(PREFIX)/share/xpat2/default + +clean: + rm $(MYPROG) *.o diff -r 48fcd5723861 -r 99a4ec0e2e77 xpat2/stuff/XPat.ad --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xpat2/stuff/XPat.ad Fri Jul 11 20:11:55 2008 +0000 @@ -0,0 +1,58 @@ +! sample entries to use argv[0] as -rules argument: +spider*rules: Spider +gypsy*rules: Gypsy +klondike*rules: Klondike +seahaven*rules: Seahaven +freecell*rules: Free Cell +canfield*rules: Canfield + +XPat*font: 6x13 +XPat*beNiceToColormap: false +XPat*shapeStyle: Rectangle +XPat*topShadowContrast: 20 +XPat*bottomShadowContrast: 40 +XPat*Scrollbar*background: Gray70 +XPat*Background: grey85 +XPat*Foreground: black +XPat*resizeToPreferred: True +XPat*input: True +XPat*showGrip: off +XPat*shadowWidth: 2 +XPat*messages.justify: Left +XPat*upperbox.orientation: XtorientHorizontal +XPat*lowerbox.orientation: XtorientHorizontal +XPat*Tableau.keyboardFile: keys +XPat*Tableau.messageFile: messages +XPat*Tableau.background: DarkGreen +XPat*Tableau.arrowColor: Gold +XPat*Tableau.markColor: Black +XPat*Tableau.rules: Gypsy +XPat*Viewport.allowHoriz: True +XPat*Viewport.allowVert: True +XPat*Viewport.useBottom: True +XPat*Viewport.useRight: True +XPat*Label.shadowWidth: 0 +XPat*Label.BorderWidth: 2 +XPat*Dialog*Translations: #override \n\ +y: Ok()\n\ +n: Cancel()\n + +XPat*title: XPat +XPat.prompt.allowShellResize: True +XPat.prompt.saveUnder: True +XPat*Dialog*resizable: True +XPat*Hint.Translations: #override\n\ +:set()\n\ +:HintNotify()unset()\n + +XPat*Sound.state: True +XPat.help.width: 403 +XPat.help.height: 200 +XPat.help.title: XPat Help Window +XPat.help.saveUnder: True +XPat*Close Help.fromHoriz: Topic +XPat*helptext*string: Please choose a topic. +XPat*helptext*displayCaret: False +XPat*helptext*scrollHorizontal: whenNeeded +XPat*helptext*scrollVertical: whenNeeded +XPat*helptext*editType: read diff -r 48fcd5723861 -r 99a4ec0e2e77 xpat2/stuff/xpat2.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xpat2/stuff/xpat2.desktop Fri Jul 11 20:11:55 2008 +0000 @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=Solitaire Games (xpat2) +Exec=xpat2 +Icon=xpat2.png +Terminal=false +Categories=Application;Game; diff -r 48fcd5723861 -r 99a4ec0e2e77 xpat2/stuff/xpat2.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xpat2/stuff/xpat2.patch Fri Jul 11 20:11:55 2008 +0000 @@ -0,0 +1,10 @@ +--- xpat2-1.07-orig/src/loadsave.c Fri Jul 11 19:33:50 2008 ++++ xpat2-1.07/src/loadsave.c Fri Jul 11 19:35:36 2008 +@@ -31,6 +31,7 @@ + # define NAME_MAX 14 /* every UNIX should have at least this */ + #else + # include /* for pathconf() */ ++# include + # include /* for uname() */ + #endif + diff -r 48fcd5723861 -r 99a4ec0e2e77 xpat2/stuff/xpat2.png Binary file xpat2/stuff/xpat2.png has changed