summaryrefslogtreecommitdiff
path: root/games/tuxpuck/files/patch-Makefile
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2002-10-31 00:29:09 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2002-10-31 00:29:09 +0000
commit79824bc9ab8687f26add5f8b9291e69eb1b2bd3b (patch)
treedb72e16c0683b449fe0df4e71bcdc9c85185af3d /games/tuxpuck/files/patch-Makefile
parentUpdate to 4231 (diff)
Update tuxpuck 0.7.116 -> 0.8.1 and make build respect ${CC}
PR: 44760 Submitted by: Jan Stocker <Jan.Stocker@t-online.de> (maintainer) Approved by: pat
Notes
Notes: svn path=/head/; revision=69181
Diffstat (limited to 'games/tuxpuck/files/patch-Makefile')
-rw-r--r--games/tuxpuck/files/patch-Makefile43
1 files changed, 15 insertions, 28 deletions
diff --git a/games/tuxpuck/files/patch-Makefile b/games/tuxpuck/files/patch-Makefile
index 816dbfed65a0..ee98b8680483 100644
--- a/games/tuxpuck/files/patch-Makefile
+++ b/games/tuxpuck/files/patch-Makefile
@@ -1,36 +1,23 @@
---- Makefile.orig Thu Apr 25 23:14:27 2002
-+++ Makefile Thu Apr 25 23:25:55 2002
-@@ -1,7 +1,7 @@
+--- Makefile.orig Tue Oct 15 13:48:06 2002
++++ Makefile Wed Oct 30 13:01:37 2002
+@@ -1,8 +1,8 @@
# Makefile for TuxPuck , Copyright Jacob Kroon 2001-2002
- VERSION = 0.7.109
- CC = gcc
+ VERSION = 0.8.1
+-CC = gcc
-CFLAGS += `sdl-config --cflags` -D_VERSION=\"$(VERSION)\" \
+- -g -Wall
++CC ?= gcc
+CFLAGS += `$(SDL_CONFIG) --cflags` -D_VERSION=\"$(VERSION)\" \
- -g -Wall -Werror
- CSOURCES = tuxpuck.c video.c audio.c sprite.c font.c timer.c board.c \
- entity.c glass.c scoreboard.c player.c zoom.c png.c jpg.c \
-@@ -11,6 +11,7 @@
-
- #############################################################
-
-+
- OBJS=$(CSOURCES:.c=.o)
-
- %.o : %.c
-@@ -18,7 +19,7 @@
++ -Wall
+ CSOURCES = tuxpuck.c video.c audio.c menu.c sprite.c font.c timer.c \
+ board.c entity.c glass.c scoreboard.c player.c zoom.c png.c \
+ jpg.c intro.c tux.c arcana.c
+@@ -18,7 +18,7 @@
tuxpuck : $(OBJS)
cd data; $(MAKE)
-- $(CC) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng -ljpeg \
-+ $(CC) $(OBJS) data/libdata.a `$(SDL_CONFIG) --libs` -lm -lpng -ljpeg \
- -lz -lvorbisfile -lvorbis -o tuxpuck
+- $(CC) $(CFLAGS) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng \
++ $(CC) $(CFLAGS) $(OBJS) data/libdata.a `$(SDL_CONFIG) --libs` -lm -lpng \
+ -ljpeg -lz -lvorbisfile -lvorbis -logg -o tuxpuck
clean :
-@@ -55,3 +56,7 @@
- install -d $(DESTDIR)/usr/man/man6
- install -m755 tuxpuck $(DESTDIR)/usr/bin
- install -m644 man/tuxpuck.6.gz $(DESTDIR)/usr/man/man6
-+
-+all : tuxpuck
-+
-+