| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.8 2019/10/25 04:39:18 triaxx Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.9 2019/10/25 08:00:46 triaxx Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is included by all PostgreSQL packages built from | | 3 | # This Makefile fragment is included by all PostgreSQL packages built from |
4 | # the main sources of the PostgreSQL distribution except jdbc-postgresql. | | 4 | # the main sources of the PostgreSQL distribution except jdbc-postgresql. |
5 | # | | 5 | # |
6 | # The PostgreSQL package naming scheme, aside from the obvious piecewise | | 6 | # The PostgreSQL package naming scheme, aside from the obvious piecewise |
7 | # packages, is as follows: | | 7 | # packages, is as follows: |
8 | # <lang>-postgresql client-side interface to PostgreSQL | | 8 | # <lang>-postgresql client-side interface to PostgreSQL |
9 | # postgresql-<lang> server-side module for PostgreSQL backend | | 9 | # postgresql-<lang> server-side module for PostgreSQL backend |
10 | # | | 10 | # |
11 | # used by databases/postgresql11-client/Makefile | | 11 | # used by databases/postgresql11-client/Makefile |
12 | # used by databases/postgresql11-contrib/Makefile | | 12 | # used by databases/postgresql11-contrib/Makefile |
13 | # used by databases/postgresql11-docs/Makefile | | 13 | # used by databases/postgresql11-docs/Makefile |
14 | # used by databases/postgresql11-plperl/Makefile | | 14 | # used by databases/postgresql11-plperl/Makefile |
| @@ -27,27 +27,26 @@ LICENSE= postgresql-license | | | @@ -27,27 +27,26 @@ LICENSE= postgresql-license |
27 | | | 27 | |
28 | CONFLICTS+= postgresql-[0-9]* | | 28 | CONFLICTS+= postgresql-[0-9]* |
29 | CONFLICTS+= postgresql[2-9][0-9]-[0-9]* | | 29 | CONFLICTS+= postgresql[2-9][0-9]-[0-9]* |
30 | | | 30 | |
31 | .if !empty(PKGNAME:M*-*-*) | | 31 | .if !empty(PKGNAME:M*-*-*) |
32 | module= ${PKGNAME:C/-[0-9].*$//:C/^.*-//} | | 32 | module= ${PKGNAME:C/-[0-9].*$//:C/^.*-//} |
33 | CONFLICTS+= postgresql[2-9][0-9]-${module}-[0-9]* | | 33 | CONFLICTS+= postgresql[2-9][0-9]-${module}-[0-9]* |
34 | .endif | | 34 | .endif |
35 | | | 35 | |
36 | DISTINFO_FILE?= ${.CURDIR}/../../databases/postgresql11/distinfo | | 36 | DISTINFO_FILE?= ${.CURDIR}/../../databases/postgresql11/distinfo |
37 | COMMON_FILESDIR?= ${.CURDIR}/../../databases/postgresql11/files | | 37 | COMMON_FILESDIR?= ${.CURDIR}/../../databases/postgresql11/files |
38 | PATCHDIR?= ${.CURDIR}/../../databases/postgresql11/patches | | 38 | PATCHDIR?= ${.CURDIR}/../../databases/postgresql11/patches |
39 | | | 39 | |
40 | USE_PKGLOCALEDIR= yes | | | |
41 | USE_TOOLS+= bison gmake lex | | 40 | USE_TOOLS+= bison gmake lex |
42 | PKG_SYSCONFSUBDIR= postgresql | | 41 | PKG_SYSCONFSUBDIR= postgresql |
43 | | | 42 | |
44 | .include "../../mk/bsd.prefs.mk" | | 43 | .include "../../mk/bsd.prefs.mk" |
45 | | | 44 | |
46 | PG_TEMPLATE.SunOS= solaris | | 45 | PG_TEMPLATE.SunOS= solaris |
47 | PG_TEMPLATE.IRIX= irix5 | | 46 | PG_TEMPLATE.IRIX= irix5 |
48 | PG_TEMPLATE.MirBSD= openbsd | | 47 | PG_TEMPLATE.MirBSD= openbsd |
49 | .if !defined(PG_TEMPLATE.${OPSYS}) | | 48 | .if !defined(PG_TEMPLATE.${OPSYS}) |
50 | PG_TEMPLATE.${OPSYS}= ${LOWER_OPSYS} | | 49 | PG_TEMPLATE.${OPSYS}= ${LOWER_OPSYS} |
51 | .endif | | 50 | .endif |
52 | | | 51 | |
53 | PG_DATA_DIR= ${PREFIX}/share/postgresql | | 52 | PG_DATA_DIR= ${PREFIX}/share/postgresql |
| @@ -58,29 +57,26 @@ PG_ETC_DIR= ${PKG_SYSCONFDIR} | | | @@ -58,29 +57,26 @@ PG_ETC_DIR= ${PKG_SYSCONFDIR} |
58 | GNU_CONFIGURE= yes | | 57 | GNU_CONFIGURE= yes |
59 | CONFIGURE_ARGS+= --sysconfdir=${PG_ETC_DIR} | | 58 | CONFIGURE_ARGS+= --sysconfdir=${PG_ETC_DIR} |
60 | CONFIGURE_ARGS+= --datadir=${PG_DATA_DIR} | | 59 | CONFIGURE_ARGS+= --datadir=${PG_DATA_DIR} |
61 | CONFIGURE_ARGS+= --docdir=${PG_DOC_DIR} | | 60 | CONFIGURE_ARGS+= --docdir=${PG_DOC_DIR} |
62 | CONFIGURE_ARGS+= --localedir=${PG_LOCALE_DIR} | | 61 | CONFIGURE_ARGS+= --localedir=${PG_LOCALE_DIR} |
63 | CONFIGURE_ARGS+= --with-template=${PG_TEMPLATE.${OPSYS}} | | 62 | CONFIGURE_ARGS+= --with-template=${PG_TEMPLATE.${OPSYS}} |
64 | | | 63 | |
65 | CONFIGURE_ARGS+= --with-libxml | | 64 | CONFIGURE_ARGS+= --with-libxml |
66 | CONFIGURE_ARGS+= --with-readline | | 65 | CONFIGURE_ARGS+= --with-readline |
67 | CONFIGURE_ARGS+= --without-perl | | 66 | CONFIGURE_ARGS+= --without-perl |
68 | CONFIGURE_ARGS+= --without-python | | 67 | CONFIGURE_ARGS+= --without-python |
69 | CONFIGURE_ARGS+= --without-tcl | | 68 | CONFIGURE_ARGS+= --without-tcl |
70 | | | 69 | |
71 | # avoid pointing to a wrapper | | | |
72 | CONFIGURE_ENV+= MSGFMT=${TOOLS_PATH.msgfmt} | | | |
73 | | | | |
74 | # sys/ucred.h shouldn't be included on Solaris, causes conflicts between | | 70 | # sys/ucred.h shouldn't be included on Solaris, causes conflicts between |
75 | # procfs and largefile. | | 71 | # procfs and largefile. |
76 | CONFIGURE_ENV.SunOS+= ac_cv_header_sys_ucred_h=no | | 72 | CONFIGURE_ENV.SunOS+= ac_cv_header_sys_ucred_h=no |
77 | | | 73 | |
78 | # pkgsrc silently filters the --as-needed linker arg, but that makes | | 74 | # pkgsrc silently filters the --as-needed linker arg, but that makes |
79 | # it leak into the pgxs Makefiles and compromises manual building | | 75 | # it leak into the pgxs Makefiles and compromises manual building |
80 | # against PostgreSQL files installed. Disable it here to prevent | | 76 | # against PostgreSQL files installed. Disable it here to prevent |
81 | # that from happening. | | 77 | # that from happening. |
82 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" | | 78 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" |
83 | CONFIGURE_ENV+= pgac_cv_prog_cc_ldflags__Wl___as_needed=no | | 79 | CONFIGURE_ENV+= pgac_cv_prog_cc_ldflags__Wl___as_needed=no |
84 | .endif | | 80 | .endif |
85 | | | 81 | |
86 | # configure fails on OpenBSD and MirBSD if thread safety is enabled. | | 82 | # configure fails on OpenBSD and MirBSD if thread safety is enabled. |