mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
ea10553019
Axa now contains some third party public domain code, add license info for that. Respect the chosen default SSL version. The base version of OpenSSL in FreeBSD 9 isn't good enough, so mark this port as IGNORE for that case. Make the port work with the OpenSSL in base for the newer FreeBSD branches. Patch the source so that it doesn't install an unnecessary header that would conflict with converters/libb64, and fix a format string type mismatch bug. Sponsored by: Farsight Security, Inc.
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= axa
|
|
PORTVERSION= 1.3.0
|
|
CATEGORIES= net dns
|
|
MASTER_SITES= FARSIGHT/${PORTNAME} LOCAL/truckman/farsight
|
|
|
|
MAINTAINER= truckman@FreeBSD.org
|
|
COMMENT= AXA library and tools
|
|
|
|
LICENSE= APACHE20 PD
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE_APACHE20= ${WRKSRC}/copyright
|
|
LICENSE_FILE_PD= ${WRKSRC}/license_pd
|
|
|
|
BUILD_DEPENDS= bash:shells/bash \
|
|
sie-nmsg>0:net/sie-nmsg
|
|
LIB_DEPENDS= libcheck.so:devel/libcheck \
|
|
libprotobuf-c.so:devel/protobuf-c \
|
|
libnmsg.so:net/nmsg \
|
|
libwdns.so:dns/wdns \
|
|
libyajl.so:devel/yajl
|
|
RUN_DEPENDS= sie-nmsg>0:net/sie-nmsg
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= autoreconf gmake libedit libtool pathfix pkgconfig ssl
|
|
CONFIGURE_SHELL= ${LOCALBASE}/bin/bash
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOXYGEN
|
|
OPTIONS_DEFAULT=DOXYGEN
|
|
|
|
ALL_TARGET= all
|
|
INSTALL_TARGET= install-strip
|
|
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
|
|
DOXYGEN_ALL_TARGET= html-local
|
|
|
|
LDFLAGS+= -lm
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${SSL_DEFAULT} == base
|
|
. if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
|
|
IGNORE= base OpenSSL in FreeBSD 9 is too old, specify a ports version of SSL by adding DEFAULT_VERSIONS+=ssl=... to /etc/make.conf and rebuild everything that needs SSL
|
|
. else
|
|
CONFIGURE_ENV+= libcrypto_CFLAGS="-I${OPENSSLINC}" \
|
|
libcrypto_LIBS="-L${OPENSSLLIB} -lcrypto" \
|
|
libssl_CFLAGS="-I${OPENSSLINC}" \
|
|
libssl_LIBS="-L${OPENSSLLIB} -lssl"
|
|
. endif
|
|
.endif
|
|
|
|
post-extract:
|
|
(${ECHO} "For libmy/b64_encode.c:" ; \
|
|
${SED} -ne "1,/\*\//p" ${WRKSRC}/libmy/b64_encode.c ) > ${LICENSE_FILE_PD}
|
|
|
|
post-install-DOXYGEN-on:
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.post.mk>
|