| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.55 2020/03/22 20:12:14 rillig Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.56 2020/05/12 19:44:27 rillig Exp $ |
2 | # | | 2 | # |
3 | # used by databases/mysql56-client/Makefile | | 3 | # used by databases/mysql56-client/Makefile |
4 | # used by databases/mysql56-server/Makefile | | 4 | # used by databases/mysql56-server/Makefile |
5 | | | 5 | |
6 | DISTNAME= mysql-5.6.47 | | 6 | DISTNAME= mysql-5.6.47 |
7 | CATEGORIES= databases | | 7 | CATEGORIES= databases |
8 | MASTER_SITES= ${MASTER_SITE_MYSQL:=MySQL-5.6/} | | 8 | MASTER_SITES= ${MASTER_SITE_MYSQL:=MySQL-5.6/} |
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/mysql56-client/distinfo | | 14 | DISTINFO_FILE?= ${.CURDIR}/../../databases/mysql56-client/distinfo |
| @@ -115,26 +115,27 @@ SUBST_FILES.scr+= scripts/mysqld_safe.sh | | | @@ -115,26 +115,27 @@ SUBST_FILES.scr+= scripts/mysqld_safe.sh |
115 | SUBST_FILES.scr+= support-files/mysql.server.sh | | 115 | SUBST_FILES.scr+= support-files/mysql.server.sh |
116 | SUBST_SED.scr= -e "s,chown,${CHOWN},g" | | 116 | SUBST_SED.scr= -e "s,chown,${CHOWN},g" |
117 | SUBST_SED.scr+= -e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g" | | 117 | SUBST_SED.scr+= -e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g" |
118 | SUBST_SED.scr+= -e "s,@SHELL_PATH@,${RCD_SCRIPTS_SHELL},g" | | 118 | SUBST_SED.scr+= -e "s,@SHELL_PATH@,${RCD_SCRIPTS_SHELL},g" |
119 | SUBST_MESSAGE.scr= Fixing scripts. | | 119 | SUBST_MESSAGE.scr= Fixing scripts. |
120 | SUBST_NOOP_OK.scr= yes # since RCD_SCRIPTS_SHELL may be /bin/sh | | 120 | SUBST_NOOP_OK.scr= yes # since RCD_SCRIPTS_SHELL may be /bin/sh |
121 | | | 121 | |
122 | SUBST_CLASSES+= fixpaths | | 122 | SUBST_CLASSES+= fixpaths |
123 | SUBST_STAGE.fixpaths= post-install | | 123 | SUBST_STAGE.fixpaths= post-install |
124 | SUBST_FILES.fixpaths= ${DESTDIR}${PREFIX}/bin/mysqlbug | | 124 | SUBST_FILES.fixpaths= ${DESTDIR}${PREFIX}/bin/mysqlbug |
125 | SUBST_FILES.fixpaths+= ${DESTDIR}${PREFIX}/share/doc/mysql/INFO_BIN | | 125 | SUBST_FILES.fixpaths+= ${DESTDIR}${PREFIX}/share/doc/mysql/INFO_BIN |
126 | SUBST_SED.fixpaths= -e "s,${WRAPPER_BINDIR}/gcc,${CCPATH},g" | | 126 | SUBST_SED.fixpaths= -e "s,${WRAPPER_BINDIR}/gcc,${CCPATH},g" |
127 | SUBST_SED.fixpaths+= -e "s,${WRAPPER_BINDIR}/g++,${CXXPATH},g" | | 127 | SUBST_SED.fixpaths+= -e "s,${WRAPPER_BINDIR}/g++,${CXXPATH},g" |
| | | 128 | SUBST_NOOP_OK.fixpaths= yes # not needed for mysql-client-5.6.47 on NetBSD |
128 | | | 129 | |
129 | # Don't use the base system "libedit" under NetBSD because MySQL expects | | 130 | # Don't use the base system "libedit" under NetBSD because MySQL expects |
130 | # an incompatible prototype for "rl_completion_entry_function". | | 131 | # an incompatible prototype for "rl_completion_entry_function". |
131 | .if ${OPSYS} == "NetBSD" | | 132 | .if ${OPSYS} == "NetBSD" |
132 | USE_BUILTIN.editline= no | | 133 | USE_BUILTIN.editline= no |
133 | .endif | | 134 | .endif |
134 | | | 135 | |
135 | .include "../../mk/readline.buildlink3.mk" | | 136 | .include "../../mk/readline.buildlink3.mk" |
136 | .if ${READLINE_TYPE} == "readline" | | 137 | .if ${READLINE_TYPE} == "readline" |
137 | CMAKE_ARGS+= -DWITH_READLINE="system" | | 138 | CMAKE_ARGS+= -DWITH_READLINE="system" |
138 | .else | | 139 | .else |
139 | CMAKE_ARGS+= -DWITH_EDITLINE="system" | | 140 | CMAKE_ARGS+= -DWITH_EDITLINE="system" |
140 | .endif | | 141 | .endif |