Группа :: Базы Данных
Пакет: postgresql
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: postgresql-7.4-pgtcl.patch
diff -Nur postgresql-7.4.orig/src/interfaces/libpgtcl/Makefile postgresql-7.4/src/interfaces/libpgtcl/Makefile
--- postgresql-7.4.orig/src/interfaces/libpgtcl/Makefile 2002-12-30 22:19:52 +0500
+++ postgresql-7.4/src/interfaces/libpgtcl/Makefile 2003-08-22 12:15:43 +0600
@@ -17,6 +17,8 @@
SO_MINOR_VERSION= 4
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS) $(TCL_INCLUDE_SPEC)
+override libdir := $(libdir)/tcl
+tcldatadir = $(prefix)/share/tcl/$(NAME)$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
OBJS= pgtcl.o pgtclCmds.o pgtclId.o
@@ -32,14 +34,20 @@
# Shared library stuff
include $(top_srcdir)/src/Makefile.shlib
-install: all installdirs install-headers install-lib
+install: all installdirs install-headers install-lib install-data
.PHONY: install-headers
install-headers: libpgtcl.h
$(INSTALL_DATA) $< $(DESTDIR)$(includedir)/libpgtcl.h
+install-data: $(shlib) pkgIndex.tcl
+ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(tcldatadir)/pkgIndex.tcl
+
+pkgIndex.tcl:
+ @echo package ifneeded Pgtcl 1.3 [list load [file join \$$dir .. .. .. lib tcl lib$(NAME)$(DLSUFFIX)] Pgtcl] > pkgIndex.tcl
+
installdirs:
- $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
+ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(tcldatadir) $(DESTDIR)$(includedir)
uninstall: uninstall-lib
rm -f $(DESTDIR)$(includedir)/libpgtcl.h