$NetBSD: patch-ag,v 1.5 2008/06/14 14:48:01 obache Exp $ --- LTmakefile.in.orig 2007-03-05 06:58:16.000000000 +0000 +++ LTmakefile.in @@ -37,7 +37,7 @@ MYLIBDIR = @libdir@ MYBINDIR = @bindir@ MYMAN1DIR = @mandir@/man1 MYMAN3DIR = @mandir@/man3 -MYSHAREDIR = $(prefix)/share/$(PACKAGE) +MYSHAREDIR = $(prefix)/share/doc/$(PACKAGE) MYPCDIR = @libdir@/pkgconfig # Building binaries @@ -46,11 +46,11 @@ CC = gcc CFLAGS = -I. -I$(MYHEADDIR) -I$(HOME)/include -I/usr/local/include @MYDEFS@ \ -D_XOPEN_SOURCE_EXTENDED=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__=1 -D_HPUX_SOURCE=1 \ -D_POSIX_MAPPED_FILES=1 -D_POSIX_SYNCHRONIZED_IO=1 \ - -DPIC=1 -D_THREAD_SAFE=1 -D_REENTRANT=1 -DNDEBUG -O3 + -DPIC=1 -D_THREAD_SAFE=1 ${PTHREAD_CFLAGS} -DNDEBUG -O3 LD = gcc -LIBLDFLAGS = -rpath $(MYLIBDIR) -R $(MYLIBDIR) \ +LIBLDFLAGS = @LDFLAGS@ -rpath $(MYLIBDIR) -R $(MYLIBDIR) \ -version-info $$(($(LIBVER)+$(LIBREV))):0:$(LIBREV) @LIBS@ -LDFLAGS = -rpath $(MYLIBDIR) -R $(MYLIBDIR) -L. -lqdbm @LIBS@ +LDFLAGS = @LDFLAGS@ -rpath $(MYLIBDIR) -R $(MYLIBDIR) -L. -lqdbm @LIBS@ INSTALL = install MKDIR = mkdir -p CP = cp -rf @@ -89,17 +89,17 @@ clean : install : - $(LIBTOOL) --mode=install $(INSTALL) $(MYHEADS) $(MYHEADDIR) - $(LIBTOOL) --mode=install $(INSTALL) $(MYLIBS) $(MYLIBDIR) - $(LIBTOOL) --mode=install $(INSTALL) $(MYBINS) $(MYBINDIR) - $(MKDIR) $(MYMAN1DIR) - cd man && $(CP) $(MYMAN1S) $(MYMAN1DIR) - $(MKDIR) $(MYMAN3DIR) - cd man && $(CP) $(MYMAN3S) $(MYMAN3DIR) - $(MKDIR) $(MYSHAREDIR) - $(CP) $(MYDOCS) $(MYSHAREDIR) - $(MKDIR) $(MYPCDIR) - $(CP) $(MYPCS) $(MYPCDIR) + ${BSD_INSTALL_DATA} $(MYHEADS) $(DESTDIR)$(MYHEADDIR) + $(LIBTOOL) --mode=install $(INSTALL) $(MYLIBS) $(DESTDIR)$(MYLIBDIR) + $(LIBTOOL) --mode=install $(INSTALL) $(MYBINS) $(DESTDIR)$(MYBINDIR) + ${BSD_INSTALL_MAN_DIR} $(DESTDIR)$(MYMAN1DIR) + cd man && ${BSD_INSTALL_MAN} $(MYMAN1S) $(DESTDIR)$(MYMAN1DIR) + ${BSD_INSTALL_MAN_DIR} $(DESTDIR)$(MYMAN3DIR) + cd man && ${BSD_INSTALL_MAN} $(MYMAN3S) $(DESTDIR)$(MYMAN3DIR) + ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(MYSHAREDIR) + ${BSD_INSTALL_DATA} $(MYDOCS) $(DESTDIR)$(MYSHAREDIR) + ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(MYPCDIR) + ${BSD_INSTALL_DATA} $(MYPCS) $(DESTDIR)$(MYPCDIR) @printf '\n' @printf '#================================================================\n' @printf '# Thanks for using QDBM.\n'