pkgsrc/games/xbreaky/patches/patch-aa
wiz e04dd1481a Update to 0.0.5, converted to buildlink2.
Changes: security fix, but we didn't suid the binary anyway.
2002-09-12 13:30:28 +00:00

60 lines
2.2 KiB
Text

$NetBSD: patch-aa,v 1.3 2002/09/12 13:30:29 wiz Exp $
--- Makefile.orig Thu Sep 12 11:08:57 2002
+++ Makefile
@@ -1,36 +1,36 @@
# Makefile for Xbreaky from {davebrul@hotmail.com}
-CC=g++
-GC=gcc
+#CXX=g++
+#CC=gcc
-CFLAGS = -O2 -DPREFIX=\"${prefix}\"
-LDFLAGS = -L/usr/X11R6/lib -I/usr/X11/include/X11 -lX11 -lXpm -lm
-prefix = /usr/local
+CFLAGS += -DPREFIX=\"${prefix}\"
+LDFLAGS += -lX11 -lXpm -lm
+prefix ?= ${PREFIX}
all: xbreaky xbreaky.snd
xbreaky:
- $(CC) $(CFLAGS) -c xbreaky.cpp -o xbreaky.o
- $(CC) $(LDFLAGS) xbreaky.o -o xbreaky
+ $(CXX) $(CFLAGS) -c xbreaky.cpp -o xbreaky.o
+ $(CXX) $(LDFLAGS) xbreaky.o -o xbreaky
xbreaky.snd:
- $(GC) $(CFLAGS) -lm -o xbreaky.snd xbreaky.snd.c
+ $(CC) $(CFLAGS) -lm -o xbreaky.snd xbreaky.snd.c ${LIBOSSAUDIO}
install:
for d in $(prefix)/bin $(prefix)/share/pixmaps $(prefix)/man/man6 \
- $(prefix)/share/games/xbreaky $(prefix)/doc/xbreaky ; do \
- test -d $$d || install -d -m755 $$d ; \
+ $(prefix)/share/games/xbreaky $(prefix)/share/doc/xbreaky ; do \
+ test -d $$d || ${BSD_INSTALL_DATA_DIR} $$d ; \
done
- install -m755 -s xbreaky $(prefix)/bin
- install -m755 -s xbreaky.snd $(prefix)/bin
- install -m644 xbreaky.xpm $(prefix)/share/pixmaps
- install -m644 *.dat $(prefix)/share/games/xbreaky
- install -m644 *.raw $(prefix)/share/games/xbreaky
- install -m644 README $(prefix)/doc/xbreaky
- install -m644 COPYING $(prefix)/doc/xbreaky
- install -m644 AUTHORS $(prefix)/doc/xbreaky
- install -m644 xbreaky.6 $(prefix)/man/man6
+ ${BSD_INSTALL_PROGRAM} xbreaky $(prefix)/bin
+ ${BSD_INSTALL_PROGRAM} xbreaky.snd $(prefix)/bin
+ ${BSD_INSTALL_DATA} xbreaky.xpm $(prefix)/share/pixmaps
+ ${BSD_INSTALL_DATA} *.dat $(prefix)/share/games/xbreaky
+ ${BSD_INSTALL_DATA} *.raw $(prefix)/share/games/xbreaky
+ ${BSD_INSTALL_DATA} README $(prefix)/share/doc/xbreaky
+ ${BSD_INSTALL_DATA} COPYING $(prefix)/share/doc/xbreaky
+ ${BSD_INSTALL_DATA} AUTHORS $(prefix)/share/doc/xbreaky
+ ${BSD_INSTALL_DATA} xbreaky.6 $(prefix)/man/man6
clean:
rm -f xbreaky a.out core xbreaky.snd *.o