| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.5 2021/02/15 18:58:39 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.6 2021/02/19 13:25:39 joerg Exp $ |
2 | | | 2 | |
3 | PKGNAME= ${DISTNAME:S/-/13-client-/} | | 3 | PKGNAME= ${DISTNAME:S/-/13-client-/} |
4 | COMMENT= PostgreSQL database client programs | | 4 | COMMENT= PostgreSQL database client programs |
5 | | | 5 | |
6 | .include "../../databases/postgresql13/Makefile.common" | | 6 | .include "../../databases/postgresql13/Makefile.common" |
7 | | | 7 | |
8 | USE_TOOLS+= gzip msgfmt tar | | 8 | USE_TOOLS+= gzip msgfmt tar |
9 | TOOLS_BROKEN+= perl | | 9 | TOOLS_BROKEN+= perl |
10 | CONFIGURE_ARGS+= --with-openssl | | 10 | CONFIGURE_ARGS+= --with-openssl |
11 | CONFIGURE_ARGS+= --with-zlib | | 11 | CONFIGURE_ARGS+= --with-zlib |
12 | | | 12 | |
13 | # Override INSTALL script to avoid unprivileged user/group | | 13 | # Override INSTALL script to avoid unprivileged user/group |
14 | # leaking into the binary package | | 14 | # leaking into the binary package |
| @@ -29,32 +29,33 @@ PGSQL_THREAD_SAFETY?= no | | | @@ -29,32 +29,33 @@ PGSQL_THREAD_SAFETY?= no |
29 | .endif | | 29 | .endif |
30 | PGSQL_THREAD_SAFETY?= yes | | 30 | PGSQL_THREAD_SAFETY?= yes |
31 | BUILD_DEFS+= PGSQL_THREAD_SAFETY | | 31 | BUILD_DEFS+= PGSQL_THREAD_SAFETY |
32 | | | 32 | |
33 | .if !empty(PGSQL_THREAD_SAFETY:M[yY][eE][sS]) | | 33 | .if !empty(PGSQL_THREAD_SAFETY:M[yY][eE][sS]) |
34 | . include "../../mk/pthread.buildlink3.mk" | | 34 | . include "../../mk/pthread.buildlink3.mk" |
35 | . if (${PTHREAD_TYPE} == "native") | | 35 | . if (${PTHREAD_TYPE} == "native") |
36 | CONFIGURE_ARGS+= --enable-thread-safety | | 36 | CONFIGURE_ARGS+= --enable-thread-safety |
37 | . endif | | 37 | . endif |
38 | .else | | 38 | .else |
39 | CONFIGURE_ARGS+= --disable-thread-safety | | 39 | CONFIGURE_ARGS+= --disable-thread-safety |
40 | .endif | | 40 | .endif |
41 | | | 41 | |
| | | 42 | BUILD_DIRS+= src/fe_utils |
42 | INSTALL_DIRS= src/include | | 43 | INSTALL_DIRS= src/include |
43 | INSTALL_DIRS+= src/common | | 44 | INSTALL_DIRS+= src/common |
44 | INSTALL_DIRS+= src/port | | 45 | INSTALL_DIRS+= src/port |
45 | INSTALL_DIRS+= src/interfaces | | 46 | INSTALL_DIRS+= src/interfaces |
46 | INSTALL_DIRS+= src/bin | | 47 | INSTALL_DIRS+= src/bin |
47 | BUILD_DIRS= ${INSTALL_DIRS} | | 48 | BUILD_DIRS+= ${INSTALL_DIRS} |
48 | # Without this, the Darwin build fails (related to -bundle_loader). | | 49 | # Without this, the Darwin build fails (related to -bundle_loader). |
49 | BUILD_DIRS+= src/backend | | 50 | BUILD_DIRS+= src/backend |
50 | | | 51 | |
51 | .for f in pg_service.conf psqlrc | | 52 | .for f in pg_service.conf psqlrc |
52 | CONF_FILES+= share/postgresql/${f}.sample ${PKG_SYSCONFDIR}/${f} | | 53 | CONF_FILES+= share/postgresql/${f}.sample ${PKG_SYSCONFDIR}/${f} |
53 | .endfor | | 54 | .endfor |
54 | | | 55 | |
55 | .include "../../devel/zlib/buildlink3.mk" | | 56 | .include "../../devel/zlib/buildlink3.mk" |
56 | .include "../../security/openssl/buildlink3.mk" | | 57 | .include "../../security/openssl/buildlink3.mk" |
57 | | | 58 | |
58 | SUBST_CLASSES+= pgxs | | 59 | SUBST_CLASSES+= pgxs |
59 | SUBST_STAGE.pgxs= post-build | | 60 | SUBST_STAGE.pgxs= post-build |
60 | SUBST_MESSAGE.pgxs= Fixing workdir tools references in pgxs Makefile | | 61 | SUBST_MESSAGE.pgxs= Fixing workdir tools references in pgxs Makefile |