pkgsrc/misc/brs/patches/patch-aa
2008-06-20 01:09:05 +00:00

71 lines
2.5 KiB
Text

$NetBSD: patch-aa,v 1.3 2008/06/20 01:09:25 joerg Exp $
--- Makefile.orig 1994-12-15 02:53:00.000000000 +0100
+++ Makefile 2004-08-16 11:08:11.000000000 +0200
@@ -46,16 +46,16 @@
NINSTPKG = $(PROGRAM).pkg
# where to install this stuff
-DEST = /usr
+DEST = ${DESTDIR}$(PREFIX)
#DEST = $(HOME)/local
DESTBIN = $(DEST)/bin
-DESTLIB = $(DEST)/lib
+DESTLIB = $(DEST)/libdata/brs
DESTMAN = $(DEST)/man
DESTMAN1 = $(DESTMAN)/man1
# I use environment variables for these...
#CFLAGS = -g
-CFLAGS = -O2 -fwritable-strings -DDESTLIB=\"$(DESTLIB)\"
+CFLAGS += -fwritable-strings -DDESTLIB=\"$(DESTLIB)\"
# release directories. Nobody should care about this but me
FTPHOME = /mnt/ftp
@@ -66,7 +66,7 @@
# This is only used by the author when making a new release ftp-able.
INSTALL = .do cp
-LD = cc
+LD = $(CC)
MAKEFILE = Makefile
@@ -398,31 +398,12 @@
# The "install" target could be of general use. That's why there are
# no explicit dependencies here. They just confuse things...
install:
- @if [ ! -r $(DEST) ]; then mkdir $(DEST); fi
- @echo Installing $(PROGRAM) in $(DESTBIN)
- @-strip $(PROGRAM)
- @if [ ! -r $(DESTBIN) ]; then mkdir $(DESTBIN); fi
- @if [ $(DESTBIN) != . ]; then \
- ((cd $(DESTBIN);rm -f $(PROGRAM)); \
- cp $(PROGRAM) $(DESTBIN)); \
- chown bin $(DESTBIN)/$(PROGRAM); \
- chgrp bin $(DESTBIN)/$(PROGRAM); \
- chmod 755 $(DESTBIN)/$(PROGRAM); fi
- @echo Installing $(DATA) and $(DATA).conc in $(DESTLIB)
- @if [ ! -r $(DESTLIB) ]; then mkdir $(DESTLIB); fi
- @if [ $(DESTLIB) != . ]; then \
- cp $(DATA) $(DATA).conc $(DESTLIB); \
- chown bin $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; \
- chgrp bin $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; \
- chmod 644 $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; fi
- @if [ ! -r $(DESTMAN) ]; then mkdir $(DESTMAN); fi
- @echo Installing $(MAN) in $(DESTMAN1)
- @if [ ! -r $(DESTMAN1) ]; then mkdir $(DESTMAN1); fi
- @if [ $(DESTMAN1) != . ]; then \
- cp $(MAN) $(DESTMAN1)/$(MAN); \
- chown bin $(DESTMAN1)/$(MAN); \
- chgrp bin $(DESTMAN1)/$(MAN); \
- chmod 644 $(DESTMAN1)/$(MAN); fi
+ $(BSD_INSTALL_PROGRAM_DIR) $(DESTBIN)
+ $(BSD_INSTALL_PROGRAM) $(PROGRAM) $(DESTBIN)/
+ $(BSD_INSTALL_DATA_DIR) $(DESTLIB)
+ $(BSD_INSTALL_DATA) $(DATA) $(DATA).conc $(DESTLIB)/
+ $(BSD_INSTALL_MAN_DIR) $(DESTMAN1)
+ $(BSD_INSTALL_MAN) $(MAN) $(DESTMAN1)/
uninstall:; @echo Un-installing $(PROGRAM), $(DATA) and $(MAN)
rm -f $(DESTBIN)/$(PROGRAM)