openbsd-ports/biology/nutdb/patches/patch-Makefile
jasper 5a7554c2b7 update nutdb to 12.0
(no response from maintainer)
2006-11-30 17:38:27 +00:00

26 lines
805 B
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2006/11/30 17:38:27 jasper Exp $
--- Makefile.orig Fri Sep 1 01:45:53 2006
+++ Makefile Sun Nov 26 19:54:27 2006
@@ -1,9 +1,9 @@
objects := $(patsubst %.c,%.o,$(wildcard *.c))
-CFLAGS= -Os -s -Wall -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr/local/lib/nut\" -ansi -pedantic
+CFLAGS+= -Wall -pedantic -ansi -DNUTDIR=\".nutdb\" -DFOODDIR=\"$(PREFIX)/lib/nutdb\"
nut: $(objects)
- gcc ${CFLAGS} -lm -o nut $(objects)
+ ${CC} ${CFLAGS} -lm -o nut $(objects)
deps:
makedepend *.c
@@ -11,4 +11,8 @@ deps:
clean:
rm -f *.o nut preprocess/*.o preprocess/dbjw
-# DO NOT DELETE
+install:
+ mkdir $(PREFIX)/lib/nutdb/
+ ${BSD_INSTALL_PROGRAM} nut $(PREFIX)/bin/nutdb
+ ${BSD_INSTALL_MAN} nut.1 $(PREFIX)/man/man1/nutdb.1
+ ${BSD_INSTALL_DATA} raw.data/* $(PREFIX)/lib/nutdb/