Files
bsdports/data/libgdbm/files/patch-x-Makefile.in
2019-12-26 07:26:06 +00:00

72 lines
2.0 KiB
Plaintext

--- ./Makefile.in.orig 2002-10-08 19:09:12.000000000 +0300
+++ ./Makefile.in 2015-11-05 18:11:10.771425000 +0200
@@ -15,8 +15,8 @@
INSTALL_DATA = @INSTALL_DATA@
# File ownership and group
-BINOWN = bin
-BINGRP = bin
+BINOWN = root
+BINGRP = wheel
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
@@ -24,13 +24,13 @@
DEFS =
# Where the system [n]dbm routines are...
-LIBS = @LIBS@ -lc
+LIBS = @LIBS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
# Common prefix for installation directories
-prefix = @prefix@
+prefix = $(DESTDIR)@prefix@
exec_prefix = @exec_prefix@
binprefix = $(exec_prefix)
manprefix = $(prefix)
@@ -40,8 +40,8 @@
# The include directory for gdbm.h and dbm.h.
includedir = @includedir@
# Info and man directories.
-infodir = @infodir@
-man3dir = @mandir@/man3
+infodir = $(DESTDIR)@infodir@
+man3dir = $(DESTDIR)@mandir@/man3
manext = 3
#### End of system configuration section. ####
@@ -122,7 +122,7 @@
DISTFILES = $(SRCS) $(HDRS) $(MSCFILES)
-all: libgdbm.la libgdbm_compat.la
+all: libgdbm.la libgdbm_compat.la gdbm.info
progs: $(PROGS)
@@ -174,8 +174,8 @@
testgdbm: testgdbm.o libgdbm.la @LIBOBJS@
$(LIBTOOL) $(CC) $(LDFLAGS) -o testgdbm testgdbm.o libgdbm.la @LIBOBJS@
-testdbm: testdbm.o libgdbm.la libgdbm_compat.la
- $(LIBTOOL) $(CC) $(LDFLAGS) -o testdbm testdbm.o libgdbm.la libgdbm_compat.la
+testdbm: testdbm.o libgdbm.la libgdbm_compat.la gdbm.info
+ $(LIBTOOL) $(CC) $(LDFLAGS) -o testdbm testdbm.o libgdbm.la libgdbm_compat.la gdbm.info
tdbm: testdbm.o
$(CC) $(LDFLAGS) -o tdbm testdbm.o $(LIBS)
@@ -183,8 +183,8 @@
testndbm.o: testndbm.c
$(CC) -c -I. -I$(srcdir) $(CFLAGS) $(DEFS) -DGNU $(srcdir)/testndbm.c
-testndbm: testndbm.o libgdbm.la libgdbm_compat.la
- $(LIBTOOL) $(CC) $(LDFLAGS) -o testndbm testndbm.o libgdbm.la libgdbm_compat.la
+testndbm: testndbm.o libgdbm.la libgdbm_compat.la gdbm.info
+ $(LIBTOOL) $(CC) $(LDFLAGS) -o testndbm testndbm.o libgdbm.la libgdbm_compat.la gdbm.info
tndbm.o: testndbm.c
cp $(srcdir)/testndbm.c ./tndbm.c