summaryrefslogtreecommitdiff
path: root/package/postgresql/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-13 22:07:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-13 22:07:11 +0100
commit56e554d65183edf7bcbab7ff04f0d13fa5a4a403 (patch)
tree11bdc0ebfe37397d17f7f81404b5fdbd80d516cc /package/postgresql/Makefile
parentc222009ae2041c53e2fce319c12b1c1b08dfe4fa (diff)
add a lot of new devel subpackages and fix native builds of packages
Diffstat (limited to 'package/postgresql/Makefile')
-rw-r--r--package/postgresql/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/package/postgresql/Makefile b/package/postgresql/Makefile
index 4f6f1c671..14408bf09 100644
--- a/package/postgresql/Makefile
+++ b/package/postgresql/Makefile
@@ -13,11 +13,12 @@ PKG_BUILDDEP:= zlib
PKG_URL:= http://www.postgresql.org/
PKG_SITES:= ftp://ftp7.de.postgresql.org/pub/ftp.postgresql.org/source/v${PKG_VERSION}/
-PKG_SUBPKGS:= LIBPQ
+PKG_SUBPKGS:= LIBPQ LIBPQ_DEV
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBPQ,libpq,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBPQ_DEV,libpq-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
@@ -53,8 +54,15 @@ do-build:
DESTDIR="${WRKINST}" \
all install
-do-install:
+libpq-install:
${INSTALL_DIR} ${IDIR_LIBPQ}/usr/lib
${CP} ${WRKINST}/usr/lib/libpq.so* ${IDIR_LIBPQ}/usr/lib
+libpq-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBPQ_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBPQ_DEV}/usr/include
+ ${INSTALL_DIR} ${IDIR_LIBPQ_DEV}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/pg_config \
+ ${IDIR_LIBPQ_DEV}/usr/bin
+
include ${TOPDIR}/mk/pkg-bottom.mk