| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.15 2011/09/27 11:04:30 adam Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.16 2011/10/12 19:44:51 hans Exp $ |
2 | # | | 2 | # |
3 | # used by databases/postgresql84-adminpack/Makefile | | 3 | # used by databases/postgresql84-adminpack/Makefile |
4 | # used by databases/postgresql84-client/Makefile | | 4 | # used by databases/postgresql84-client/Makefile |
5 | # used by databases/postgresql84-dblink/Makefile | | 5 | # used by databases/postgresql84-dblink/Makefile |
6 | # used by databases/postgresql84-pgcrypto/Makefile | | 6 | # used by databases/postgresql84-pgcrypto/Makefile |
7 | # used by databases/postgresql84-plperl/Makefile | | 7 | # used by databases/postgresql84-plperl/Makefile |
8 | # used by databases/postgresql84-plpython/Makefile | | 8 | # used by databases/postgresql84-plpython/Makefile |
9 | # used by databases/postgresql84-pltcl/Makefile | | 9 | # used by databases/postgresql84-pltcl/Makefile |
10 | # used by databases/postgresql84-server/Makefile | | 10 | # used by databases/postgresql84-server/Makefile |
11 | # | | 11 | # |
12 | # This Makefile fragment is included by all PostgreSQL packages built from | | 12 | # This Makefile fragment is included by all PostgreSQL packages built from |
13 | # the main sources of the PostgreSQL distribution except jdbc-postgresql. | | 13 | # the main sources of the PostgreSQL distribution except jdbc-postgresql. |
14 | # | | 14 | # |
| @@ -72,26 +72,27 @@ CONFIGURE_ARGS+= --with-blocksize=${PGSQ | | | @@ -72,26 +72,27 @@ CONFIGURE_ARGS+= --with-blocksize=${PGSQ |
72 | .endif | | 72 | .endif |
73 | | | 73 | |
74 | # PostgreSQL explicitly forbids any use of -ffast-math | | 74 | # PostgreSQL explicitly forbids any use of -ffast-math |
75 | BUILDLINK_TRANSFORM+= rm:-ffast-math | | 75 | BUILDLINK_TRANSFORM+= rm:-ffast-math |
76 | | | 76 | |
77 | # USE_LIBLTDL is "yes" or "no" depending on whether we're using libltdl | | 77 | # USE_LIBLTDL is "yes" or "no" depending on whether we're using libltdl |
78 | # to provide "dlopen" functionality for the PostgreSQL backend. | | 78 | # to provide "dlopen" functionality for the PostgreSQL backend. |
79 | .if ${OPSYS} == "Interix" | | 79 | .if ${OPSYS} == "Interix" |
80 | USE_LIBLTDL?= yes | | 80 | USE_LIBLTDL?= yes |
81 | .endif | | 81 | .endif |
82 | USE_LIBLTDL?= no | | 82 | USE_LIBLTDL?= no |
83 | | | 83 | |
84 | .include "../../devel/gettext-lib/buildlink3.mk" | | 84 | .include "../../devel/gettext-lib/buildlink3.mk" |
| | | 85 | LIBS.SunOS+= -lintl |
85 | | | 86 | |
86 | .if !defined(META_PACKAGE) | | 87 | .if !defined(META_PACKAGE) |
87 | post-extract: | | 88 | post-extract: |
88 | . if !empty(USE_LIBLTDL:M[yY][eE][sS]) | | 89 | . if !empty(USE_LIBLTDL:M[yY][eE][sS]) |
89 | cp -f ${COMMON_FILESDIR}/dynloader-ltdl.h \ | | 90 | cp -f ${COMMON_FILESDIR}/dynloader-ltdl.h \ |
90 | ${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.h | | 91 | ${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.h |
91 | ${ECHO} "static int dummy = 0;" \ | | 92 | ${ECHO} "static int dummy = 0;" \ |
92 | > ${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.c | | 93 | > ${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.c |
93 | . endif | | 94 | . endif |
94 | touch ${WRKSRC}/src/template/dragonfly | | 95 | touch ${WRKSRC}/src/template/dragonfly |
95 | cp ${WRKSRC}/src/backend/port/dynloader/freebsd.c \ | | 96 | cp ${WRKSRC}/src/backend/port/dynloader/freebsd.c \ |
96 | ${WRKSRC}/src/backend/port/dynloader/dragonfly.c | | 97 | ${WRKSRC}/src/backend/port/dynloader/dragonfly.c |
97 | cp ${WRKSRC}/src/backend/port/dynloader/freebsd.h \ | | 98 | cp ${WRKSRC}/src/backend/port/dynloader/freebsd.h \ |