diff options
author | fhajny <fhajny@pkgsrc.org> | 2009-12-15 22:39:40 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2009-12-15 22:39:40 +0000 |
commit | 997681c4454607580a0ae252f0f04d7020ae5a39 (patch) | |
tree | 2be51df40134dcec594a1e0ded7932f78a80e29c | |
parent | a0e6713ee7f2c940d5ab37869267ef77392130c0 (diff) | |
download | pkgsrc-997681c4454607580a0ae252f0f04d7020ae5a39.tar.gz |
Adding the pgxs makefiles using post-install which other packages
like PostGIS build against.
-rw-r--r-- | databases/postgresql84-client/Makefile | 27 | ||||
-rw-r--r-- | databases/postgresql84-client/PLIST | 9 |
2 files changed, 33 insertions, 3 deletions
diff --git a/databases/postgresql84-client/Makefile b/databases/postgresql84-client/Makefile index 3bf5e26eacb..9b43679a087 100644 --- a/databases/postgresql84-client/Makefile +++ b/databases/postgresql84-client/Makefile @@ -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 @@ USE_GNU_READLINE= yes .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 @@ post-install: 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 --git a/databases/postgresql84-client/PLIST b/databases/postgresql84-client/PLIST index d210427701b..973f5dad2f0 100644 --- a/databases/postgresql84-client/PLIST +++ b/databases/postgresql84-client/PLIST @@ -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/libecpg_compat.la ${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 |