summaryrefslogtreecommitdiff
path: root/databases/postgresql/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-07-15 01:23:56 +0000
committerjlam <jlam@pkgsrc.org>2000-07-15 01:23:56 +0000
commitf33a677414a8dd053e83c6cb588d97b59d7aae3e (patch)
tree14c5b1f3c1cc5184d797eca4567fb2d2413673ae /databases/postgresql/Makefile
parentf604285a035fa9be2ec0fa6cef9298a2b54dcf9a (diff)
downloadpkgsrc-f33a677414a8dd053e83c6cb588d97b59d7aae3e.tar.gz
Install the Server Programming Interface header files.
Closes PR#10480.
Diffstat (limited to 'databases/postgresql/Makefile')
-rw-r--r--databases/postgresql/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/databases/postgresql/Makefile b/databases/postgresql/Makefile
index 4fc76cdbc78..663f342e014 100644
--- a/databases/postgresql/Makefile
+++ b/databases/postgresql/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2000/07/14 04:44:11 jlam Exp $
+# $NetBSD: Makefile,v 1.52 2000/07/15 01:23:56 jlam Exp $
# FreeBSD Id: Makefile,v 1.22 1997/12/24 01:21:37 alex Exp
#
@@ -31,6 +31,9 @@ PGHOME= ${PREFIX}/${PGUSER}
BUILD_DEFS= PGUSER PGROUP
PLIST_SUBST= PGUSER=${PGUSER}
+PLIST_SRC+= ${PKGDIR}/PLIST
+PLIST_SRC+= ${PKGDIR}/PLIST.spi
+PLIST_SRC+= ${PKGDIR}/PLIST.dirrm
CONFIGURE_ARGS+= --without-perl --without-odbc --without-tcl
CONFIGURE_ARGS+= --with-includes="${LOCALBASE}/include"
@@ -62,6 +65,17 @@ pre-install:
post-install:
cd ${PREFIX}/include/pgsql; ${RMDIR} -p port/netbsd
+ dirlist=`${GREP} "^@dirrm" ${PKGDIR}/PLIST.spi \
+ | ${AWK} '{ print $$2 }'`; \
+ for dir in $$dirlist; do \
+ ${INSTALL_DATA_DIR} ${PREFIX}/$$dir; \
+ done
+ filelist=`${GREP} "^include/pgsql/" ${PKGDIR}/PLIST.spi \
+ | ${SED} "s,^include/pgsql/,,g"`; \
+ cd ${WRKSRC}/include; for file in $$filelist; do \
+ ${INSTALL_DATA} $$file ${PREFIX}/include/pgsql/$$file; \
+ done
+
.for PROG in ecpg pg_dump pg_encoding pg_id pg_passwd pg_version postgres psql
strip ${PREFIX}/bin/${PROG}
.endfor