| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.44 2018/01/16 16:27:12 adam Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.45 2018/02/01 23:01:19 jperkin 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.39 | | 6 | DISTNAME= mysql-5.6.39 |
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 |
| @@ -75,26 +75,28 @@ CFLAGS+= -march=i486 | | | @@ -75,26 +75,28 @@ CFLAGS+= -march=i486 |
75 | .if !empty(ABI) | | 75 | .if !empty(ABI) |
76 | CMAKE_ARGS+= -DDTRACE_FLAGS="-${ABI}" | | 76 | CMAKE_ARGS+= -DDTRACE_FLAGS="-${ABI}" |
77 | .endif | | 77 | .endif |
78 | | | 78 | |
79 | CPPFLAGS+= -Dunix | | 79 | CPPFLAGS+= -Dunix |
80 | CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat | | 80 | CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat |
81 | CFLAGS+= -D__STDC_FORMAT_MACROS=1 # always defined too late | | 81 | CFLAGS+= -D__STDC_FORMAT_MACROS=1 # always defined too late |
82 | | | 82 | |
83 | .if ${OPSYS} != "Interix" | | 83 | .if ${OPSYS} != "Interix" |
84 | CFLAGS+= -fPIC -DPIC | | 84 | CFLAGS+= -fPIC -DPIC |
85 | CXXFLAGS+= -fPIC -DPIC | | 85 | CXXFLAGS+= -fPIC -DPIC |
86 | .endif | | 86 | .endif |
87 | | | 87 | |
| | | 88 | CMAKE_ARGS.SunOS+= -DFORCE_UNSUPPORTED_COMPILER=YES |
| | | 89 | |
88 | # Force HAVE_CURSES_H on Solaris since the configure script is broken | | 90 | # Force HAVE_CURSES_H on Solaris since the configure script is broken |
89 | # and does not properly detect this, breaking the build later on. Also | | 91 | # and does not properly detect this, breaking the build later on. Also |
90 | # explicitly disable epoll support as it is Linux-specific. | | 92 | # explicitly disable epoll support as it is Linux-specific. |
91 | CMAKE_ARGS.SunOS+= -DHAVE_SYS_EPOLL_H=NO | | 93 | CMAKE_ARGS.SunOS+= -DHAVE_SYS_EPOLL_H=NO |
92 | CFLAGS.SunOS+= -DHAVE_CURSES_H | | 94 | CFLAGS.SunOS+= -DHAVE_CURSES_H |
93 | CXXFLAGS.SunOS+= -DHAVE_CURSES_H | | 95 | CXXFLAGS.SunOS+= -DHAVE_CURSES_H |
94 | | | 96 | |
95 | .include "../../mk/pthread.buildlink3.mk" | | 97 | .include "../../mk/pthread.buildlink3.mk" |
96 | | | 98 | |
97 | .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth") | | 99 | .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth") |
98 | CFLAGS+= -DSIGNALS_DONT_BREAK_READ | | 100 | CFLAGS+= -DSIGNALS_DONT_BREAK_READ |
99 | CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ | | 101 | CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ |
100 | .endif | | 102 | .endif |