openbsd-ports/games/xbreaky/patches/patch-Makefile
kevlo 41baf4147f - upgrade to version 0.0.5
- respect cc/cxx/cflags/cxxflags/prefix

Submitted by jolan@
2003-06-20 02:17:18 +00:00

58 lines
2.1 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.4 2003/06/20 02:17:25 kevlo Exp $
--- Makefile.orig Thu Sep 12 09:08:57 2002
+++ Makefile Fri Jun 20 09:59:50 2003
@@ -1,36 +1,32 @@
# Makefile for Xbreaky from {davebrul@hotmail.com}
-CC=g++
-GC=gcc
+#CC=g++
+#GC=gcc
-CFLAGS = -O2 -DPREFIX=\"${prefix}\"
-LDFLAGS = -L/usr/X11R6/lib -I/usr/X11/include/X11 -lX11 -lXpm -lm
-prefix = /usr/local
+CFLAGS+=-DPREFIX=\"${PREFIX}\" -I${X11BASE}/include
+CXXFLAGS+=-DPREFIX=\"${PREFIX}\" -I${X11BASE}/include
+LDFLAGS = -L${X11BASE}/lib -lX11 -lXpm -lm
+#prefix = /usr/local
all: xbreaky xbreaky.snd
xbreaky:
- $(CC) $(CFLAGS) -c xbreaky.cpp -o xbreaky.o
- $(CC) $(LDFLAGS) xbreaky.o -o xbreaky
+ $(CXX) $(CXXFLAGS) -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 -lossaudio -o xbreaky.snd xbreaky.snd.c
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 ; \
- 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
+ for d in ${PREFIX}/bin ${PREFIX}/share/pixmaps ${PREFIX}/man/man6 \
+ ${PREFIX}/share/xbreaky; do test -d $$d || install -d -m755 $$d ; done
+ install -m555 -s xbreaky ${PREFIX}/bin
+ install -m555 -s xbreaky.snd ${PREFIX}/bin
+ install -m644 xbreaky.xpm ${PREFIX}/share/pixmaps
+ install -m644 *.dat ${PREFIX}/share/xbreaky
+ install -m644 *.raw ${PREFIX}/share/xbreaky
+ install -m644 xbreaky.6 ${PREFIX}/man/man6
clean:
rm -f xbreaky a.out core xbreaky.snd *.o