2020-07-18 01:22:49 +02:00
|
|
|
# $NetBSD: Makefile,v 1.98 2020/07/17 23:22:49 wiz Exp $
|
2003-02-02 18:27:47 +01:00
|
|
|
|
2020-07-18 01:22:49 +02:00
|
|
|
DISTNAME= libgcrypt-1.8.6
|
2003-02-02 18:27:47 +01:00
|
|
|
CATEGORIES= security
|
2019-09-02 14:10:54 +02:00
|
|
|
MASTER_SITES= https://gnupg.org/ftp/gcrypt/libgcrypt/
|
2008-10-14 13:33:13 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2003-02-02 18:27:47 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2019-09-02 14:10:54 +02:00
|
|
|
HOMEPAGE= https://gnupg.org/software/libgcrypt/
|
2003-05-13 05:07:10 +02:00
|
|
|
COMMENT= GNU cryptographic library
|
2009-12-15 11:40:11 +01:00
|
|
|
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
|
2003-02-02 18:27:47 +01:00
|
|
|
|
2005-01-14 12:26:34 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-04-29 17:03:47 +02:00
|
|
|
|
2005-01-14 12:26:34 +01:00
|
|
|
TEST_TARGET= check
|
2003-02-02 18:27:47 +01:00
|
|
|
|
|
|
|
TEXINFO_REQD= 4.0
|
2017-12-14 09:49:54 +01:00
|
|
|
INFO_FILES= yes
|
2003-02-02 18:27:47 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2016-05-15 09:39:12 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
2003-02-02 18:27:47 +01:00
|
|
|
|
2004-02-10 01:13:24 +01:00
|
|
|
.if empty(MACHINE_PLATFORM:MNetBSD-*-i386) && \
|
2006-08-27 16:23:23 +02:00
|
|
|
empty(MACHINE_PLATFORM:MNetBSD-*-alpha) && \
|
2007-04-28 19:46:21 +02:00
|
|
|
empty(MACHINE_PLATFORM:MNetBSD-*-sparc) && \
|
|
|
|
empty(MACHINE_PLATFORM:M*-*-hppa)
|
2003-02-02 18:27:47 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-asm
|
|
|
|
.endif
|
2011-07-15 22:58:56 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-aesni-support
|
2003-02-02 18:27:47 +01:00
|
|
|
|
2016-04-22 10:28:46 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MLinux-*-i386) || \
|
|
|
|
!empty(MACHINE_PLATFORM:MSunOS-*-i386)
|
|
|
|
CONFIGURE_ARGS+= --disable-pclmul-support
|
|
|
|
.endif
|
|
|
|
|
2014-07-18 12:36:28 +02:00
|
|
|
# SCO OpenServer 5.0.7/3.2 has no socklen_t, but it is defined in pthread.h
|
|
|
|
# from builtin GNU pth.
|
|
|
|
.if ${OS_VARIANT} == "SCOOSR5"
|
|
|
|
CONFIGURE_ENV+= ac_cv_type_socklen_t=yes
|
|
|
|
CONFIGURE_ENV+= gl_cv_socklen_t_equiv=int
|
|
|
|
.endif
|
|
|
|
|
2012-04-03 17:00:30 +02:00
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
|
|
CFLAGS+= -fheinous-gnu-extensions
|
|
|
|
.endif
|
|
|
|
|
2016-05-15 01:16:43 +02:00
|
|
|
.if (${MACHINE_ARCH} == "x86_64")
|
|
|
|
. if !empty(CC_VERSION:Mgcc-4.[45].*)
|
|
|
|
CONFIGURE_ARGS+= --disable-avx2-support
|
|
|
|
CONFIGURE_ARGS+= --disable-avx-support
|
|
|
|
CONFIGURE_ENV+= gcry_cv_gcc_inline_asm_avx=no
|
|
|
|
. endif
|
|
|
|
.endif
|
2015-03-13 23:38:08 +01:00
|
|
|
|
2016-09-01 12:19:30 +02:00
|
|
|
SUBST_CLASSES+= rpath
|
|
|
|
SUBST_FILES.rpath= src/libgcrypt-config.in
|
|
|
|
SUBST_STAGE.rpath= pre-configure
|
|
|
|
SUBST_MESSAGE.rpath= Fixing rpath flags
|
|
|
|
SUBST_VARS.rpath= COMPILER_RPATH_FLAG
|
|
|
|
|
2007-08-30 01:11:37 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2016-08-20 21:22:37 +02:00
|
|
|
BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.13
|
2004-03-29 09:42:16 +02:00
|
|
|
.include "../../security/libgpg-error/buildlink3.mk"
|
2004-02-10 01:13:24 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2003-02-02 18:27:47 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|