| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.23 2020/03/17 18:33:08 adam Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.24 2020/03/22 20:23:52 rillig Exp $ |
2 | # | | 2 | # |
3 | # used by databases/mysql57-client/Makefile | | 3 | # used by databases/mysql57-client/Makefile |
4 | # used by databases/mysql57-server/Makefile | | 4 | # used by databases/mysql57-server/Makefile |
5 | | | 5 | |
6 | DISTNAME= mysql-5.7.29 | | 6 | DISTNAME= mysql-5.7.29 |
7 | CATEGORIES= databases | | 7 | CATEGORIES= databases |
8 | MASTER_SITES= ${MASTER_SITE_MYSQL:=MySQL-5.7/} | | 8 | MASTER_SITES= ${MASTER_SITE_MYSQL:=MySQL-5.7/} |
9 | | | 9 | |
10 | MAINTAINER?= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER?= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= https://www.mysql.com/ | | 11 | HOMEPAGE= https://www.mysql.com/ |
12 | LICENSE= gnu-gpl-v2 | | 12 | LICENSE= gnu-gpl-v2 |
13 | | | 13 | |
14 | DISTINFO_FILE?= ${.CURDIR}/../../databases/mysql57-client/distinfo | | 14 | DISTINFO_FILE?= ${.CURDIR}/../../databases/mysql57-client/distinfo |
| @@ -105,26 +105,27 @@ CFLAGS+= -DSIGNALS_DONT_BREAK_READ | | | @@ -105,26 +105,27 @@ CFLAGS+= -DSIGNALS_DONT_BREAK_READ |
105 | CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ | | 105 | CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ |
106 | .endif | | 106 | .endif |
107 | | | 107 | |
108 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql | | 108 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql |
109 | | | 109 | |
110 | SUBST_CLASSES+= scr | | 110 | SUBST_CLASSES+= scr |
111 | SUBST_STAGE.scr= pre-configure | | 111 | SUBST_STAGE.scr= pre-configure |
112 | SUBST_FILES.scr= scripts/mysqld_safe.sh | | 112 | SUBST_FILES.scr= scripts/mysqld_safe.sh |
113 | SUBST_FILES.scr+= support-files/mysql.server.sh | | 113 | SUBST_FILES.scr+= support-files/mysql.server.sh |
114 | SUBST_SED.scr= -e "s,chown,${CHOWN},g" | | 114 | SUBST_SED.scr= -e "s,chown,${CHOWN},g" |
115 | SUBST_SED.scr+= -e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g" | | 115 | SUBST_SED.scr+= -e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g" |
116 | SUBST_SED.scr+= -e "s,@SHELL_PATH@,${RCD_SCRIPTS_SHELL},g" | | 116 | SUBST_SED.scr+= -e "s,@SHELL_PATH@,${RCD_SCRIPTS_SHELL},g" |
117 | SUBST_MESSAGE.scr= Fixing scripts. | | 117 | SUBST_MESSAGE.scr= Fixing scripts. |
| | | 118 | SUBST_NOOP_OK.scr= yes # since RCD_SCRIPTS_SHELL may be /bin/sh |
118 | | | 119 | |
119 | # Don't use the base system "libedit" under NetBSD because MySQL expects | | 120 | # Don't use the base system "libedit" under NetBSD because MySQL expects |
120 | # an incompatible prototype for "rl_completion_entry_function". | | 121 | # an incompatible prototype for "rl_completion_entry_function". |
121 | .if ${OPSYS} == "NetBSD" | | 122 | .if ${OPSYS} == "NetBSD" |
122 | USE_BUILTIN.editline= no | | 123 | USE_BUILTIN.editline= no |
123 | .endif | | 124 | .endif |
124 | | | 125 | |
125 | .include "../../mk/readline.buildlink3.mk" | | 126 | .include "../../mk/readline.buildlink3.mk" |
126 | .if ${READLINE_TYPE} == "readline" | | 127 | .if ${READLINE_TYPE} == "readline" |
127 | CMAKE_ARGS+= -DWITH_READLINE="system" | | 128 | CMAKE_ARGS+= -DWITH_READLINE="system" |
128 | .else | | 129 | .else |
129 | CMAKE_ARGS+= -DWITH_EDITLINE="system" | | 130 | CMAKE_ARGS+= -DWITH_EDITLINE="system" |
130 | .endif | | 131 | .endif |