Use custom implib for GetNetworkParams
[git/cygwin-packages/bind.git] / bind.cygport
1 NAME="bind"
2 VERSION=9.9.6
3 RELEASE=2
4 CATEGORY="Net"
5 SUMMARY="DNS server and utilities suite"
6 DESCRIPTION="BIND is an implementation of the Domain Name System (DNS)
7 protocols. The DNS protocols are part of the core Internet standards.
8 They specify the process by which one computer can find another computer
9 on the basis of its name. The BIND software distribution contains all of
10 the software needed both to ask name service questions and to answer
11 such questions."
12 HOMEPAGE="http://www.isc.org/software/bind/"
13 SRC_URI="http://ftp.isc.org/isc/bind9/${VERSION}/bind-${VERSION}.tar.gz
14 http://ftp.isc.org/isc/bind9/${VERSION}/bind-${VERSION}.tar.gz.asc
15 named-config"
16
17 PATCH_URI="
18 http://pkgs.fedoraproject.org/cgit/bind.git/plain/bind-99-libidn.patch?h=f21
19 9.9.6-configure.patch
20 9.9.6-lwconfig-win32.patch
21 9.5.0-parallel-build.patch
22 9.9.3-python-install.patch
23 "
24 # Only needed for shared libraries:
25 # 9.9.0-libtool.patch
26
27 PKG_NAMES="bind bind-utils"
28 bind_SUMMARY="DNS server"
29 bind_REQUIRES="bind-utils"
30 bind_CONTENTS="etc/ usr/sbin/ usr/share/man/man1/arpaname* usr/share/man/man[58]/"
31 bind_utils_CONTENTS="DNS utilities"
32 bind_utils_CONTENTS="--exclude=arpaname* --exclude=isc-config.sh* --exclude=bind9-config*
33 usr/bin/ usr/share/doc/ usr/share/man/man1/"
34 libbind9_devel_CONTENTS="usr/bin/bind9-config usr/bin/isc-config.sh usr/include/ usr/lib/
35 usr/share/man/man1/bind9-config* usr/share/man/man1/isc-config.sh*
36 usr/share/man/man3/"
37 PKG_IGNORE=${libbind9_devel_CONTENTS}
38
39 DISTCLEANFILES="aclocal.m4"
40
41 src_compile() {
42 cd ${S}
43 cygautoreconf
44
45 cd ${B}
46
47 # we want GetNetworkParams but not if_nametoindex
48 cat > iphlpapi.def <<_EOF
49 LIBRARY "IPHLPAPI.DLL"
50 EXPORTS
51 GetNetworkParams${ARCH_i686+@8}
52 _EOF
53 ${DLLTOOL} -k -d iphlpapi.def -l libiphlpapi.a
54 LIBS+=" -Wl,${B}/libiphlpapi.a"
55
56 # see config.h.win32
57 CPPFLAGS+=" -DFD_SETSIZE=16384"
58
59 cygconf \
60 --disable-backtrace --disable-linux-caps --without-dlopen \
61 --with-dlz-bdb=/usr \
62 --with-dlz-filesystem \
63 --with-dlz-ldap=/usr \
64 --with-dlz-mysql=/usr \
65 --with-dlz-odbc=/usr \
66 --with-dlz-postgres=/usr \
67 --with-dlz-stub \
68 --with-docbook-xsl=/usr/share/sgml/docbook/xsl-stylesheets \
69 --with-gssapi \
70 --with-libxml2=/usr \
71 --with-openssl=/usr
72
73 cygmake
74 }
75
76 src_install() {
77 cd ${B}
78 dosbin ${S}/named-config
79 cyginstall
80 dodoc ${S}/RELEASE-NOTES-BIND-${VERSION%-*}.txt
81 }
This page took 0.037654 seconds and 6 git commands to generate.