0ed370d43b
+ Put documentation under ${PREFIX}/share/doc instead of ${PREFIX}/share/doc/html. Packages that install documentation under the "html" directory are supposed to move them to the "doc" directory when they're updated, but these packages are basically EOL'ed so just move them now. + Add full DESTDIR support. Bump the PKGREVISION of databases/db to 3 and databases/db3 to 4.
266 lines
10 KiB
Text
266 lines
10 KiB
Text
$NetBSD: patch-aa,v 1.10 2008/02/21 19:32:24 jlam Exp $
|
|
|
|
--- ../dist/Makefile.in.orig 2001-07-06 16:53:16.000000000 -0400
|
|
+++ ../dist/Makefile.in
|
|
@@ -11,7 +11,7 @@ exec_prefix=@exec_prefix@
|
|
bindir= @bindir@
|
|
includedir=@includedir@
|
|
libdir= @libdir@
|
|
-docdir= $(prefix)/docs
|
|
+docdir= $(prefix)/share/doc/db3
|
|
|
|
dmode= 755
|
|
emode= 555
|
|
@@ -42,7 +42,7 @@ INSTALLER= @INSTALLER@
|
|
LIBTOOL= @LIBTOOL@
|
|
|
|
POSTLINK= @POSTLINK@
|
|
-SOLINK= @SOLINK@
|
|
+SOLINK= @SOLINK@ -version-info @DB_VERSION_MINOR@:@DB_VERSION_PATCH@
|
|
SOFLAGS= @SOFLAGS@
|
|
SOMAJOR= @DB_VERSION_MAJOR@
|
|
SOVERSION= @DB_VERSION_MAJOR@.@DB_VERSION_MINOR@
|
|
@@ -60,13 +60,13 @@ LDFLAGS= @LDFLAGS@
|
|
LIBS= @LIBS@
|
|
LIBSO_LIBS= @LIBSO_LIBS@
|
|
|
|
-libdb= libdb.a
|
|
-libso_base= libdb
|
|
-libso= $(libso_base)-$(SOVERSION).@SOSUFFIX@
|
|
-libso_static= $(libso_base)-$(SOVERSION).a
|
|
-libso_target= $(libso_base)-$(SOVERSION).la
|
|
+libdb= $(libso_base).la
|
|
+libso_base= libdb3
|
|
+libso= $(libso_base).@SOSUFFIX@.$(SOVERSION)
|
|
+libso_static= $(libso_base).la
|
|
+libso_target= $(libso_base).la
|
|
libso_default= $(libso_base).@SOSUFFIX@
|
|
-libso_major= $(libso_base)-$(SOMAJOR).@SOSUFFIX@
|
|
+libso_major= $(libso_base).@SOSUFFIX@.$(SOMAJOR)
|
|
|
|
##################################################
|
|
# C++ API.
|
|
@@ -78,13 +78,13 @@ CXX= @MAKEFILE_CXX@
|
|
CXXLINK= @MAKEFILE_CXXLINK@
|
|
LIBXSO_LIBS= @LIBXSO_LIBS@
|
|
|
|
-libcxx= libdb_cxx.a
|
|
-libxso_base= libdb_cxx
|
|
-libxso= $(libxso_base)-$(SOVERSION).@SOSUFFIX@
|
|
-libxso_static= $(libxso_base)-$(SOVERSION).a
|
|
-libxso_target= $(libxso_base)-$(SOVERSION).la
|
|
+libcxx= libdb3_cxx.a
|
|
+libxso_base= libdb3_cxx
|
|
+libxso= $(libxso_base).@SOSUFFIX@.$(SOVERSION)
|
|
+libxso_static= $(libxso_base).a
|
|
+libxso_target= $(libxso_base).la
|
|
libxso_default= $(libxso_base).@SOSUFFIX@
|
|
-libxso_major= $(libxso_base)-$(SOMAJOR).@SOSUFFIX@
|
|
+libxso_major= $(libxso_base).@SOSUFFIX@.$(SOMAJOR)
|
|
|
|
##################################################
|
|
# Java API.
|
|
@@ -104,13 +104,13 @@ JAVA_DBREL= com/sleepycat/db
|
|
JAVA_DBDIR= $(JAVA_SRCDIR)/$(JAVA_DBREL)
|
|
JAVA_EXDIR= $(JAVA_SRCDIR)/com/sleepycat/examples
|
|
|
|
-libj_jarfile= db.jar
|
|
-libjso_base= libdb_java
|
|
-libjso= $(libjso_base)-$(SOVERSION).@SOSUFFIX@
|
|
-libjso_target= $(libjso_base)-$(SOVERSION).la
|
|
+libj_jarfile= db3.jar
|
|
+libjso_base= libdb3_java
|
|
+libjso= $(libjso_base).@SOSUFFIX@.$(SOVERSION)
|
|
+libjso_target= $(libjso_base).la
|
|
libjso_default= $(libjso_base).@SOSUFFIX@
|
|
-libjso_major= $(libjso_base)-$(SOMAJOR).@SOSUFFIX@
|
|
-libjso_g= $(libjso_base)-$(SOVERSION)_g.@SOSUFFIX@
|
|
+libjso_major= $(libjso_base).@SOSUFFIX@.$(SOMAJOR)
|
|
+libjso_g= $(libjso_base)_g.@SOSUFFIX@.$(SOVERSION)
|
|
|
|
##################################################
|
|
# TCL API.
|
|
@@ -119,11 +119,11 @@ libjso_g= $(libjso_base)-$(SOVERSION)_g.
|
|
##################################################
|
|
TCFLAGS= @TCFLAGS@
|
|
LIBTSO_LIBS= @LIBTSO_LIBS@
|
|
-libtso_base= libdb_tcl
|
|
-libtso= $(libtso_base)-$(SOVERSION).@SOSUFFIX@
|
|
-libtso_target= $(libtso_base)-$(SOVERSION).la
|
|
+libtso_base= libdb3_tcl
|
|
+libtso= $(libtso_base).@SOSUFFIX@.$(SOVERSION)
|
|
+libtso_target= $(libtso_base).la
|
|
libtso_default= $(libtso_base).@SOSUFFIX@
|
|
-libtso_major= $(libtso_base)-$(SOMAJOR).@SOSUFFIX@
|
|
+libtso_major= $(libtso_base).@SOSUFFIX@.$(SOMAJOR)
|
|
|
|
##################################################
|
|
# db_dump185 UTILITY
|
|
@@ -255,14 +255,6 @@ install: @INSTALL_TARGET@
|
|
##################################################
|
|
library_build: $(DEF_LIB) @ADDITIONAL_LIBS@ @ADDITIONAL_LANG@ $(UTIL_PROGS)
|
|
|
|
-$(libdb): $(C_OBJS)
|
|
- $(ar) cr $@ $(C_OBJS)
|
|
- test ! -f $(ranlib) || $(ranlib) $@
|
|
-
|
|
-$(libcxx): $(CXX_OBJS) $(C_OBJS)
|
|
- $(ar) cr $@ $(CXX_OBJS) $(C_OBJS)
|
|
- test ! -f $(ranlib) || $(ranlib) $@
|
|
-
|
|
$(libso_target): $(C_OBJS)
|
|
$(SOLINK) $(SOFLAGS) -o $@ $(C_OBJS) $(LDFLAGS) $(LIBSO_LIBS)
|
|
|
|
@@ -358,19 +350,16 @@ library_install: install_include install
|
|
uninstall: uninstall_utilities uninstall_include uninstall_lib uninstall_docs
|
|
|
|
install_setup:
|
|
- @test -d $(prefix) || \
|
|
- ($(mkdir) -p $(prefix) && $(chmod) $(dmode) $(prefix))
|
|
+ @test -d $(DESTDIR)$(prefix) || \
|
|
+ ($(mkdir) -p $(DESTDIR)$(prefix) && $(chmod) $(dmode) $(DESTDIR)$(prefix))
|
|
|
|
INCDOT= db.h @ADDITIONAL_INCS@
|
|
INCINC= db_cxx.h cxx_common.h cxx_except.h
|
|
install_include:
|
|
@echo "Installing DB include files: $(includedir) ..."
|
|
- @test -d $(includedir) || \
|
|
- ($(mkdir) -p $(includedir) && $(chmod) $(dmode) $(includedir))
|
|
- @cd $(includedir) && $(rm) -f $(INCDOT) $(INCINC)
|
|
- @$(cp) -p $(INCDOT) $(includedir)
|
|
- @cd $(srcdir)/include/ && $(cp) -p $(INCINC) $(includedir)
|
|
- @cd $(includedir) && $(chmod) $(fmode) $(INCDOT) $(INCINC)
|
|
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(includedir)
|
|
+ ${BSD_INSTALL_DATA} $(INCDOT) $(DESTDIR)$(includedir)
|
|
+ @cd $(srcdir)/include/ && ${BSD_INSTALL_DATA} $(INCINC) $(DESTDIR)$(includedir)
|
|
|
|
uninstall_include:
|
|
-cd $(includedir) && $(rm) -f $(INCDOT) $(INCINC)
|
|
@@ -388,75 +377,65 @@ uninstall_lib:
|
|
|
|
install_static:
|
|
@echo "Installing DB library: $(libdir) ..."
|
|
- @test -d $(libdir) || \
|
|
- ($(mkdir) -p $(libdir) && $(chmod) $(dmode) $(libdir))
|
|
- @cd $(libdir) && $(rm) -f $(libdb)
|
|
- @$(INSTALLER) -fp $(libdb) $(libdir)
|
|
- @cd $(libdir) && $(chmod) $(fmode) $(libdb)
|
|
+ @test -d $(DESTDIR)$(libdir) || \
|
|
+ ($(mkdir) -p $(DESTDIR)$(libdir) && $(chmod) $(dmode) $(DESTDIR)$(libdir))
|
|
+ @cd $(DESTDIR)$(libdir) && $(rm) -f $(DESTDIR)$(libdb)
|
|
+ @$(INSTALLER) -fp $(libdb) $(DESTDIR)$(libdir)
|
|
+ @cd $(DESTDIR)$(libdir) && $(chmod) $(fmode) $(libdb)
|
|
|
|
install_shared:
|
|
@echo "Installing DB library: $(libdir) ..."
|
|
- @test -d $(libdir) || \
|
|
- ($(mkdir) -p $(libdir) && $(chmod) $(dmode) $(libdir))
|
|
- @cd $(libdir) && $(rm) -f \
|
|
+ @test -d $(DESTDIR)$(libdir) || \
|
|
+ ($(mkdir) -p $(DESTDIR)$(libdir) && $(chmod) $(dmode) $(DESTDIR)$(libdir))
|
|
+ @cd $(DESTDIR)$(libdir) && $(rm) -f \
|
|
$(libso) $(libso_target) $(libso_default) $(libso_major)
|
|
- @$(INSTALLER) $(libso_target) $(libdir)
|
|
- @cd $(libdir) && $(ln) -s $(libso) $(libso_default)
|
|
- @cd $(libdir) && $(ln) -s $(libso) $(libso_major)
|
|
- @$(LIBTOOL) --mode=finish $(libdir)
|
|
- @cd $(libdir) && $(chmod) $(fmode) $(libso) $(libso_target)
|
|
+ @$(INSTALLER) $(libso_target) $(DESTDIR)$(libdir)
|
|
+ @$(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
|
|
|
|
install_static_cxx:
|
|
@echo "Installing DB C++ static library: $(libdir) ..."
|
|
- @test -d $(libdir) || \
|
|
- ($(mkdir) -p $(libdir) && $(chmod) $(dmode) $(libdir))
|
|
- @cd $(libdir) && $(rm) -f $(libcxx)
|
|
- @$(INSTALLER) -fp $(libcxx) $(libdir)
|
|
- @cd $(libdir) && $(chmod) $(fmode) $(libcxx)
|
|
+ @test -d $(DESTDIR)$(libdir) || \
|
|
+ ($(mkdir) -p $(DESTDIR)$(libdir) && $(chmod) $(dmode) $(DESTDIR)$(libdir))
|
|
+ @cd $(DESTDIR)$(libdir) && $(rm) -f $(libcxx)
|
|
+ @$(INSTALLER) -fp $(libcxx) $(DESTDIR)$(libdir)
|
|
+ @cd $(DESTDIR)$(libdir) && $(chmod) $(fmode) $(libcxx)
|
|
|
|
install_shared_cxx:
|
|
@echo "Installing DB C++ library: $(libdir) ..."
|
|
- @test -d $(libdir) || \
|
|
- ($(mkdir) -p $(libdir) && $(chmod) $(dmode) $(libdir))
|
|
- @cd $(libdir) && $(rm) -f \
|
|
+ @test -d $(DESTDIR)$(libdir) || \
|
|
+ ($(mkdir) -p $(DESTDIR)$(libdir) && $(chmod) $(dmode) $(DESTDIR)$(libdir))
|
|
+ @cd $(DESTDIR)$(libdir) && $(rm) -f \
|
|
$(libxso) $(libxso_target) $(libxso_default) $(libxso_major)
|
|
- @$(INSTALLER) $(libxso_target) $(libdir)
|
|
- @cd $(libdir) && $(ln) -s $(libxso) $(libxso_default)
|
|
- @cd $(libdir) && $(ln) -s $(libxso) $(libxso_major)
|
|
- @cd $(libdir) && $(chmod) $(fmode) $(libxso) $(libxso_target)
|
|
+ @$(INSTALLER) $(libxso_target) $(DESTDIR)$(libdir)
|
|
|
|
install_tcl:
|
|
@echo "Installing DB Tcl library: $(libdir) ..."
|
|
- @test -d $(libdir) || \
|
|
- ($(mkdir) -p $(libdir) && $(chmod) $(dmode) $(libdir))
|
|
- @cd $(libdir) && $(rm) -f \
|
|
+ @test -d $(DESTDIR)$(libdir) || \
|
|
+ ($(mkdir) -p $(DESTDIR)$(libdir) && $(chmod) $(dmode) $(DESTDIR)$(libdir))
|
|
+ @cd $(DESTDIR)$(libdir) && $(rm) -f \
|
|
$(libtso) $(libtso_target) $(libtso_default) $(libtso_major)
|
|
- @$(INSTALLER) $(libtso_target) $(libdir)
|
|
- @cd $(libdir) && $(ln) -s $(libtso) $(libtso_default)
|
|
- @cd $(libdir) && $(ln) -s $(libtso) $(libtso_major)
|
|
- @cd $(libdir) && $(chmod) $(fmode) $(libtso) $(libtso_target)
|
|
+ @$(INSTALLER) $(libtso_target) $(DESTDIR)$(libdir)
|
|
|
|
install_java:
|
|
- @echo "Installing DB Java library: $(libdir) ..."
|
|
- @test -d $(libdir) || \
|
|
- ($(mkdir) -p $(libdir) && $(chmod) $(dmode) $(libdir))
|
|
- @cd $(libdir) && $(rm) -f $(libjso_g) \
|
|
+ @echo "Installing DB Java library: $(DESTDIR)$(libdir) ..."
|
|
+ @test -d $(DESTDIR)$(libdir) || \
|
|
+ ($(mkdir) -p $(DESTDIR)$(libdir) && $(chmod) $(dmode) $(DESTDIR)$(libdir))
|
|
+ @cd $(DESTDIR)$(libdir) && $(rm) -f $(libjso_g) \
|
|
$(libjso) $(libjso_target) $(libjso_default) $(libjso_major)
|
|
- @$(INSTALLER) $(libjso_target) $(libdir)
|
|
- @cd $(libdir) && $(ln) -s $(libjso) $(libjso_default)
|
|
- @cd $(libdir) && $(ln) -s $(libjso) $(libjso_major)
|
|
- @cd $(libdir) && $(ln) -s $(libjso) $(libjso_g)
|
|
- @cd $(libdir) && $(chmod) $(fmode) $(libjso) $(libjso_target)
|
|
- @$(cp) $(JAVA_CLASSTOP)/$(libj_jarfile) $(libdir)
|
|
+ @$(INSTALLER) $(libjso_target) $(DESTDIR)$(libdir)
|
|
+ @$(cp) $(JAVA_CLASSTOP)/$(libj_jarfile) $(DESTDIR)$(libdir)
|
|
|
|
install_utilities:
|
|
@echo "Installing DB utilities: $(bindir) ..."
|
|
- @test -d $(bindir) || \
|
|
- ($(mkdir) -p $(bindir) && $(chmod) $(dmode) $(bindir))
|
|
- @cd $(bindir) && $(rm) -f $(UTIL_PROGS)
|
|
- @$(INSTALLER) -fp $(UTIL_PROGS) $(bindir)
|
|
- @cd $(bindir) && (test ! -f $(strip) || $(strip) $(UTIL_PROGS))
|
|
- @cd $(bindir) && $(chmod) $(emode) $(UTIL_PROGS)
|
|
+ @test -d $(DESTDIR)$(bindir) || \
|
|
+ ($(mkdir) -p $(DESTDIR)$(bindir) && $(chmod) $(dmode) $(DESTDIR)$(bindir))
|
|
+ @for prog in $(UTIL_PROGS); do \
|
|
+ db3prog=`echo $$prog | sed @program_transform_name@`; \
|
|
+ ( cd $(DESTDIR)$(bindir) && $(rm) -f $$db3prog ) && \
|
|
+ $(INSTALLER) -fp $$prog $(DESTDIR)$(bindir)/$$db3prog && \
|
|
+ ( cd $(DESTDIR)$(bindir) && (test ! -f $(strip) || $(strip) $$db3prog ) ) && \
|
|
+ ( cd $(DESTDIR)$(bindir) && $(chmod) $(emode) $$db3prog ); \
|
|
+ done
|
|
|
|
uninstall_utilities:
|
|
-cd $(bindir) && $(rm) -f $(UTIL_PROGS)
|
|
@@ -466,10 +445,9 @@ DOCLIST=\
|
|
sleepycat utility
|
|
install_docs:
|
|
@echo "Installing documentation: $(docdir) ..."
|
|
- @test -d $(docdir) || \
|
|
- ($(mkdir) -p $(docdir) && $(chmod) $(dmode) $(docdir))
|
|
- @cd $(docdir) && $(rm) -rf $(DOCLIST)
|
|
- @cd $(srcdir)/docs && $(cp) -pr $(DOCLIST) $(docdir)/
|
|
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)
|
|
+ @cd $(DESTDIR)$(docdir) && $(rm) -rf $(DOCLIST)
|
|
+ @cd $(srcdir)/docs && $(cp) -pr $(DOCLIST) $(DESTDIR)$(docdir)/
|
|
|
|
uninstall_docs:
|
|
-cd $(docdir) && $(rm) -rf $(DOCLIST)
|