openbsd-ports/games/xbreaky/patches/patch-Makefile
jakemsr a8100f792c use sndio instead of ossaudio
ok kevlo@ (MAINTAINER)
2010-01-07 09:38:20 +00:00

58 lines
2.1 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.5 2010/01/07 09:38:20 jakemsr Exp $
--- Makefile.orig Thu Sep 12 02:08:57 2002
+++ Makefile Sun Jan 3 01:14:53 2010
@@ -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 -lsndio -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