bf1f34e302
ok ajacoutot@
78 lines
2.1 KiB
Makefile
78 lines
2.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.76 2013/04/12 05:16:03 brad Exp $
|
|
|
|
# XXX check why our getopt_long(3) fails the configure test
|
|
# + rm patch-gl_unistd_in_h
|
|
|
|
COMMENT= GNU Transport Layer Security library
|
|
|
|
V= 3.1.10
|
|
DISTNAME= gnutls-${V}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
CATEGORIES= security
|
|
|
|
SHARED_LIBS += gnutls 39.4 # 46.0
|
|
SHARED_LIBS += gnutlsxx 29.1 # 29.0
|
|
SHARED_LIBS += gnutls-xssl 0.0 # 0.0
|
|
SHARED_LIBS += gnutls-openssl 27.2 # 27.2
|
|
|
|
HOMEPAGE= http://www.gnutls.org/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# LGPLv2.1+ - GPLv3+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c gmp hogweed idn m nettle p11-kit pthread stdc++ tasn1
|
|
WANTLIB += z
|
|
|
|
MASTER_SITES= ftp://ftp.gnutls.org/gcrypt/gnutls/v${V:R}/
|
|
|
|
MODULES= devel/gettext
|
|
|
|
LIB_DEPENDS= devel/libidn \
|
|
security/libtasn1 \
|
|
security/libnettle \
|
|
security/p11-kit
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
# regression tests need this
|
|
PORTHOME= ${WRKDIR}
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
--disable-gtk-doc \
|
|
--disable-guile \
|
|
--disable-valgrind-tests \
|
|
--disable-hardware-acceleration \
|
|
--with-packager="OpenBSD Ports"
|
|
|
|
# add dependency on net/unbound; see post-install as well
|
|
CONFIGURE_ARGS += --disable-libdane
|
|
|
|
# requires security/trousers: not committed, needs kernel support for tpm(4):
|
|
# http://bsssd.sourceforge.net/
|
|
CONFIGURE_ARGS += --without-tpm
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
# If one of these tools is found at configure stage, it might be used,
|
|
# no matter whether we use --disable-gtk-doc or not.
|
|
CONFIGURE_ENV +=ac_cv_path_GTKDOC_CHECK="" \
|
|
ac_cv_path_GTKDOC_REBASE="" \
|
|
ac_cv_path_GTKDOC_MKPDF=""
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnutls
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnutls
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gnutls
|
|
${INSTALL_DATA} ${WRKSRC}/doc/examples/*.c \
|
|
${PREFIX}/share/examples/gnutls
|
|
# needed by at least:
|
|
# devel/libvmime, security/prelude/manager, textproc/iksemel
|
|
${INSTALL} -m 555 ${FILESDIR}/libgnutls-config ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|