Subject: pkg/5940: xbomber pkg doesnt build
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 08/09/1998 04:20:30
>Number:         5940
>Category:       pkg
>Synopsis:       xbomber pkg doesnt build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug  9 04:35:00 1998
>Last-Modified:
>Originator:     Tim Rightnour
>Organization:
Tim Rightnour    -  root@garbled.net
http://www.zynetwc.com/~garbled/garbled.html
>Release:        1.3<NetBSD-current source date>
>Environment:
	
System: NetBSD polaris 1.3 NetBSD 1.3 (POLARIS) #0: Thu Mar 26 13:17:18 MST 1998 root@polaris:/usr/src/sys/arch/i386/compile/POLARIS i386


>Description:
Hey! This one *isn't* my own fault.. 
MAKEFILE=makefile got set.. but the internal chmod 664 "Makefile" didn't get
changed back to "makefile"  So it blows up..

	
>How-To-Repeat:
Say "woo-hoo! It's not my own fault this time!"
	
>Fix:
$NetBSD: patch-aa,v 1.2 1998/08/07 10:40:44 agc Exp $

--- makefile.orig	Thu Jun 18 20:28:34 1998
+++ makefile	Thu Jul 23 07:31:00 1998
@@ -13,5 +13,12 @@
 
+INSTALLROOT= $(PREFIX)
+INSTALLBIN= $(INSTALLROOT)/bin
+SOUNDS= $(INSTALLROOT)/share/xbomber/sounds
+PIXMAPS= $(INSTALLROOT)/share/xbomber/pixmap
+LEVELS= $(INSTALLROOT)/share/xbomber/level
+BITMAPS= $(INSTALLROOT)/share/xbomber/bitmaps
+
 CC=gcc
 MATHLIB=-lm
-CFLAGS=-I/usr/X11/include
+CFLAGS=-I$(PREFIX)/include -DSOUNDS=\"$(SOUNDS)\" -DPIXMAPS=\"$(PIXMAPS)\" -DLEVELS=\"$(LEVELS)\" -DBITMAPS=\"$(BITMAPS)\"
 
@@ -21,3 +28,3 @@
 # adjust according to target
-XLIB=-L/usr/X11/lib -lX11
+XLIB=-L$(PREFIX)/lib -lX11
 
@@ -42,5 +49,19 @@
 	chmod 755 sounds bitmaps pixmaps sounds/numbers levels
-	chmod 644 *.c *.h makefile sounds/*.au *.txt \
+	chmod 644 *.c *.h makefile sounds/*.au *.txt \
 		bitmaps/*.xbm pixmaps/*.ppm \
 		sounds/numbers/*.au levels/*.dat
+
+install: xbomber
+	install -s -c -o bin -g bin xbomber $(INSTALLBIN)/xbomber
+	mkdir -p $(LEVELS)
+	mkdir -p $(SOUNDS)/numbers
+	mkdir -p $(PIXMAPS)/jungle
+	mkdir -p $(BITMAPS)
+	install -o bin -g bin -m 0644 pixmaps/* $(PIXMAPS)
+	install -o bin -g bin -m 0644 bitmaps/* $(BITMAPS)
+	install -o bin -g bin -m 0644 jungle/* $(PIXMAPS)/jungle
+	install -o bin -g bin -m 0644 sounds/numbers/* $(SOUNDS)/numbers
+	@rm -rf sounds/numbers
+	install -o bin -g bin -m 0644 sounds/* $(SOUNDS)
+	install -o bin -g bin -m 0644 levels/* $(LEVELS)
 

	
>Audit-Trail:
>Unformatted: