diff options
author | asau <asau@pkgsrc.org> | 2010-12-24 03:41:38 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2010-12-24 03:41:38 +0000 |
commit | 5c8d8b6b6f287328d22539f0e035ed52b4e6f484 (patch) | |
tree | f6c3e412a4f8f3bffbc445a3d74c097dd3acd7b8 /databases/postgresql90 | |
parent | c5531f4d1c271f0d55cf158072b60ac55e1d77cb (diff) | |
download | pkgsrc-5c8d8b6b6f287328d22539f0e035ed52b4e6f484.tar.gz |
Restore PG_SUBPREFIX logic.
Diffstat (limited to 'databases/postgresql90')
-rw-r--r-- | databases/postgresql90/Makefile.common | 30 | ||||
-rw-r--r-- | databases/postgresql90/files/Makefile.custom | 8 |
2 files changed, 28 insertions, 10 deletions
diff --git a/databases/postgresql90/Makefile.common b/databases/postgresql90/Makefile.common index ccce4ca8a43..2d47d619e74 100644 --- a/databases/postgresql90/Makefile.common +++ b/databases/postgresql90/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.6 2010/12/24 03:34:33 asau Exp $ +# $NetBSD: Makefile.common,v 1.7 2010/12/24 03:41:38 asau Exp $ # # used by databases/postgresql90-adminpack/Makefile # used by databases/postgresql90-client/Makefile @@ -49,10 +49,31 @@ PG_TEMPLATE.IRIX= irix5 PG_TEMPLATE.${OPSYS}= ${LOWER_OPSYS} .endif +PG_SUBPREFIX= # empty +.if empty(PG_SUBPREFIX) +PG_PREFIX= ${PREFIX} +PLIST_SUBST+= PG_SUBPREFIX= +.else +PG_PREFIX= ${PREFIX}/${PG_SUBPREFIX} +BUILD_DEFS+= PG_SUBPREFIX +PLIST_SUBST+= PG_SUBPREFIX=${PG_SUBPREFIX:/=}/ +BUILDLINK_PASSTHRU_DIRS+= ${PG_PREFIX} +.endif +PG_DATA_DIR= ${PG_PREFIX}/share/postgresql +PG_DOC_DIR= ${PG_PREFIX}/share/doc/postgresql +PG_LOCALE_DIR= ${PG_PREFIX}/${PKGLOCALEDIR}/locale +PG_ETC_DIR= ${PKG_SYSCONFDIR:S/^${PREFIX}\//${PG_PREFIX}\//} + GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} -CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql +CONFIGURE_ARGS+= --bindir=${PG_PREFIX}/bin +CONFIGURE_ARGS+= --libdir=${PG_PREFIX}/lib +CONFIGURE_ARGS+= --includedir=${PG_PREFIX}/include +CONFIGURE_ARGS+= --sysconfdir=${PG_ETC_DIR} +CONFIGURE_ARGS+= --datadir=${PG_DATA_DIR} +CONFIGURE_ARGS+= --localedir=${PG_LOCALE_DIR} +CONFIGURE_ARGS+= --with-docdir=${PG_DOC_DIR} CONFIGURE_ARGS+= --with-template=${PG_TEMPLATE.${OPSYS}} +GNU_CONFIGURE_MANDIR= $(PG_PREFIX)/$(PKGMANDIR) CONFIGURE_ARGS+= --enable-nls CONFIGURE_ARGS+= --without-perl @@ -109,3 +130,6 @@ post-extract: .endif .include "../../databases/postgresql90/options.mk" + +# Help to generate PLIST +PRINT_PLIST_AWK+= {sub("^${PG_SUBPREFIX}/", ""); $$0 = "$${PG_SUBPREFIX}" $$0;} diff --git a/databases/postgresql90/files/Makefile.custom b/databases/postgresql90/files/Makefile.custom index d2ee4223714..675f0bf4afb 100644 --- a/databases/postgresql90/files/Makefile.custom +++ b/databases/postgresql90/files/Makefile.custom @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.custom,v 1.1.1.1 2010/09/21 07:50:46 adam Exp $ +# $NetBSD: Makefile.custom,v 1.2 2010/12/24 03:41:38 asau Exp $ # # This file is included at the end of Makefile.global, which is included # by every sub-Makefile in the build tree. Makefiles for shared @@ -8,12 +8,6 @@ # Override any OS-specific locations for where to put SQL man pages. sqlmansect = 7 -# 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.*. # |