67 lines
1.6 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.23 2016/09/09 17:37:51 tj Exp $
COMMENT-main= secure communications between a DNS client and resolver
COMMENT-plugins= example plugins for dnscrypt-proxy
V= 1.7.0
REVISION= 0
DISTNAME= dnscrypt-proxy-${V}
CATEGORIES= net
2013-10-23 12:42:20 +00:00
MASTER_SITES= http://download.dnscrypt.org/dnscrypt-proxy/ \
http://download.dnscrypt.org/dnscrypt-proxy/old/
2013-10-23 12:42:20 +00:00
HOMEPAGE= http://dnscrypt.org/
MAINTAINER= Frank Denis <dnscrypt@pureftpd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
MULTI_PACKAGES= -main -plugins
PKGNAME-main= dnscrypt-proxy-${V}
PKGNAME-plugins= dnscrypt-proxy-plugins-${V}
2013-10-23 12:42:20 +00:00
commonWANTLIB= execinfo kvm m sodium
2013-10-23 12:42:20 +00:00
WANTLIB-main= ${commonWANTLIB} c ltdl
WANTLIB-plugins= ${commonWANTLIB} crypto ldns
2013-10-23 12:42:20 +00:00
commonLIB_DEPENDS= devel/libexecinfo \
security/libsodium
2013-10-23 12:42:20 +00:00
LIB_DEPENDS-main= ${commonLIB_DEPENDS} \
devel/libtool,-ltdl
LIB_DEPENDS-plugins= ${commonLIB_DEPENDS} \
net/ldns/libldns
CONFIGURE_STYLE= gnu
2013-10-23 12:42:20 +00:00
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib \
ac_cv_header_uuid_uuid_h=no
.if ${MACHINE_ARCH} == "powerpc"
CONFIGURE_ENV += libevent_cv_gc_sections_runs=no
.endif
2013-10-23 12:42:20 +00:00
CONFIGURE_ARGS+= --enable-plugins \
--enable-plugins-root \
--enable-pie=no
# Don't force PIE, it's broken on at least arm. OpenBSD enables it
# by default on arch where it works anyway.
2013-10-23 12:42:20 +00:00
2014-04-25 17:11:26 +00:00
# for tests
USE_GMAKE= yes
DOCS= README-PLUGINS.markdown \
README.markdown \
DNSCRYPT-V2-PROTOCOL.txt
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dnscrypt-proxy
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/dnscrypt-proxy
2013-10-23 12:42:20 +00:00
rm -f ${PREFIX}/lib/dnscrypt-proxy/*.la
.include <bsd.port.mk>