From 6926b1508a9c2e6ea888627aafe7cc67f2e4c5fb Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 21 Jan 2005 03:15:52 +0000 Subject: Give interix3 a build template. --- databases/postgresql74/Makefile.common | 15 +++++++++++---- databases/postgresql74/files/interix3.template | 6 ++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 databases/postgresql74/files/interix3.template diff --git a/databases/postgresql74/Makefile.common b/databases/postgresql74/Makefile.common index 817855e75d9..99e0d26be95 100644 --- a/databases/postgresql74/Makefile.common +++ b/databases/postgresql74/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.16 2004/12/20 13:16:02 grant Exp $ +# $NetBSD: Makefile.common,v 1.17 2005/01/21 03:15:52 tv Exp $ # # This Makefile fragment is included by all PostgreSQL packages built from # the main sources of the PostgreSQL distribution except jdbc-postgresql. @@ -93,6 +93,13 @@ post-extract: ${CP} -f ${COMMON_FILESDIR}/Makefile.custom \ ${WRKSRC}/src/Makefile.custom; \ fi +.for platform in interix3 + if [ -d ${WRKSRC}/src/template ]; then \ + ${RM} -f ${WRKSRC}/src/template/${platform}; \ + ${CP} -f ${COMMON_FILESDIR}/${platform}.template \ + ${WRKSRC}/src/template/${platform}; \ + fi +.endfor if [ -d ${WRKSRC}/src/interfaces/libpq ]; then \ ${RM} -f ${WRKSRC}/src/interfaces/libpq/GNUmakefile; \ ${CP} -f ${COMMON_FILESDIR}/GNUmakefile.libpq \ @@ -104,9 +111,9 @@ post-extract: ${WRKSRC}/src/interfaces/libpgtcl/GNUmakefile; \ fi if [ -d ${WRKSRC}/src/backend/port/dynloader ]; then \ - ${RM} -f ${WRKSRC}/src/backend/port/dynloader/netbsd.[ch];\ - ${CP} -f ${COMMON_FILESDIR}/netbsd.[ch] \ - ${WRKSRC}/src/backend/port/dynloader/; \ + ${RM} -f ${WRKSRC}/src/backend/port/dynloader/netbsd.[ch]; \ + ${CP} -f ${COMMON_FILESDIR}/netbsd.[ch] \ + ${WRKSRC}/src/backend/port/dynloader/; \ fi .include "../../devel/gettext-lib/buildlink3.mk" diff --git a/databases/postgresql74/files/interix3.template b/databases/postgresql74/files/interix3.template new file mode 100644 index 00000000000..2a6cdf01c78 --- /dev/null +++ b/databases/postgresql74/files/interix3.template @@ -0,0 +1,6 @@ +# $NetBSD: interix3.template,v 1.1 2005/01/21 03:15:52 tv Exp $ + +THREAD_SUPPORT=yes +THREAD_CPPFLAGS="-D_REENTRANT" +THREAD_LIBS="-lpthread" +NEED_REENTRANT_FUNCS=yes -- cgit v1.2.3