# $OpenBSD: Makefile,v 1.69 2013/01/18 10:41:25 ajacoutot 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.6 DISTNAME= gnutls-${V} EXTRACT_SUFX= .tar.xz CATEGORIES= security SHARED_LIBS += gnutls 39.1 # 40.0 SHARED_LIBS += gnutlsxx 29.1 # 29.0 SHARED_LIBS += gnutls-openssl 27.2 # 27.2 HOMEPAGE= http://www.gnutls.org/ MAINTAINER= Antoine Jacoutot # LGPLv3 - GPLv3 PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= 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 USE_LIBTOOL= 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 # --disable-libdane (net/unbound) rm ${PREFIX}/{bin/danetool,lib/pkgconfig/gnutls-dane.pc} .include