openbsd-ports/games/xbreaky/patches/patch-Makefile
2002-09-24 08:24:05 +00:00

53 lines
2.1 KiB
Plaintext

--- Makefile.orig Thu May 11 01:53:15 2000
+++ Makefile Tue Sep 24 02:14:30 2002
@@ -4,33 +4,34 @@
CC=g++
GC=gcc
-CFLAGS = -O2 -DPREFIX=\"${prefix}\"
-LDFLAGS = -L/usr/X11R6/lib -I/usr/X11/include/X11 -lX11 -lXpm -lm
+CFLAGS = -O2 -I${X11BASE}/include -DPREFIX=\"${prefix}\"
+LDFLAGS = -L${X11BASE}/lib
+LIBS = -lXpm -lX11 -lm
prefix = /usr/local
all: xbreaky xbreaky.snd
xbreaky:
$(CC) $(CFLAGS) -c xbreaky.cpp -o xbreaky.o
- $(CC) $(LDFLAGS) xbreaky.o -o xbreaky
+ $(CC) $(LDFLAGS) xbreaky.o -o xbreaky ${LIBS}
xbreaky.snd:
- $(GC) $(CFLAGS) -lm -o xbreaky.snd xbreaky.snd.c
+ $(GC) $(CFLAGS) -o xbreaky.snd xbreaky.snd.c -lm -lossaudio
install:
- for d in $(prefix)/bin $(prefix)/share/pixmaps $(prefix)/man/man6 \
- $(prefix)/share/games/xbreaky $(prefix)/doc/xbreaky ; do \
+ for d in $(prefix)/bin $(DESTDIR)$(prefix)/share/xbreaky/pixmaps $(prefix)/man/man6 \
+ $(DESTDIR)$(prefix)/share/xbreaky $(DESTDIR)$(prefix)/share/xbreaky/doc ; do \
test -d $$d || install -d -m755 $$d ; \
done
- install -m6755 -s xbreaky $(prefix)/bin
- install -m6755 -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
+ install -m555 -s xbreaky $(DESTDIR)$(prefix)/bin
+ install -m555 -s xbreaky.snd $(DESTDIR)$(prefix)/bin
+ install -m644 xbreaky.xpm $(DESTDIR)$(prefix)/share/xbreaky/pixmaps
+ install -m644 *.dat $(DESTDIR)$(prefix)/share/xbreaky
+ install -m644 *.raw $(DESTDIR)$(prefix)/share/xbreaky
+ install -m644 README $(DESTDIR)$(prefix)/share/xbreaky/doc
+ install -m644 COPYING $(DESTDIR)$(prefix)/share/xbreaky/doc
+ install -m644 AUTHORS $(DESTDIR)$(prefix)/share/xbreaky/doc
+ install -m644 xbreaky.6 $(DESTDIR)$(prefix)/man/man6
clean:
rm -f xbreaky a.out core xbreaky.snd *.o