aboutsummaryrefslogtreecommitdiff
path: root/games/xworm
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-04-28 08:51:19 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-04-28 08:51:19 +0000
commit4425d422ede8451f0f8ab049073a4de33894ce4e (patch)
tree86581dc70c8e6bbbe0574e5a1432f4683489f5af /games/xworm
parent4a3fd4c3af5b1fe90bbe47bbcb193bd0d1445a5f (diff)
downloadports-4425d422ede8451f0f8ab049073a4de33894ce4e.tar.gz
ports-4425d422ede8451f0f8ab049073a4de33894ce4e.zip
Use MAKE_ARGS & PLIST_foo
Notes
Notes: svn path=/head/; revision=134299
Diffstat (limited to 'games/xworm')
-rw-r--r--games/xworm/Makefile11
-rw-r--r--games/xworm/files/patch-aa50
-rw-r--r--games/xworm/pkg-plist5
3 files changed, 9 insertions, 57 deletions
diff --git a/games/xworm/Makefile b/games/xworm/Makefile
index edd173f05491..f7e262f28a07 100644
--- a/games/xworm/Makefile
+++ b/games/xworm/Makefile
@@ -16,12 +16,19 @@ COMMENT= Classic game with apples and hungry worm
WRKSRC= ${WRKDIR}/XWorm
USE_X_PREFIX= yes
-ALL_TARGET= freebsd
+ALL_TARGET= linux
+MAKE_ARGS= CC="${CC}" INCDIR="-I${X11BASE}/include" \
+ LINUXFLAGS='${CFLAGS} -DXWORMDIR=\"${DATADIR}\"' \
+ LINUXLINK="-L${X11BASE}/lib -lXt -lX11 -lm"
+
+DATA= font grid raw
+PLIST_FILES= bin/xworm ${DATA:S/^/%%DATADIR%%\/xworm./}
+PLIST_DIRS= %%DATADIR%%
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xworm ${PREFIX}/bin
@${MKDIR} ${PREFIX}/share/xworm
-.for file in font grid raw
+.for file in ${DATA}
${INSTALL_DATA} ${WRKSRC}/xworm.${file} ${PREFIX}/share/xworm
.endfor
diff --git a/games/xworm/files/patch-aa b/games/xworm/files/patch-aa
deleted file mode 100644
index 6e3dca373109..000000000000
--- a/games/xworm/files/patch-aa
+++ /dev/null
@@ -1,50 +0,0 @@
---- Makefile.orig Thu May 8 01:28:12 1997
-+++ Makefile Sat Aug 12 03:01:04 2000
-@@ -1,26 +1,31 @@
- # Makefile for XWorm.
-
- #CC = cc
--CC = gcc
-+CC ?= gcc
-
- HPFLAGS = -O -D_HPUX_SOURCE
- SUNFLAGS = -O
- LINUXFLAGS = -O
-+FREEBSDFLAGS= ${CFLAGS} -DXWORMDIR=\"${PREFIX}/share/xworm\"
-
--INCDIR = -I/usr/include/X11R5 -I/usr/include -I/usr/X11R6/include
-+INCDIR = -I${X11BASE}/include
-
- HPLINK = -L/usr/local/lib/X11R5 -lXt -lX11 -lm
- SUNLINK = -L/usr/local/lib/X11R5 -lXt -lX11 -lm -lsocket -lnsl -lICE -lSM
--LINUXLINK = -L/usr/X11R6/lib -lXt -lX11 -lm
-+LINUXLINK = -L${X11BASE}/lib -lXt -lX11 -lm
-+.if ${PORTOBJFORMAT} == "elf"
-+LINUXLINK+= -Wl,-rpath,${X11BASE}/lib
-+.endif
-
- all:
- @echo "Makefile for XWorm v1.02 - written by The Last Viking (C) 1995-97 Ekran Design."
- @echo " "
- @echo "type:"
- @echo " "
-- @echo " make hp [HP/UX and similar systems]"
-- @echo " make sun [Sun-Os/SUN systems]"
-- @echo " make linux [linux systems]"
-+ @echo " make hp [HP/UX and similar systems]"
-+ @echo " make sun [Sun-Os/SUN systems]"
-+ @echo " make linux [linux systems]"
-+ @echo " make freebsd [FreeBSD systems]"
- @echo " "
- @echo "xworm.font, xworm.grid and xworm.raw has to be in the same directory as xworm"
- @echo "please check the Makefile if you have problems compiling the program"
-@@ -33,6 +38,9 @@
-
- linux: xworm.c
- $(CC) $(LINUXFLAGS) $(INCDIR) xworm.c -o xworm $(LINUXLINK)
-+
-+freebsd: xworm.c
-+ $(CC) $(FREEBSDFLAGS) $(INCDIR) xworm.c -o xworm $(LINUXLINK)
-
- clean:
- rm -f core xworm
diff --git a/games/xworm/pkg-plist b/games/xworm/pkg-plist
deleted file mode 100644
index f65e0b8107f4..000000000000
--- a/games/xworm/pkg-plist
+++ /dev/null
@@ -1,5 +0,0 @@
-bin/xworm
-share/xworm/xworm.font
-share/xworm/xworm.grid
-share/xworm/xworm.raw
-@dirrm share/xworm