summaryrefslogtreecommitdiff
path: root/databases/postgresql74-lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql74-lib/Makefile')
-rw-r--r--databases/postgresql74-lib/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/databases/postgresql74-lib/Makefile b/databases/postgresql74-lib/Makefile
new file mode 100644
index 00000000000..095a36c4156
--- /dev/null
+++ b/databases/postgresql74-lib/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/04/19 00:02:30 recht Exp $
+
+PKGNAME= postgresql-lib-${BASE_VERS}
+SVR4_PKGNAME= pstgl
+COMMENT= PostgreSQL database headers and libraries
+
+.include "../../databases/postgresql74/Makefile.common"
+
+CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
+BUILD_DIRS= ${WRKSRC}/src/include
+BUILD_DIRS+= ${WRKSRC}/src/interfaces
+BUILD_DIRS+= ${WRKSRC}/src/pl
+
+.include "../../mk/bsd.prefs.mk"
+
+# handle additional headers installed by hierarchical queries patch
+.if defined(PGSQL_USE_HIER) && !empty(PGSQL_USE_HIER:M[yY][eE][sS])
+PLIST_SUBST+= PG_HIER=
+.else
+PLIST_SUBST+= PG_HIER="@comment "
+.endif
+
+post-buildlink:
+#
+# Avoid conflict between "${LOCALBASE}/include/openssl/des.h" and
+# "/usr/include/crypt.h" -- we want the definitions in the former.
+#
+.if (${OPSYS} == "SunOS")
+ ${TOUCH} ${BUILDLINK_DIR}/include/crypt.h
+.endif
+
+post-install:
+ cd ${WRKSRC}/src/include && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} install-all-headers
+ ${EGREP} -v "^#" ${FILESDIR}/man.lib > ${WRKDIR}/man_tar
+ ${TAR} -zxm -C ${PREFIX}/man -T ${WRKDIR}/man_tar \
+ -f ${WRKSRC}/doc/man.tar.gz
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"