| @@ -1,32 +1,38 @@ | | | @@ -1,32 +1,38 @@ |
1 | # $NetBSD: Makefile,v 1.10 2014/04/01 13:51:56 fhajny Exp $ | | 1 | # $NetBSD: Makefile,v 1.11 2018/02/12 17:06:58 jperkin Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= libmemcached-1.0.18 | | 4 | DISTNAME= libmemcached-1.0.18 |
5 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
6 | MASTER_SITES= http://launchpad.net/libmemcached/1.0/${PKGVERSION_NOREV}/+download/ | | 6 | MASTER_SITES= http://launchpad.net/libmemcached/1.0/${PKGVERSION_NOREV}/+download/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://libmemcached.org/ | | 9 | HOMEPAGE= http://libmemcached.org/ |
10 | COMMENT= C/C++ client library and tools for the memcached server | | 10 | COMMENT= C/C++ client library and tools for the memcached server |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | GNU_CONFIGURE= yes | | 13 | GNU_CONFIGURE= yes |
14 | USE_TOOLS+= pkg-config gmake | | 14 | USE_TOOLS+= pkg-config gmake |
15 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
16 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
17 | | | 17 | |
18 | PKGCONFIG_OVERRIDE+= support/libmemcached.pc.in | | 18 | PKGCONFIG_OVERRIDE+= support/libmemcached.pc.in |
19 | | | 19 | |
| | | 20 | # Let pkgsrc handle security options. |
| | | 21 | CONFIGURE_ENV+= ax_cv_check_cflags__Werror__fPIE=no |
| | | 22 | CONFIGURE_ENV+= ax_cv_check_cflags__Werror__pie=no |
| | | 23 | CONFIGURE_ENV+= ax_cv_check_cxxflags__Werror__fPIE=no |
| | | 24 | CONFIGURE_ENV+= ax_cv_check_cxxflags__Werror__pie=no |
| | | 25 | |
20 | .include "../../mk/bsd.prefs.mk" | | 26 | .include "../../mk/bsd.prefs.mk" |
21 | .include "options.mk" | | 27 | .include "options.mk" |
22 | | | 28 | |
23 | CONFIGURE_ARGS+=--enable-jobserver=no | | 29 | CONFIGURE_ARGS+=--enable-jobserver=no |
24 | | | 30 | |
25 | CPPFLAGS+= -D__STDC_FORMAT_MACROS | | 31 | CPPFLAGS+= -D__STDC_FORMAT_MACROS |
26 | | | 32 | |
27 | LIBS.SunOS+= -lsocket | | 33 | LIBS.SunOS+= -lsocket |
28 | | | 34 | |
29 | # Disable, the configure check is completely broken. | | 35 | # Disable, the configure check is completely broken. |
30 | # Some checks are fixed in the local patches, but not enough to get | | 36 | # Some checks are fixed in the local patches, but not enough to get |
31 | # an actual build running | | 37 | # an actual build running |
32 | .for sanitizer in address integer thread memory alignment bool bounds enum \ | | 38 | .for sanitizer in address integer thread memory alignment bool bounds enum \ |