aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-11-23 10:28:12 +0800
committerijliao <ijliao@FreeBSD.org>2001-11-23 10:28:12 +0800
commitaa4c0f4e68c98006ed294e19c66f081ef7a24745 (patch)
tree75165a9d6920a81ab34483baa3390ac269260716
parente6c44ce695260d93f3bd30402a1a6364c5371910 (diff)
downloadfreebsd-ports-gnome-aa4c0f4e68c98006ed294e19c66f081ef7a24745.tar.gz
freebsd-ports-gnome-aa4c0f4e68c98006ed294e19c66f081ef7a24745.tar.zst
freebsd-ports-gnome-aa4c0f4e68c98006ed294e19c66f081ef7a24745.zip
add 54321
54321 is five games in four-, three-, or two-dimensions for one player PR: 32197 Submitted by: Leland Wang <llwang@infor.org>
-rw-r--r--games/54321/Makefile41
-rw-r--r--games/54321/distinfo1
-rw-r--r--games/54321/files/54321.sh3
-rw-r--r--games/54321/files/variables.GNU23
-rw-r--r--games/54321/pkg-comment1
-rw-r--r--games/54321/pkg-descr11
-rw-r--r--games/54321/pkg-plist121
-rw-r--r--games/Makefile1
8 files changed, 202 insertions, 0 deletions
diff --git a/games/54321/Makefile b/games/54321/Makefile
new file mode 100644
index 000000000000..b30401774879
--- /dev/null
+++ b/games/54321/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: 54321
+# Date created: 22 November 2001
+# Whom: Leland Wang <llwang@infor.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= 54321
+PORTVERSION= 1.0.2001.11.16
+CATEGORIES= games
+MASTER_SITES= http://www.nklein.com/products/54321/${PORTVERSION}/
+DISTNAME= ${PORTNAME}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= llwang@infor.org
+
+LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl12 \
+ SDL_image.10:${PORTSDIR}/graphics/sdl_image \
+ png.5:${PORTSDIR}/graphics/png
+
+USE_GMAKE= yes
+MAKEFILE= GNUmakefile
+ALL_TARGET= all size
+
+post-extract:
+ @${MKDIR} ${WRKSRC}/archs/FreeBSD
+ @${CP} ${FILESDIR}/variables.GNU ${WRKSRC}/archs/FreeBSD
+
+post-build:
+ @${SED} -e "s;@PREFIX@;${PREFIX};g" \
+ ${FILESDIR}/54321.sh > ${WRKSRC}/54321
+
+do-install:
+ @${MKDIR} ${PREFIX}/share/54321/bin/FreeBSD
+ @${MKDIR} ${PREFIX}/share/54321/data
+ @${CHMOD} -R 755 ${PREFIX}/share/54321
+ @${INSTALL_PROGRAM} ${WRKSRC}/Release/bin/FreeBSD/54321 ${PREFIX}/share/54321/bin/FreeBSD
+ @${INSTALL_DATA} ${WRKSRC}/Release/data/* ${PREFIX}/share/54321/data
+ @${INSTALL_SCRIPT} ${WRKSRC}/54321 ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/games/54321/distinfo b/games/54321/distinfo
new file mode 100644
index 000000000000..22a85218556e
--- /dev/null
+++ b/games/54321/distinfo
@@ -0,0 +1 @@
+MD5 (54321.tgz) = 20b2ad52ef45742c1a65911b225b6ddc
diff --git a/games/54321/files/54321.sh b/games/54321/files/54321.sh
new file mode 100644
index 000000000000..84240b6434c2
--- /dev/null
+++ b/games/54321/files/54321.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd @PREFIX@/share/54321/bin/FreeBSD
+exec ./54321 $*
diff --git a/games/54321/files/variables.GNU b/games/54321/files/variables.GNU
new file mode 100644
index 000000000000..e5867629c037
--- /dev/null
+++ b/games/54321/files/variables.GNU
@@ -0,0 +1,23 @@
+############################################################
+CXX := c++
+STRIP := strip
+############################################################
+MKDIR_CMD = test -d $(@D) || mkdir -p $(@D)
+############################################################
+
+SDL := /usr/local
+SDL_IMAGE := /usr/local
+
+CPPFLAGS += -I${SDL}/include/SDL11 -I${SDL_IMAGE}/include/SDL11
+LDFLAGS += \
+ -L${SDL_IMAGE}/lib -Wl,-rpath -Wl,${SDL_IMAGE}/lib \
+ -L${SDL}/lib -Wl,-rpath -Wl,${SDL}/lib \
+ -lSDL_image -lSDL-1.1 -lSDLmain-1.1 -pthread -lpng
+
+prog: Release/54321-$(ARCH)
+
+Release/54321-$(ARCH):
+ -@$(MKDIR_CMD)
+ echo '#!/bin/sh' > $@
+ echo "cd ./bin/$(ARCH) && exec ./54321 \$$*" >> $@
+ chmod 755 $@
diff --git a/games/54321/pkg-comment b/games/54321/pkg-comment
new file mode 100644
index 000000000000..bbd8ce626dec
--- /dev/null
+++ b/games/54321/pkg-comment
@@ -0,0 +1 @@
+54321 is five games in four-, three-, or two-dimensions for one player
diff --git a/games/54321/pkg-descr b/games/54321/pkg-descr
new file mode 100644
index 000000000000..cd0d8ec653ab
--- /dev/null
+++ b/games/54321/pkg-descr
@@ -0,0 +1,11 @@
+54321 is five games in four-, three-, or two-dimensions for one player.
+54321 takes five classic two-dimensional puzzle games and extends them
+into three and four dimensions. For more information, see the help within
+the game.
+
+54321 was created for the 1mb SDL Game Programming Contest sponsored by:
+Linux Journal (http://www.linuxjournal.com/),
+Loki Software (http://www.lokigames.com/),
+and No Starch Press (http://www.nostarch.com/).
+
+WWW: http://www.nklein.com/products/54321/
diff --git a/games/54321/pkg-plist b/games/54321/pkg-plist
new file mode 100644
index 000000000000..b338ae638be5
--- /dev/null
+++ b/games/54321/pkg-plist
@@ -0,0 +1,121 @@
+bin/54321
+share/54321/bin/FreeBSD/54321
+share/54321/data/bs1.hlp
+share/54321/data/bs2.hlp
+share/54321/data/bs3.hlp
+share/54321/data/bs4.hlp
+share/54321/data/cr1.hlp
+share/54321/data/cr2.hlp
+share/54321/data/cr3.hlp
+share/54321/data/cr4.hlp
+share/54321/data/ff1.hlp
+share/54321/data/ff2.hlp
+share/54321/data/ff3.hlp
+share/54321/data/ff4.hlp
+share/54321/data/mr1.hlp
+share/54321/data/mr2.hlp
+share/54321/data/mr3.hlp
+share/54321/data/nd1.hlp
+share/54321/data/nd2.hlp
+share/54321/data/nd3.hlp
+share/54321/data/nd4.hlp
+share/54321/data/nd5.hlp
+share/54321/data/nd6.hlp
+share/54321/data/nd7.hlp
+share/54321/data/nd8.hlp
+share/54321/data/pj1.hlp
+share/54321/data/pj2.hlp
+share/54321/data/pj3.hlp
+share/54321/data/pj4.hlp
+share/54321/data/top.hlp
+share/54321/data/ts1.hlp
+share/54321/data/ts2.hlp
+share/54321/data/ts3.hlp
+share/54321/data/ts4.hlp
+share/54321/data/wn1.hlp
+share/54321/data/wn10.hlp
+share/54321/data/wn2.hlp
+share/54321/data/wn3.hlp
+share/54321/data/wn4.hlp
+share/54321/data/wn5.hlp
+share/54321/data/wn6.hlp
+share/54321/data/wn7.hlp
+share/54321/data/wn8.hlp
+share/54321/data/wn9.hlp
+share/54321/data/b2-0n.peg
+share/54321/data/b2-0w.peg
+share/54321/data/b2-1n.peg
+share/54321/data/b2-1w.peg
+share/54321/data/b2-2n.peg
+share/54321/data/b2-2w.peg
+share/54321/data/b3-0n.peg
+share/54321/data/b3-0w.peg
+share/54321/data/b3-1n.peg
+share/54321/data/b3-1w.peg
+share/54321/data/b3-2n.peg
+share/54321/data/b3-2w.peg
+share/54321/data/b4-0n.peg
+share/54321/data/b4-0w.peg
+share/54321/data/b4-1n.peg
+share/54321/data/me.png
+share/54321/data/b4-1w.peg
+share/54321/data/b4-2n.peg
+share/54321/data/b4-2w.peg
+share/54321/data/_bvfonts.png
+share/54321/data/_nklein.png
+share/54321/data/_png.png
+share/54321/data/_sdl.png
+share/54321/data/_umlaut.png
+share/54321/data/actOff.png
+share/54321/data/actOn.png
+share/54321/data/back.png
+share/54321/data/backdrop.png
+share/54321/data/blogo.png
+share/54321/data/bomb.png
+share/54321/data/borders.png
+share/54321/data/centers.png
+share/54321/data/continue.png
+share/54321/data/covered.png
+share/54321/data/defeat.png
+share/54321/data/dimOff.png
+share/54321/data/dimOn.png
+share/54321/data/empty.png
+share/54321/data/flagged.png
+share/54321/data/flogo.png
+share/54321/data/font.png
+share/54321/data/goal.png
+share/54321/data/help.png
+share/54321/data/helpOff.png
+share/54321/data/helpOn.png
+share/54321/data/hole.png
+share/54321/data/marked.png
+share/54321/data/mlogo.png
+share/54321/data/moverlay.png
+share/54321/data/off.png
+share/54321/data/on.png
+share/54321/data/overlay.png
+share/54321/data/panel.png
+share/54321/data/peg.png
+share/54321/data/plogo.png
+share/54321/data/pointer.png
+share/54321/data/selected.png
+share/54321/data/setOff.png
+share/54321/data/setOn.png
+share/54321/data/threed.png
+share/54321/data/tlogo.png
+share/54321/data/uncovered.png
+share/54321/data/unmarked.png
+share/54321/data/victory.png
+share/54321/data/wall0.png
+share/54321/data/wall1.png
+share/54321/data/wall2.png
+share/54321/data/wall3.png
+share/54321/data/wall4.png
+share/54321/data/wall5.png
+share/54321/data/wall6.png
+share/54321/data/wall7.png
+share/54321/data/z2.png
+@dirrm share/54321/data
+@dirrm share/54321/bin/FreeBSD
+@dirrm share/54321/bin
+@dirrm share/54321
diff --git a/games/Makefile b/games/Makefile
index 1304bd26f9a2..13f1ab962a4e 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -5,6 +5,7 @@
SUBDIR += 3dc
SUBDIR += 3dpong
SUBDIR += 44bsd-hunt
+ SUBDIR += 54321
SUBDIR += CaribbeanStud
SUBDIR += HeroesOfMightAndMagic
SUBDIR += KnightCap