| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.17 2014/08/10 15:11:57 adam Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.18 2014/09/24 10:02:14 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.20 | | 6 | DISTNAME= mysql-5.6.20 |
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= http://www.mysql.com/ | | 11 | HOMEPAGE= http://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 |
| @@ -77,29 +77,31 @@ CFLAGS+= -march=i486 | | | @@ -77,29 +77,31 @@ CFLAGS+= -march=i486 |
77 | .if !empty(ABI) | | 77 | .if !empty(ABI) |
78 | CMAKE_ARGS+= -DDTRACE_FLAGS="-${ABI}" | | 78 | CMAKE_ARGS+= -DDTRACE_FLAGS="-${ABI}" |
79 | .endif | | 79 | .endif |
80 | | | 80 | |
81 | CPPFLAGS+= -Dunix | | 81 | CPPFLAGS+= -Dunix |
82 | CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat | | 82 | CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat |
83 | CFLAGS+= -D__STDC_FORMAT_MACROS=1 # always defined too late | | 83 | CFLAGS+= -D__STDC_FORMAT_MACROS=1 # always defined too late |
84 | | | 84 | |
85 | .if ${OPSYS} != "Interix" | | 85 | .if ${OPSYS} != "Interix" |
86 | CFLAGS+= -fPIC -DPIC | | 86 | CFLAGS+= -fPIC -DPIC |
87 | CXXFLAGS+= -fPIC -DPIC | | 87 | CXXFLAGS+= -fPIC -DPIC |
88 | .endif | | 88 | .endif |
89 | | | 89 | |
90 | # 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 |
91 | # and does not properly detect this, breaking the build later on. | | 91 | # and does not properly detect this, breaking the build later on. Also |
| | | 92 | # explicitly disable epoll support as it is Linux-specific. |
92 | .if ${OPSYS} == "SunOS" | | 93 | .if ${OPSYS} == "SunOS" |
| | | 94 | CMAKE_ARGS+= -DHAVE_SYS_EPOLL_H=NO |
93 | CFLAGS+= -DHAVE_CURSES_H | | 95 | CFLAGS+= -DHAVE_CURSES_H |
94 | CXXFLAGS+= -DHAVE_CURSES_H | | 96 | CXXFLAGS+= -DHAVE_CURSES_H |
95 | .endif | | 97 | .endif |
96 | | | 98 | |
97 | .include "../../mk/pthread.buildlink3.mk" | | 99 | .include "../../mk/pthread.buildlink3.mk" |
98 | | | 100 | |
99 | .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth") | | 101 | .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth") |
100 | CFLAGS+= -DSIGNALS_DONT_BREAK_READ | | 102 | CFLAGS+= -DSIGNALS_DONT_BREAK_READ |
101 | CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ | | 103 | CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ |
102 | .endif | | 104 | .endif |
103 | | | 105 | |
104 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql | | 106 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql |
105 | | | 107 | |