aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql-devel/Makefile
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>2000-09-24 00:13:56 +0800
committerandreas <andreas@FreeBSD.org>2000-09-24 00:13:56 +0800
commit3d22b6955e1089ded6586bef42d62d979000bf08 (patch)
tree88d9cf7a7d9a7b741d5ab41c7c5fd6ced1783df8 /databases/postgresql-devel/Makefile
parent07cd0a1f4eccaad9840a9d39cfcc2bc90e9fb07e (diff)
downloadfreebsd-ports-graphics-3d22b6955e1089ded6586bef42d62d979000bf08.tar.gz
freebsd-ports-graphics-3d22b6955e1089ded6586bef42d62d979000bf08.tar.zst
freebsd-ports-graphics-3d22b6955e1089ded6586bef42d62d979000bf08.zip
pl/Perl and ODBC support
Submitted by: Nadav Eiron <nadav@cs.technion.ac.il>
Diffstat (limited to 'databases/postgresql-devel/Makefile')
-rw-r--r--databases/postgresql-devel/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/databases/postgresql-devel/Makefile b/databases/postgresql-devel/Makefile
index 08452acf591..e81f4739237 100644
--- a/databases/postgresql-devel/Makefile
+++ b/databases/postgresql-devel/Makefile
@@ -55,6 +55,12 @@ CONFIGURE_MULTIBYTE= --enable-multibyte="${DEFAULT_ENCODING}"
.else
CONFIGURE_MULTIBYTE= --enable-multibyte
.endif
+.if defined(WITH_PERL)
+CONFIGURE_PERL= --with-perl
+.endif
+.if defined(WITH_ODBC)
+CONFIGURE_ODBC= --with-odbc
+.endif
# if you want jdbc, type make -DWITH_JDBC
# Honors JAVA_HOME if you have it set, and don't want the dependency.
@@ -76,6 +82,8 @@ CONFIGURE_ARGS= --prefix=${PREFIX}/pgsql \
--with-includes="${PREFIX}/include ${TCL_INCDIR} ${TK_INCDIR}" \
${CONFIGURE_TCL} \
${CONFIGURE_MULTIBYTE} \
+ ${CONFIGURE_PERL} \
+ ${CONFIGURE_ODBC} \
--with-libraries=${PREFIX}/lib
MAN1= createdb.1 createlang.1 createuser.1 dropdb.1 droplang.1 \
@@ -133,6 +141,18 @@ pre-fetch:
.else
@${ECHO_MSG} "Building PostgreSQL with \"postgresql.jar\"."
.endif
+.if !defined(WITH_PERL)
+ @${ECHO_MSG} "To build Perl interface and pl/Perl interpreter:"
+ @${ECHO_MSG} " make -DWITH_PERL"
+.else
+ @${ECHO_MSG} "Building PostgreSQL with \"pl/Perl\"."
+.endif
+.if !defined(WITH_ODBC)
+ @${ECHO_MSG} "To build the ODBC driver package:"
+ @${ECHO_MSG} " make -DWITH_ODBC"
+.else
+ @${ECHO_MSG} "Building PostgreSQL with ODBC Drivers."
+.endif
post-patch:
@ ${MV} ${WRKSRC}/template/freebsd ${WRKSRC}/template/freebsd.orig
@@ -211,6 +231,11 @@ post-install:
@${CAT} ${PKGDIR}/PLIST.tcl ${TMPPLIST}.notcl > ${TMPPLIST}
@${RM} ${TMPPLIST}.notcl
.endif
+.if defined(WITH_ODBC)
+ @${CP} ${TMPPLIST} ${TMPPLIST}.noodbc
+ @${CAT} ${PKGDIR}/PLIST.odbc ${TMPPLIST}.noodbc > ${TMPPLIST}
+ @${RM} ${TMPPLIST}.noodbc
+.endif
.if defined(WITH_JDBC)
@ ${MKDIR} -m 0555 ${PREFIX}/share/java/classes
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/postgresql.jar \