| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.19 2011/09/27 11:03:59 adam Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.20 2011/10/12 19:43:26 hans Exp $ |
2 | # | | 2 | # |
3 | # used by databases/postgresql83-adminpack/Makefile | | 3 | # used by databases/postgresql83-adminpack/Makefile |
4 | # used by databases/postgresql83-client/Makefile | | 4 | # used by databases/postgresql83-client/Makefile |
5 | # used by databases/postgresql83-plperl/Makefile | | 5 | # used by databases/postgresql83-plperl/Makefile |
6 | # used by databases/postgresql83-plpython/Makefile | | 6 | # used by databases/postgresql83-plpython/Makefile |
7 | # used by databases/postgresql83-pltcl/Makefile | | 7 | # used by databases/postgresql83-pltcl/Makefile |
8 | # used by databases/postgresql83-server/Makefile | | 8 | # used by databases/postgresql83-server/Makefile |
9 | # | | 9 | # |
10 | # This Makefile fragment is included by all PostgreSQL packages built from | | 10 | # This Makefile fragment is included by all PostgreSQL packages built from |
11 | # the main sources of the PostgreSQL distribution except jdbc-postgresql. | | 11 | # the main sources of the PostgreSQL distribution except jdbc-postgresql. |
12 | # | | 12 | # |
13 | # The PostgreSQL package naming scheme, aside from the obvious piecewise | | 13 | # The PostgreSQL package naming scheme, aside from the obvious piecewise |
14 | # packages, is as follows: | | 14 | # packages, is as follows: |
| @@ -37,50 +37,53 @@ PATCHDIR?= ${.CURDIR}/../postgresql83/p | | | @@ -37,50 +37,53 @@ PATCHDIR?= ${.CURDIR}/../postgresql83/p |
37 | | | 37 | |
38 | USE_PKGLOCALEDIR= yes | | 38 | USE_PKGLOCALEDIR= yes |
39 | USE_TOOLS+= bison gmake lex msgfmt | | 39 | USE_TOOLS+= bison gmake lex msgfmt |
40 | PKG_SYSCONFSUBDIR= postgresql | | 40 | PKG_SYSCONFSUBDIR= postgresql |
41 | | | 41 | |
42 | .include "../../mk/bsd.prefs.mk" | | 42 | .include "../../mk/bsd.prefs.mk" |
43 | | | 43 | |
44 | PG_TEMPLATE.SunOS= solaris | | 44 | PG_TEMPLATE.SunOS= solaris |
45 | PG_TEMPLATE.IRIX= irix5 | | 45 | PG_TEMPLATE.IRIX= irix5 |
46 | .if !defined(PG_TEMPLATE.${OPSYS}) | | 46 | .if !defined(PG_TEMPLATE.${OPSYS}) |
47 | PG_TEMPLATE.${OPSYS}= ${LOWER_OPSYS} | | 47 | PG_TEMPLATE.${OPSYS}= ${LOWER_OPSYS} |
48 | .endif | | 48 | .endif |
49 | | | 49 | |
| | | 50 | PKGLOCALEDIR= share |
| | | 51 | |
50 | GNU_CONFIGURE= yes | | 52 | GNU_CONFIGURE= yes |
51 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 53 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
52 | CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql | | 54 | CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql |
53 | CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/postgresql | | 55 | CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/postgresql |
54 | CONFIGURE_ARGS+= --with-template=${PG_TEMPLATE.${OPSYS}} | | 56 | CONFIGURE_ARGS+= --with-template=${PG_TEMPLATE.${OPSYS}} |
55 | | | 57 | |
56 | CONFIGURE_ARGS+= --enable-nls | | 58 | CONFIGURE_ARGS+= --enable-nls |
57 | CONFIGURE_ARGS+= --without-perl | | 59 | CONFIGURE_ARGS+= --without-perl |
58 | CONFIGURE_ARGS+= --without-python | | 60 | CONFIGURE_ARGS+= --without-python |
59 | CONFIGURE_ARGS+= --without-readline | | 61 | CONFIGURE_ARGS+= --without-readline |
60 | CONFIGURE_ARGS+= --without-tcl | | 62 | CONFIGURE_ARGS+= --without-tcl |
61 | CONFIGURE_ARGS+= --without-zlib | | 63 | CONFIGURE_ARGS+= --without-zlib |
62 | | | 64 | |
63 | # PostgreSQL explicitly forbids any use of -ffast-math | | 65 | # PostgreSQL explicitly forbids any use of -ffast-math |
64 | BUILDLINK_TRANSFORM+= rm:-ffast-math | | 66 | BUILDLINK_TRANSFORM+= rm:-ffast-math |
65 | | | 67 | |
66 | # USE_LIBLTDL is "yes" or "no" depending on whether we're using libltdl | | 68 | # USE_LIBLTDL is "yes" or "no" depending on whether we're using libltdl |
67 | # to provide "dlopen" functionality for the PostgreSQL backend. | | 69 | # to provide "dlopen" functionality for the PostgreSQL backend. |
68 | .if ${OPSYS} == "Interix" | | 70 | .if ${OPSYS} == "Interix" |
69 | USE_LIBLTDL?= yes | | 71 | USE_LIBLTDL?= yes |
70 | .endif | | 72 | .endif |
71 | USE_LIBLTDL?= no | | 73 | USE_LIBLTDL?= no |
72 | | | 74 | |
73 | .include "../../devel/gettext-lib/buildlink3.mk" | | 75 | .include "../../devel/gettext-lib/buildlink3.mk" |
| | | 76 | LIBS.SunOS+= -lintl |
74 | | | 77 | |
75 | .if !defined(META_PACKAGE) | | 78 | .if !defined(META_PACKAGE) |
76 | post-extract: | | 79 | post-extract: |
77 | . if !empty(USE_LIBLTDL:M[yY][eE][sS]) | | 80 | . if !empty(USE_LIBLTDL:M[yY][eE][sS]) |
78 | cp -f ${COMMON_FILESDIR}/dynloader-ltdl.h \ | | 81 | cp -f ${COMMON_FILESDIR}/dynloader-ltdl.h \ |
79 | ${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.h | | 82 | ${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.h |
80 | ${ECHO} "static int dummy = 0;" \ | | 83 | ${ECHO} "static int dummy = 0;" \ |
81 | > ${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.c | | 84 | > ${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.c |
82 | . endif | | 85 | . endif |
83 | touch ${WRKSRC}/src/template/dragonfly | | 86 | touch ${WRKSRC}/src/template/dragonfly |
84 | cp ${WRKSRC}/src/backend/port/dynloader/freebsd.c \ | | 87 | cp ${WRKSRC}/src/backend/port/dynloader/freebsd.c \ |
85 | ${WRKSRC}/src/backend/port/dynloader/dragonfly.c | | 88 | ${WRKSRC}/src/backend/port/dynloader/dragonfly.c |
86 | cp ${WRKSRC}/src/backend/port/dynloader/freebsd.h \ | | 89 | cp ${WRKSRC}/src/backend/port/dynloader/freebsd.h \ |