diff options
author | vs <vs@FreeBSD.org> | 2005-04-28 16:51:19 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-04-28 16:51:19 +0800 |
commit | 83d93346e5802b53e7f2c9a340fec8f6f5c279d0 (patch) | |
tree | 5e66adb2189d43be267a0ae875003519f928cc5c /games/xworm | |
parent | 4807fe4a51006feef2eae2c79435474691650cda (diff) | |
download | freebsd-ports-gnome-83d93346e5802b53e7f2c9a340fec8f6f5c279d0.tar.gz freebsd-ports-gnome-83d93346e5802b53e7f2c9a340fec8f6f5c279d0.tar.zst freebsd-ports-gnome-83d93346e5802b53e7f2c9a340fec8f6f5c279d0.zip |
Use MAKE_ARGS & PLIST_foo
Diffstat (limited to 'games/xworm')
-rw-r--r-- | games/xworm/Makefile | 11 | ||||
-rw-r--r-- | games/xworm/files/patch-aa | 50 | ||||
-rw-r--r-- | games/xworm/pkg-plist | 5 |
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 |