pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/postgresql84-client Adding the pgxs makefile...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1475a9027125
branches:  trunk
changeset: 568620:1475a9027125
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Tue Dec 15 22:39:40 2009 +0000

description:
Adding the pgxs makefiles using post-install which other packages
like PostGIS build against.

diffstat:

 databases/postgresql84-client/Makefile |  27 +++++++++++++++++++++++++--
 databases/postgresql84-client/PLIST    |   9 ++++++++-
 2 files changed, 33 insertions(+), 3 deletions(-)

diffs (72 lines):

diff -r 42b30668ff68 -r 1475a9027125 databases/postgresql84-client/Makefile
--- a/databases/postgresql84-client/Makefile    Tue Dec 15 21:54:17 2009 +0000
+++ b/databases/postgresql84-client/Makefile    Tue Dec 15 22:39:40 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2009/07/29 06:27:56 adam Exp $
+# $NetBSD: Makefile,v 1.2 2009/12/15 22:39:40 fhajny Exp $
 
 PKGNAME=       postgresql84-client-${BASE_VERS}
+PKGREVISION=   1
 COMMENT=       PostgreSQL database client programs
 
 PKG_DESTDIR_SUPPORT=   user-destdir
@@ -58,6 +59,25 @@
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 
+SUBST_CLASSES+=                pgxs
+SUBST_STAGE.pgxs=      post-build
+SUBST_MESSAGE.pgxs=    Fixing workdir tools references in pgxs Makefile
+SUBST_FILES.pgxs=      src/Makefile.global
+SUBST_SED.pgxs=                -e 's,${WRKDIR}/.tools,${PREFIX},'
+SUBST_SED.pgxs+=       -e 's,${WRKDIR}/.wrapper,${PREFIX},'
+SUBST_SED.pgxs+=       -e 's,${WRKSRC},/dev/null,'
+
+INSTALLATION_DIRS+=    ${PG_SUBPREFIX}lib/postgresql/pgxs
+INSTALLATION_DIRS+=    ${PG_SUBPREFIX}lib/postgresql/pgxs/config
+INSTALLATION_DIRS+=    ${PG_SUBPREFIX}lib/postgresql/pgxs/src
+INSTALLATION_DIRS+=    ${PG_SUBPREFIX}lib/postgresql/pgxs/src/makefiles
+
+DEST_PG_PGXS=  ${DESTDIR}${PG_PREFIX}/lib/postgresql/pgxs
+PG_PGXS_FILES= config/install-sh config/mkinstalldirs
+PG_PGXS_FILES+=        src/makefiles/pgxs.mk src/Makefile.global
+PG_PGXS_FILES+=        src/Makefile.port src/Makefile.shlib
+PG_PGXS_FILES+=        src/nls-global.mk
+
 # On Solaris, avoid conflicts between "${SSLBASE}/include/openssl/des.h"
 # and "/usr/include/crypt.h" -- we want the definitions in the former.
 .if ${OPSYS} == "SunOS"
@@ -71,6 +91,9 @@
                bug.template;                                           \
        do                                                              \
                ${INSTALL_DATA} $$file ${DESTDIR}${PG_DOC_DIR}/$$file;  \
-        done
+        done;                                                          \
+       for file in ${PG_PGXS_FILES}; do                                \
+               ${INSTALL_DATA} ${WRKSRC}/$$file ${DEST_PG_PGXS}/$$file;\
+       done
 
 .include "../../mk/bsd.pkg.mk"
diff -r 42b30668ff68 -r 1475a9027125 databases/postgresql84-client/PLIST
--- a/databases/postgresql84-client/PLIST       Tue Dec 15 21:54:17 2009 +0000
+++ b/databases/postgresql84-client/PLIST       Tue Dec 15 22:39:40 2009 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2009/09/10 10:06:19 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2009/12/15 22:39:40 fhajny Exp $
 ${PG_SUBPREFIX}bin/clusterdb
 ${PG_SUBPREFIX}bin/createdb
 ${PG_SUBPREFIX}bin/createlang
@@ -496,6 +496,13 @@
 ${PG_SUBPREFIX}lib/libpgport.a
 ${PG_SUBPREFIX}lib/libpgtypes.la
 ${PG_SUBPREFIX}lib/libpq.la
+${PG_SUBPREFIX}lib/postgresql/pgxs/config/install-sh
+${PG_SUBPREFIX}lib/postgresql/pgxs/config/mkinstalldirs
+${PG_SUBPREFIX}lib/postgresql/pgxs/src/Makefile.global
+${PG_SUBPREFIX}lib/postgresql/pgxs/src/Makefile.port
+${PG_SUBPREFIX}lib/postgresql/pgxs/src/Makefile.shlib
+${PG_SUBPREFIX}lib/postgresql/pgxs/src/makefiles/pgxs.mk
+${PG_SUBPREFIX}lib/postgresql/pgxs/src/nls-global.mk
 ${PG_SUBPREFIX}man/man1/clusterdb.1
 ${PG_SUBPREFIX}man/man1/createdb.1
 ${PG_SUBPREFIX}man/man1/createlang.1



Home | Main Index | Thread Index | Old Index