summaryrefslogtreecommitdiff
path: root/databases/postgresql80/files/Makefile.custom
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql80/files/Makefile.custom')
-rw-r--r--databases/postgresql80/files/Makefile.custom38
1 files changed, 31 insertions, 7 deletions
diff --git a/databases/postgresql80/files/Makefile.custom b/databases/postgresql80/files/Makefile.custom
index 2c27efbc3a4..f6aca95b6b6 100644
--- a/databases/postgresql80/files/Makefile.custom
+++ b/databases/postgresql80/files/Makefile.custom
@@ -1,15 +1,39 @@
-# $NetBSD: Makefile.custom,v 1.1.1.1 2005/02/06 12:32:05 jdolecek Exp $
+# $NetBSD: Makefile.custom,v 1.2 2005/08/05 19:43:45 jlam Exp $
#
-# This file is included by Makefile.global, which is included by every
-# sub-Makefile in the build tree. Makefiles for shared libraries include
-# Makefile.global then Makefile.shlib.
+# This file is included at the end of Makefile.global, which is included
+# by every sub-Makefile in the build tree. Makefiles for shared
+# libraries include Makefile.global then Makefile.shlib.
+#
+
+# Override any OS-specific locations for where to put SQL man pages.
+sqlmansect = 7
-pkglibdir = $(exec_prefix)/lib/postgresql
+# Override installation paths to avoid logic in Makefile.global.
+includedir = $(prefix)/include
+libdir = $(exec_prefix)/lib
+pkglibdir = $(libdir)/postgresql
+pkgincludedir = $(includedir)/postgresql
+# INSTALLED_LIBPQ is passed in from the environment and tells the build
+# system how to link to an installed libpq.*.
+#
ifdef INSTALLED_LIBPQ
libpq = -lpq
+else
+ifdef LIBTOOL
+libpq = -L$(libpq_builddir)/.libs -lpq
endif
+endif
+
+# In pkgsrc, libpython is always present as a shared library.
+shared_libpython = yes
-ifdef INSTALLED_LIBPGTCL
-libpgtcl = -lpgtcl
+# $(libpq_builddir)/libpq.a is used in several places as a dependency,
+# but if we're building with libtool, then we don't actually want to
+# create that file since it will mess up the re-linking process.
+# Declare it to be phony to prevent GNU make from thinking it's a
+# target.
+#
+ifdef LIBTOOL
+.PHONY: $(libpq_builddir)/libpq.a
endif