diff options
Diffstat (limited to 'databases/postgresql96-contrib/Makefile')
-rw-r--r-- | databases/postgresql96-contrib/Makefile | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/databases/postgresql96-contrib/Makefile b/databases/postgresql96-contrib/Makefile index 337879ec525..380807fa22f 100644 --- a/databases/postgresql96-contrib/Makefile +++ b/databases/postgresql96-contrib/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.1 2016/10/29 19:41:55 adam Exp $ +# $NetBSD: Makefile,v 1.2 2016/11/23 15:22:48 fhajny Exp $ PKGNAME= ${DISTNAME:C/-/96-contrib-/} +PKGREVISION= 1 COMMENT= Contrib subtree of tools and plug-ins .include "../../databases/postgresql96/Makefile.common" @@ -57,13 +58,21 @@ BUILD_DIRS+= contrib/vacuumlo CONFIGURE_ARGS+= --with-openssl PLIST_VARS+= uuid -.if ${OPSYS} != "Darwin" +.if ${OPSYS:M*BSD} || ${OPSYS} == "Linux" || ${OPSYS} == "SunOS" PLIST.uuid= yes -CONFIGURE_ARGS+= --with-uuid=ossp BUILD_DIRS+= contrib/uuid-ossp -# because global pg_config.h is included, we have to define this -BUILD_MAKE_FLAGS+= PG_CPPFLAGS=-DHAVE_UUID_H -.include "../../devel/ossp-uuid/buildlink3.mk" +. if ${OPSYS:M*BSD} +BUILD_MAKE_FLAGS+= PG_CPPFLAGS="-DHAVE_UUID_H -DHAVE_UUID_BSD -DSHA1_RESULTLEN=20" +CONFIGURE_ARGS+= --with-uuid=bsd +. elif ${OPSYS} == "Linux" +BUILD_MAKE_FLAGS+= PG_CPPFLAGS="-DHAVE_UUID_UUID_H -DHAVE_UUID_E2FS" +CONFIGURE_ARGS+= --with-uuid=e2fs +. elif ${OPSYS} == "SunOS" +BUILD_MAKE_FLAGS+= PG_CPPFLAGS="-DHAVE_UUID_H -DHAVE_UUID_OSSP" +CONFIGURE_ARGS+= --with-uuid=ossp +BUILD_MAKE_FLAGS+= UUID_LIBS=-lossp-uuid +. include "../../devel/ossp-uuid/buildlink3.mk" +. endif .endif PRINT_PLIST_AWK+= {if ($$0 ~ /uuid-ossp/) {$$0 = "$${PLIST.uuid}" $$0;}} |