summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2009-12-19 22:53:46 +0059
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-20 10:35:02 +0100
commit1c8d49e1ee453e44af6c57f10e8b929d5ccdd3a2 (patch)
treead61904908c100a16ef60192fbe0676a79a2d877
parent72ea86f8f4d9a00ca5f509eba515b38968924172 (diff)
create package/Depends.mk dynamically; add PKG_BUILDDEP to all Makefiles
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
-rw-r--r--mk/build.mk5
-rw-r--r--package/Depends.mk425
-rw-r--r--package/aircrack-ng/Makefile2
-rw-r--r--package/alsa-utils/Makefile2
-rw-r--r--package/apr-util/Makefile1
-rw-r--r--package/apr/Makefile4
-rw-r--r--package/arpd/Makefile2
-rw-r--r--package/arpwatch/Makefile1
-rw-r--r--package/asterisk/Makefile7
-rw-r--r--package/atftp/Makefile2
-rw-r--r--package/atk/Makefile2
-rw-r--r--package/avahi/Makefile2
-rw-r--r--package/bind/Makefile1
-rw-r--r--package/bitlbee/Makefile1
-rw-r--r--package/bluez/Makefile1
-rw-r--r--package/bogofilter/Makefile1
-rw-r--r--package/cairo/Makefile1
-rw-r--r--package/cbtt/Makefile4
-rw-r--r--package/collectd/Makefile1
-rw-r--r--package/cryptinit/Makefile1
-rw-r--r--package/cryptsetup/Makefile1
-rwxr-xr-xpackage/ctorrent/Makefile4
-rw-r--r--package/cups/Makefile1
-rw-r--r--package/curl/Makefile1
-rw-r--r--package/cxxtools/Makefile4
-rw-r--r--package/cyrus-sasl/Makefile1
-rw-r--r--package/dansguardian/Makefile4
-rw-r--r--package/davfs2/Makefile4
-rw-r--r--package/dbus/Makefile1
-rw-r--r--package/deco/Makefile1
-rw-r--r--package/depmaker20
-rw-r--r--package/digitemp/Makefile1
-rw-r--r--package/dsniff/Makefile1
-rw-r--r--package/elinks/Makefile1
-rw-r--r--package/esound/Makefile1
-rw-r--r--package/exmap/Makefile1
-rw-r--r--package/fetchmail/Makefile3
-rw-r--r--package/fprobe/Makefile1
-rw-r--r--package/freeradius-client/Makefile1
-rw-r--r--package/freeradius-server/Makefile10
-rw-r--r--package/freetype/Makefile1
-rw-r--r--package/gatling/Makefile1
-rw-r--r--package/gcc/Makefile1
-rw-r--r--package/gdb/Makefile1
-rw-r--r--package/gettext/Makefile1
-rw-r--r--package/git/Makefile1
-rw-r--r--package/gkrellmd/Makefile1
-rw-r--r--package/glib/Makefile1
-rw-r--r--package/gmediaserver/Makefile1
-rw-r--r--package/gnutls/Makefile1
-rw-r--r--package/gpsd/Makefile4
-rw-r--r--package/gtk+/Makefile1
-rw-r--r--package/heimdal/Makefile7
-rw-r--r--package/hostapd/Makefile1
-rw-r--r--package/httping/Makefile1
-rw-r--r--package/icecast/Makefile1
-rw-r--r--package/id3lib/Makefile4
-rw-r--r--package/iftop/Makefile1
-rw-r--r--package/ipcad/Makefile1
-rw-r--r--package/iperf/Makefile3
-rw-r--r--package/iproute2/Makefile3
-rw-r--r--package/ipsec-tools/Makefile1
-rw-r--r--package/iptables-snmp/Makefile1
-rw-r--r--package/iptraf/Makefile1
-rw-r--r--package/irssi/Makefile4
-rw-r--r--package/iw/Makefile1
-rw-r--r--package/jamvm/Makefile1
-rw-r--r--package/kismet/Makefile4
-rw-r--r--package/knock/Makefile1
-rw-r--r--package/krb5/Makefile1
-rw-r--r--package/l2tpns/Makefile1
-rw-r--r--package/less/Makefile1
-rw-r--r--package/libICE/Makefile1
-rw-r--r--package/libSM/Makefile1
-rw-r--r--package/libX11/Makefile1
-rw-r--r--package/libXaw/Makefile1
-rw-r--r--package/libXext/Makefile1
-rw-r--r--package/libXfont/Makefile1
-rw-r--r--package/libXmu/Makefile1
-rw-r--r--package/libXt/Makefile1
-rw-r--r--package/libXv/Makefile1
-rw-r--r--package/libXxf86dga/Makefile1
-rw-r--r--package/libfontenc/Makefile1
-rw-r--r--package/libgcrypt/Makefile1
-rw-r--r--package/libgd/Makefile1
-rw-r--r--package/libid3tag/Makefile1
-rw-r--r--package/libnet/Makefile1
-rw-r--r--package/libnids/Makefile1
-rw-r--r--package/libp11/Makefile1
-rw-r--r--package/libpng/Makefile1
-rw-r--r--package/libshout/Makefile1
-rw-r--r--package/libtirpc/Makefile1
-rw-r--r--package/libtorrent/Makefile1
-rw-r--r--package/libusb-compat/Makefile1
-rw-r--r--package/libvirt/Makefile1
-rw-r--r--package/libvorbis/Makefile1
-rw-r--r--package/libxml2/Makefile1
-rw-r--r--package/libxslt/Makefile1
-rw-r--r--package/lighttpd/Makefile4
-rw-r--r--package/links/Makefile1
-rw-r--r--package/logrotate/Makefile1
-rw-r--r--package/lynx/Makefile1
-rw-r--r--package/madplay/Makefile1
-rw-r--r--package/maradns/Makefile1
-rw-r--r--package/mc/Makefile1
-rw-r--r--package/miax/Makefile1
-rw-r--r--package/mini_httpd/Makefile3
-rw-r--r--package/miredo/Makefile3
-rw-r--r--package/moc/Makefile1
-rw-r--r--package/monit/Makefile1
-rw-r--r--package/motion/Makefile3
-rw-r--r--package/mpd/Makefile31
-rw-r--r--package/mplayer/Makefile1
-rw-r--r--package/mrd6/Makefile3
-rw-r--r--package/mt-daapd/Makefile1
-rw-r--r--package/mtr/Makefile1
-rw-r--r--package/mutt/Makefile1
-rw-r--r--package/mysql/Makefile1
-rw-r--r--package/nano/Makefile1
-rw-r--r--package/neon/Makefile1
-rw-r--r--package/net-snmp/Makefile1
-rw-r--r--package/nfs-utils/Makefile7
-rw-r--r--package/nmap/Makefile4
-rw-r--r--package/nss/Makefile1
-rw-r--r--package/nut/Makefile9
-rw-r--r--package/obexftp/Makefile1
-rw-r--r--package/opencdk/Makefile1
-rw-r--r--package/openct/Makefile1
-rw-r--r--package/openldap/Makefile1
-rw-r--r--package/openobex/Makefile1
-rw-r--r--package/opensips/Makefile1
-rw-r--r--package/openssh/Makefile7
-rw-r--r--package/openssl-pkcs11/Makefile1
-rw-r--r--package/openssl/Makefile1
-rw-r--r--package/openswan/Makefile1
-rw-r--r--package/openvpn/Makefile6
-rw-r--r--package/oprofile/Makefile1
-rw-r--r--package/osiris/Makefile1
-rw-r--r--package/palantir/Makefile1
-rw-r--r--package/parted/Makefile1
-rw-r--r--package/pciutils/Makefile1
-rw-r--r--package/php/Makefile28
-rw-r--r--package/pkgmaker1
-rw-r--r--package/pmacct/Makefile10
-rw-r--r--package/popt/Makefile1
-rw-r--r--package/portmap/Makefile3
-rw-r--r--package/postgresql/Makefile1
-rw-r--r--package/privoxy/Makefile1
-rw-r--r--package/procps/Makefile1
-rw-r--r--package/ptunnel/Makefile1
-rw-r--r--package/quagga/Makefile1
-rwxr-xr-xpackage/raddump/Makefile1
-rw-r--r--package/rarpd/Makefile1
-rw-r--r--package/readline/Makefile1
-rw-r--r--package/rpm/Makefile1
-rw-r--r--package/rrdcollect/Makefile1
-rw-r--r--package/rrdtool/Makefile1
-rw-r--r--package/rrs/Makefile7
-rw-r--r--package/rsync/Makefile1
-rw-r--r--package/rtorrent/Makefile1
-rw-r--r--package/sane-backends/Makefile1
-rw-r--r--package/scanlogd/Makefile1
-rw-r--r--package/screen/Makefile1
-rw-r--r--package/serdisplib/Makefile1
-rw-r--r--package/siproxd/Makefile1
-rw-r--r--package/sipsak/Makefile1
-rw-r--r--package/sispmctl/Makefile1
-rw-r--r--package/snort-wireless/Makefile1
-rw-r--r--package/snort/Makefile1
-rw-r--r--package/socat/Makefile1
-rw-r--r--package/sqlite/Makefile1
-rw-r--r--package/squid/Makefile1
-rw-r--r--package/ssltunnel/Makefile1
-rw-r--r--package/subversion/Makefile4
-rw-r--r--package/swconfig/Makefile1
-rw-r--r--package/syslog-ng/Makefile1
-rw-r--r--package/tcpdump/Makefile1
-rw-r--r--package/tinc/Makefile1
-rw-r--r--package/tntnet/Makefile6
-rw-r--r--package/tor/Makefile1
-rw-r--r--package/ulogd/Makefile13
-rw-r--r--package/usbutils/Makefile1
-rw-r--r--package/ussp-push/Makefile1
-rw-r--r--package/util-linux-ng/Makefile1
-rw-r--r--package/vilistextum/Makefile1
-rw-r--r--package/vim/Makefile1
-rw-r--r--package/vnc-reflector/Makefile1
-rw-r--r--package/vpnc/Makefile1
-rw-r--r--package/vtun/Makefile1
-rw-r--r--package/wdfs/Makefile1
-rw-r--r--package/weechat/Makefile1
-rw-r--r--package/wpa_supplicant/Makefile3
-rw-r--r--package/xf86-video-cirrus/Makefile1
-rw-r--r--package/xf86-video-geode/Makefile1
-rw-r--r--package/xf86dga/Makefile1
-rw-r--r--package/xfsprogs/Makefile1
-rw-r--r--package/xkeyboard-config/Makefile1
-rw-r--r--package/xorg-server/Makefile1
198 files changed, 410 insertions, 433 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 9f35a3827..c1828599f 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -79,6 +79,9 @@ include ${TOPDIR}/mk/split-cfg.mk
all: world
+${TOPDIR}/package/Depends.mk: ${TOPDIR}/.config
+ mksh ${TOPDIR}/package/depmaker
+
.NOTPARALLEL:
.PHONY: all world clean cleantarget cleandir distclean image_clean
@@ -120,7 +123,7 @@ ${STAGING_DIR}/etc/ipkg.conf: ${STAGING_DIR}/etc
echo "dest root /" >${STAGING_DIR}/etc/ipkg.conf
echo "option offline_root ${TARGET_DIR}" >>$(STAGING_DIR)/etc/ipkg.conf
-package/%: ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG ${STAGING_DIR}/etc/ipkg.conf
+package/%: ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG ${STAGING_DIR}/etc/ipkg.conf ${TOPDIR}/package/Depends.mk
$(MAKE) -C package $(patsubst package/%,%,$@)
target/%: ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG
diff --git a/package/Depends.mk b/package/Depends.mk
deleted file mode 100644
index bf77d2106..000000000
--- a/package/Depends.mk
+++ /dev/null
@@ -1,425 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-aircrack-ng-compile: openssl-compile libpcap-compile
-alsa-utils-compile: alsa-lib-compile
-apr-util-compile: expat-compile apr-compile
-arpd-compile: libpcap-compile libdnet-compile libevent-compile
-arpwatch-compile: libpcap-compile
-atftp-compile: readline-compile ncurses-compile
-atk-compile: glib-compile
-avahi-compile: libdaemon-compile expat-compile gdbm-compile glib-compile
-
-bind-compile: openssl-compile
-bitlbee-compile: libiconv-compile openssl-compile glib-compile
-bluez-compile: libusb-compile dbus-compile glib-compile
-bogofilter-compile: libiconv-compile libdb-compile
-
-cairo-compile: libpng-compile pixman-compile freetype-compile fontconfig-compile libX11-compile
-ifeq (${ADK_COMPILE_CBTT_WITH_UCLIBCXX},y)
-cbtt-compile: uclibc++-compile
-endif
-cbtt-compile: mysql-compile zlib-compile
-collectd-compile: libpthread-compile
-cryptinit-compile: cryptsetup-compile
-cryptsetup-compile: libgcrypt-compile popt-compile e2fsprogs-compile lvm-compile
-ifeq (${ADK_COMPILE_CTORRENT_WITH_UCLIBCXX},y)
-ctorrent-compile: uclibc++-compile
-endif
-ctorrent-compile: openssl-compile
-cups-compile: zlib-compile
-curl-compile: openssl-compile zlib-compile
-ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
-cxxtools-compile: uclibc++-compile
-endif
-cxxtools-compile: libiconv-compile
-cyrus-sasl-compile: openssl-compile
-
-ifeq (${ADK_COMPILE_DANSGUARDIAN_WITH_UCLIBCXX},y)
-dansguardian-compile: uclibc++-compile
-endif
-dansguardian-compile: pcre-compile zlib-compile
-ifneq (${ADK_PACKAGE_DAVFS2_FUSE}${ADK_PACKAGE_DAVFS2_BOTH},)
-davfs2-compile: fuse-compile
-endif
-davfs2-compile: libiconv-compile neon-compile
-
-dbus-compile: expat-compile
-deco-compile: ncurses-compile
-dhcpv6-compile: libnl-compile ncurses-compile
-digitemp-compile: libusb-compile libusb-compat-compile
-dsniff-compile: libnids-compile openssl-compile gdbm-compile
-elinks-compile: openssl-compile
-esound-compile: libaudiofile-compile
-ettercap-compile: pcap-compile libnet-compile
-exmap-compile: glib-compile readline-compile
-fprobe-compile: libpcap-compile
-freetype-compile: zlib-compile
-gatling-compile: libowfat-compile libiconv-compile
-gcc-compile: gmp-compile mpfr-compile
-gdb-compile: ncurses-compile readline-compile
-gettext-compile: libiconv-compile libpthread-compile
-git-compile: openssl-compile curl-compile expat-compile
-gkrellmd-compile: glib-compile
-glib-compile: gettext-compile libiconv-compile
-gmediaserver-compile: id3lib-compile libupnp-compile
-gnutls-compile: libgcrypt-compile liblzo-compile libtasn1-compile opencdk-compile zlib-compile ncurses-compile
-
-ifeq (${ADK_COMPILE_GPSD_WITH_UCLIBCXX},y)
-gpsd-compile: uclibc++-compile
-endif
-gpsd-compile: ncurses-compile
-
-gtk+-compile: cairo-compile atk-compile pango-compile libXext-compile renderproto-compile libXrender-compile
-
-ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_BDB},y)
-heimdal-compile: libdb-compile
-endif
-ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_LDAP},y)
-heimdal-compile: openldap-compile
-endif
-heimdal-compile: openssl-compile ncurses-compile e2fsprogs-compile
-
-httping-compile: openssl-compile
-icecast-compile: curl-compile libvorbis-compile libxml2-compile libxslt-compile
-ifeq (${ADK_COMPILE_ID3LIB_WITH_UCLIBCXX},y)
-id3lib-compile: uclibc++-compile
-endif
-id3lib-compile: zlib-compile libiconv-compile
-iftop-compile: libpcap-compile libpthread-compile ncurses-compile
-ipcad-compile: libpcap-compile
-ifeq (${ADK_COMPILE_IPERF_WITH_UCLIBCXX},y)
-iperf-compile: uclibc++-compile
-endif
-ifneq ($(strip ${ADK_PACKAGE_TC_ATM}),)
-iproute2-compile: linux-atm-compile
-endif
-ipsec-tools-compile: openssl-compile
-iptables-snmp-compile: net-snmp-compile
-iptraf-compile: ncurses-compile
-irssi-compile: glib-compile ncurses-compile
-iw-compile: libnl-compile
-jamvm-compile: libffi-compile zlib-compile
-ifeq (${ADK_COMPILE_KISMET_WITH_UCLIBCXX},y)
-kismet-compile: uclibc++-compile
-endif
-kismet-compile: libpcap-compile ncurses-compile
-knock-compile: libpcap-compile
-krb5-compile: ncurses-compile e2fsprogs-compile
-l2tpns-compile: libcli-compile
-less-compile: ncurses-compile
-libgcrypt-compile: libgpg-error-compile
-libgd-compile: libpng-compile jpeg-compile
-libid3tag-compile: zlib-compile
-libnet-compile: libpcap-compile
-libnids-compile: libnet-compile libpcap-compile
-libp11-compile: openssl-compile libtool-compile
-libpng-compile: zlib-compile
-libshout-compile: libvorbis-compile
-libusb-compat-compile: libusb-compile
-libtirpc-compile: libgssglue-compile
-libtorrent-compile: openssl-compile libsigc++-compile
-libvorbis-compile: libogg-compile
-libvirt-compile: libxml2-compile gnutls-compile python-compile
-libfontenc-compile: xproto-compile zlib-compile
-libICE-compile: xtrans-compile
-libSM-compile: libICE-compile
-libXt-compile: libSM-compile
-libXv-compile: libX11-compile videoproto-compile
-libXmu-compile: libXt-compile
-libXext-compile: libX11-compile
-libXaw-compile: libXext-compile libXmu-compile libXpm-compile
-libX11-compile: xproto-compile xextproto-compile xtrans-compile libXdmcp-compile \
- libXau-compile xcmiscproto-compile bigreqsproto-compile kbproto-compile \
- inputproto-compile
-libXfont-compile: freetype-compile fontcacheproto-compile fontsproto-compile libfontenc-compile
-libxml2-compile: zlib-compile
-libxslt-compile: libxml2-compile
-ifeq (${ADK_COMPILE_LIGHTTPD_WITH_OPENSSL},y)
-lighttpd-compile: openssl-compile
-endif
-lighttpd-compile: pcre-compile libxml2-compile sqlite-compile
-links-compile: openssl-compile libpng-compile jpeg-compile gpm-compile
-logrotate-compile: popt-compile
-lynx-compile: ncurses-compile openssl-compile zlib-compile
-madplay-compile: libid3tag-compile libmad-compile
-maradns-compile: libpthread-compile
-mc-compile: glib-compile ncurses-compile
-miax-compile: bluez-compile
-ifeq (${ADK_COMPILE_MIREDO_WITH_UCLIBCXX},y)
-miredo-compile: uclibc++-compile
-endif
-moc-compile: libvorbis-compile curl-compile libmad-compile flac-compile ffmpeg-compile
-monit-compile: openssl-compile
-ifeq (${ADK_COMPILE_MRD6_WITH_UCLIBCXX},y)
-mrd6-compile: uclibc++-compile
-endif
-mt-daapd-compile: gdbm-compile libid3tag-compile
-mtr-compile: ncurses-compile
-mutt-compile: ncurses-compile openssl-compile
-mysql-compile: ncurses-compile zlib-compile readline-compile
-nano-compile: ncurses-compile
-neon-compile: libpthread-compile libxml2-compile openssl-compile zlib-compile
-net-snmp-compile: libelf-compile
-ifeq (${ADK_COMPILE_NFS_UTILS_WITH_KRB5},y)
-nfs-utils-compile: libnfsidmap-compile krb5-compile libevent-compile libgssglue-compile librpcsecgss-compile
-endif
-ifeq (${ADK_COMPILE_NFS_UTILS_WITH_HEIMDAL},y)
-nfs-utils-compile: libnfsidmap-compile heimdal-compile libevent-compile librpcsecgss-compile
-endif
-nfs-utils-compile: libtirpc-compile
-ifeq (${ADK_COMPILE_NMAP_WITH_UCLIBCXX},y)
-nmap-compile: uclibc++-compile
-endif
-nmap-compile: pcre-compile libpcap-compile
-obexftp-compile: openobex-compile libiconv-compile
-opencdk-compile: libgcrypt-compile libgpg-error-compile zlib-compile
-openct-compile: libtool-compile libusb-compile
-openldap-compile: cyrus-sasl-compile openssl-compile libdb-compile
-openobex-compile: bluez-compile
-opensips-compile: openssl-compile
-ifeq (${ADK_COMPILE_OPENSSH_WITH_KRB5},y)
-openssh-compile: krb5-compile
-endif
-ifeq (${ADK_COMPILE_OPENSSH_WITH_HEIMDAL},y)
-openssh-compile: heimdal-compile
-endif
-openssh-compile: zlib-compile openssl-compile
-openssl-compile: zlib-compile
-openssl-pkcs11-compile: libp11-compile
-openswan-compile: gmp-compile
-oprofile-compile: popt-compile
-osiris-compile: openssl-compile
-palantir-compile: jpeg-compile
-parted-compile: e2fsprogs-compile lvm-compile readline-compile
-pciutils-compile: zlib-compile
-popt-compile: libiconv-compile
-ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
-portmap-compile: tcp_wrappers-compile
-endif
-postgresql-compile: zlib-compile
-privoxy-compile: pcre-compile
-procps-compile: ncurses-compile
-ptunnel-compile: libpcap-compile
-quagga-compile: readline-compile ncurses-compile
-raddump-compile: openssl-compile libpcap-compile
-radiusclient-ng-compile: openssl-compile
-rarpd-compile: libnet-compile
-readline-compile: ncurses-compile
-nss-compile: nspr-compile zlib-compile
-rpm-compile: nss-compile libdb-compile
-rrdcollect-compile: rrdtool-compile
-rrdtool-compile: libxml2-compile cgilib-compile freetype-compile libart-compile libpng-compile
-rsync-compile: popt-compile
-rtorrent-compile: ncurses-compile libtorrent-compile curl-compile
-sane-backends-compile: libpthread-compile libusb-compile
-scanlogd-compile: libpcap-compile libnids-compile libnet-compile
-screen-compile: ncurses-compile
-serdisplib-compile: libgd-compile libusb-compile
-siproxd-compile: libosip2-compile
-sipsak-compile: openssl-compile
-sispmctl-compile: libusb-compile
-snort-compile: libnet-compile libpcap-compile pcre-compile
-snort-wireless-compile: libnet-compile libpcap-compile pcre-compile
-socat-compile: openssl-compile
-sqlite-compile: ncurses-compile readline-compile
-squid-compile: openssl-compile
-ssltunnel-compile: openssl-compile ppp-compile
-subversion-compile: apr-util-compile expat-compile apr-compile zlib-compile libiconv-compile
-swconfig-compile: libnl-compile
-syslog-ng-compile: libol-compile tcp_wrappers-compile
-tcpdump-compile: libpcap-compile
-tinc-compile: zlib-compile openssl-compile liblzo-compile
-tntnet-compile: cxxtools-compile zlib-compile
-ifneq (${ADK_COMPILE_TNTNET_WITH_OPENSSL},)
-tntnet-compile: openssl-compile
-else ifneq (${ADK_COMPILE_TNTNET_WITH_GNUTLS},)
-tntnet-compile: gnutls-compile
-endif
-tor-compile: libevent-compile openssl-compile zlib-compile
-trafshow: ncurses-compile libpcap-compile
-usbutils-compile: libusb-compile
-ussp-push-compile: openobex-compile
-util-linux-ng-compile: e2fsprogs-compile ncurses-compile
-vilistextum-compile: libiconv-compile
-vim-compile: ncurses-compile
-vnc-reflector-compile: jpeg-compile zlib-compile
-vpnc-compile: libgcrypt-compile libgpg-error-compile
-vtun-compile: zlib-compile openssl-compile liblzo-compile
-wdfs-compile: openssl-compile fuse-compile neon-compile glib-compile
-weechat-compile: ncurses-compile gnutls-compile lua-compile libiconv-compile
-wknock-compile: libpcap-compile
-ifeq (${ADK_COMPILE_WPA_SUPPLICANT_WITH_OPENSSL},y)
-wpa_supplicant-compile: openssl-compile
-endif
-wx200d-compile: postgresql-compile
-xfsprogs-compile: e2fsprogs-compile
-libXxf86dga-compile: xf86dgaproto-compile libXext-compile libXaw-compile
-xkeyboard-config-compile: xkbcomp-compile
-xf86-video-geode-compile: xorg-server-compile
-xf86-video-cirrus-compile: xorg-server-compile
-xf86dga-compile: libXxf86dga-compile
-xorg-server-compile: libX11-compile randrproto-compile renderproto-compile fixesproto-compile \
- damageproto-compile scrnsaverproto-compile resourceproto-compile \
- fontsproto-compile videoproto-compile compositeproto-compile \
- evieext-compile libxkbfile-compile libXfont-compile pixman-compile \
- libpciaccess-compile openssl-compile
-
-ifeq ($(ADK_PACKAGE_APR_THREADING),y)
-apr-compile: libpthread-compile
-endif
-
-asterisk-compile: ncurses-compile openssl-compile zlib-compile curl-compile popt-compile
-ifneq ($(ADK_PACKAGE_ASTERISK_CODEC_SPEEX),)
-asterisk-compile: speex-compile
-endif
-ifneq ($(ADK_PACKAGE_ASTERISK_PGSQL),)
-asterisk-compile: postgresql-compile
-endif
-
-freeradius-client-compile: openssl-compile
-freeradius-server-compile: libtool-compile openssl-compile
-ifneq ($(ADK_PACKAGE_FREERADIUS_MOD_LDAP),)
-freeradius-server-compile: openldap-compile
-endif
-ifneq ($(ADK_PACKAGE_FREERADIUS_MOD_SQL_MYSQL),)
-freeradius-server-compile: mysql-compile
-endif
-ifneq ($(ADK_PACKAGE_FREERADIUS_MOD_SQL_PGSQL),)
-freeradius-server-compile: postgresql-compile
-endif
-
-hostapd-compile: libnl-compile openssl-compile
-
-ifneq ($(ADK_PACKAGE_MINI_HTTPD_OPENSSL),)
-mini_httpd-compile: openssl-compile
-endif
-
-ifneq ($(ADK_PACKAGE_MOTION),)
-motion-compile: jpeg-compile
-endif
-
-mplayer-compile: alsa-lib-compile libmad-compile libvorbis-compile faad2-compile ncurses-compile zlib-compile
-
-mpd-compile: alsa-lib-compile glib-compile
-
-ifneq ($(ADK_COMPILE_MPD_WITH_MP3),)
-mpd-compile: libid3tag-compile libmad-compile
-endif
-ifneq ($(ADK_COMPILE_MPD_WITH_MP4),)
-mpd-compile: faad2-compile
-endif
-ifneq ($(ADK_COMPILE_MPD_WITH_OGG),)
-mpd-compile: libvorbis-compile
-endif
-ifneq ($(ADK_COMPILE_MPD_WITH_TREMOR),)
-mpd-compile: libvorbisidec-compile
-endif
-ifneq ($(ADK_COMPILE_MPD_WITH_FLAC),)
-mpd-compile: flac-compile
-endif
-ifneq ($(ADK_COMPILE_MPD_WITH_WAV),)
-mpd-compile: libaudiofile-compile
-endif
-ifneq ($(ADK_COMPILE_MPD_WITH_SHOUT),)
-mpd-compile: lame-compile
-endif
-ifneq ($(ADK_COMPILE_MPD_WITH_CURL),)
-mpd-compile: curl-compile
-endif
-ifneq ($(ADK_COMPILE_MPD_WITH_MMS),)
-mpd-compile: libmms-compile
-endif
-ifneq ($(ADK_COMPILE_MPD_WITH_FFMPEG),)
-mpd-compile: ffmpeg-compile
-endif
-
-ifneq (${ADK_PACKAGE_NUT_SSL},)
-nut-compile: openssl-compile
-endif
-ifneq (${ADK_PACKAGE_NUT_USB},)
-nut-compile: libusb-compile
-endif
-ifneq (${ADK_PACKAGE_NUT_SNMP},)
-nut-compile: net-snmp-compile
-endif
-
-ifeq ($(ADK_PACKAGE_LIBOPENSSL),y)
-openvpn-compile: openssl-compile
-endif
-ifeq ($(ADK_PACKAGE_OPENVPN_LZO),y)
-openvpn-compile: liblzo-compile
-endif
-
-php-compile: openssl-compile zlib-compile
-ifneq ($(ADK_PACKAGE_PHP_MOD_CURL),)
-php-compile: curl-compile
-endif
-ifneq ($(ADK_PACKAGE_PHP_MOD_GD),)
-php-compile: libgd-compile libpng-compile
-endif
-ifneq ($(ADK_PACKAGE_PHP_MOD_GMP),)
-php-compile: gmp-compile
-endif
-ifneq ($(ADK_PACKAGE_PHP_MOD_LDAP),)
-php-compile: openldap-compile
-endif
-ifneq ($(ADK_PACKAGE_PHP_MOD_MYSQL),)
-php-compile: mysql-compile
-endif
-ifneq ($(ADK_PACKAGE_PHP_MOD_PCRE),)
-php-compile: pcre-compile
-endif
-ifneq ($(ADK_PACKAGE_PHP_MOD_PGSQL),)
-php-compile: postgresql-compile
-endif
-ifneq ($(ADK_PACKAGE_PHP_MOD_SQLITE),)
-php-compile: sqlite-compile
-endif
-ifneq ($(ADK_PACKAGE_PHP_MOD_XML),)
-php-compile: expat-compile
-endif
-
-pmacct-compile: libpcap-compile
-ifneq ($(ADK_COMPILE_PMACCT_MYSQL),)
-pmacct-compile: mysql-compile
-endif
-ifneq ($(ADK_COMPILE_PMACCT_PGSQL),)
-pmacct-compile: postgresql-compile
-endif
-ifneq ($(ADK_COMPILE_PMACCT_SQLITE),)
-pmacct-compile: sqlite-compile
-endif
-
-ifeq (${ADK_COMPILE_RRS_WITH_UCLIBCXX},y)
-rrs-compile: uclibc++-compile
-endif
-rrs-compile: zlib-compile
-ifneq ($(ADK_PACKAGE_RRS),)
-rrs-compile: openssl-compile
-endif
-
-ifneq ($(ADK_PACKAGE_SUBVERSION_NEON),)
-subversion-compile: neon-compile
-endif
-
-ulogd-compile: iptables-compile
-ifneq ($(ADK_PACKAGE_ULOGD_MOD_MYSQL),)
-ulogd-compile: mysql-compile
-endif
-ifneq ($(ADK_PACKAGE_ULOGD_MOD_PCAP),)
-ulogd-compile: libpcap-compile
-endif
-ifneq ($(ADK_PACKAGE_ULOGD_MOD_PGSQL),)
-ulogd-compile: postgresql-compile
-endif
-ifneq ($(ADK_PACKAGE_ULOGD_MOD_SQLITE),)
-ulogd-compile: sqlite-compile
-endif
-ifeq (${ADK_PACKAGE_FETCHMAIL_SSL},y)
-fetchmail-compile: openssl-compile
-endif
-ifeq (${ADK_PACKAGE_IRSSI_SSL},y)
-irssi-compile: openssl-compile
-endif
-
diff --git a/package/aircrack-ng/Makefile b/package/aircrack-ng/Makefile
index db1099923..c03c57915 100644
--- a/package/aircrack-ng/Makefile
+++ b/package/aircrack-ng/Makefile
@@ -6,11 +6,11 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= aircrack-ng
PKG_VERSION:= 1.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl libpcap
PKG_MD5SUM:= dafbfaf944ca9d523fde4bae86f0c067
PKG_DESCR:= set of tools for auditing wireless networks
PKG_SECTION:= net
PKG_DEPENDS:= libpthread libopenssl libpcap
-PKG_BUILDDEP:= openssl libpcap
PKG_URL:= http://www.aircrack-ng.org
PKG_SITES:= http://download.aircrack-ng.org/
diff --git a/package/alsa-utils/Makefile b/package/alsa-utils/Makefile
index 936ef8119..9cbf7356c 100644
--- a/package/alsa-utils/Makefile
+++ b/package/alsa-utils/Makefile
@@ -6,10 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= alsa-utils
PKG_VERSION:= 1.0.21
PKG_RELEASE:= 1
+PKG_BUILDDEP+= alsa-lib
PKG_MD5SUM:= 3672287c2608040d111ce45495ba7602
PKG_DESCR:= ALSA mixer utility
PKG_DEPENDS:= alsa-lib
-PKG_BUILDDEP:= alsa-lib
PKG_SECTION:= utils
PKG_URL:= http://www.alsa-project.org
PKG_SITES:= ftp://ftp.task.gda.pl/pub/linux/misc/alsa/utils/ \
diff --git a/package/apr-util/Makefile b/package/apr-util/Makefile
index ecc96942f..6b4142600 100644
--- a/package/apr-util/Makefile
+++ b/package/apr-util/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= apr-util
PKG_VERSION:= 0.9.15
PKG_RELEASE:= 1
+PKG_BUILDDEP+= expat apr
PKG_MD5SUM:= dc772ae295f49ddb8ee8e69a9716c53b
PKG_DESCR:= Apache Portable Runtime utility library
PKG_SECTION:= libs
diff --git a/package/apr/Makefile b/package/apr/Makefile
index 24210df59..bc9758d8e 100644
--- a/package/apr/Makefile
+++ b/package/apr/Makefile
@@ -6,9 +6,11 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= apr
PKG_VERSION:= 0.9.17
PKG_RELEASE:= 1
+ifeq ($(ADK_PACKAGE_APR_THREADING),y)
+PKG_BUILDDEP+= libpthread
+endif
PKG_MD5SUM:= ca1e22d98081a03a33c2a0b8684eb192
PKG_DESCR:= Apache Portable Runtime library
-PKG_BUILDDEP:= expat apr
PKG_SECTION:= libs
PKG_URL:= http://apr.apache.org
PKG_SITES:= http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/${PKG_NAME}/
diff --git a/package/arpd/Makefile b/package/arpd/Makefile
index 3c8a71b91..2dc9cfed8 100644
--- a/package/arpd/Makefile
+++ b/package/arpd/Makefile
@@ -6,11 +6,11 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= arpd
PKG_VERSION:= 0.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap libdnet libevent
PKG_MD5SUM:= e2911fa9de1b92ef50deda1489ae944d
PKG_DESCR:= Generates ARP responses for IP address ranges
PKG_SECTION:= net
PKG_DEPENDS:= libpcap libdnet libevent
-PKG_BUILDDEP:= libpcap libdnet libevent
PKG_URL:= http://niels.xtdnet.nl/honeyd/
PKG_SITES:= http://niels.xtdnet.nl/honeyd/
diff --git a/package/arpwatch/Makefile b/package/arpwatch/Makefile
index 1b3c0d7aa..7f181cb31 100644
--- a/package/arpwatch/Makefile
+++ b/package/arpwatch/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= arpwatch
PKG_VERSION:= 2.1a15
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap
PKG_MD5SUM:= cebfeb99c4a7c2a6cee2564770415fe7
PKG_DESCR:= Ethernet monitor program for keeping track of ethernet/ip address pairings
PKG_SECTION:= net
diff --git a/package/asterisk/Makefile b/package/asterisk/Makefile
index ecb33b52d..228707faf 100644
--- a/package/asterisk/Makefile
+++ b/package/asterisk/Makefile
@@ -6,6 +6,13 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= asterisk
PKG_VERSION:= 1.4.27.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses openssl zlib curl popt
+ifneq ($(ADK_PACKAGE_ASTERISK_CODEC_SPEEX),)
+PKG_BUILDDEP+= speex
+endif
+ifneq ($(ADK_PACKAGE_ASTERISK_PGSQL),)
+PKG_BUILDDEP+= postgresql
+endif
PKG_MD5SUM:= e09ca163a6e90018c92c65a50b9ec398
PKG_DESCR:= Open Source PBX
PKG_SECTION:= net
diff --git a/package/atftp/Makefile b/package/atftp/Makefile
index 1582a81b5..7cea94e68 100644
--- a/package/atftp/Makefile
+++ b/package/atftp/Makefile
@@ -6,11 +6,11 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= atftp
PKG_VERSION:= 0.7
PKG_RELEASE:= 2
+PKG_BUILDDEP+= readline ncurses
PKG_MD5SUM:= 3b27365772d918050b2251d98a9c7c82
PKG_DESCR:= TFTP client
PKG_SECTION:= net
PKG_DEPENDS:= libreadline libncurses
-PKG_BUILDDEP:= readline ncurses
PKG_URL:= http://freshmeat.net/projects/atftp
PKG_SITES:= ftp://ftp.mamalinux.com/pub/atftp/
PKG_DESCR_1:= TFTP server
diff --git a/package/atk/Makefile b/package/atk/Makefile
index 70f6faf9d..f7172b76b 100644
--- a/package/atk/Makefile
+++ b/package/atk/Makefile
@@ -6,9 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= atk
PKG_VERSION:= 1.29.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= glib
PKG_MD5SUM:= f587d9285b2d0ac35ea95acef673517c
PKG_DESCR:= atk library
-PKG_BUILDDEP:= glib
PKG_SECTION:= libs
PKG_URL:= http://www.gnome.org
PKG_SITES:= ${MASTER_SITE_GNOME:=/atk/1.29/}
diff --git a/package/avahi/Makefile b/package/avahi/Makefile
index 047824ebf..a85b4dcd1 100644
--- a/package/avahi/Makefile
+++ b/package/avahi/Makefile
@@ -6,11 +6,11 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= avahi
PKG_VERSION:= 0.6.25
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libdaemon expat gdbm glib
PKG_MD5SUM:= a83155a6e29e3988f07e5eea3287b21e
PKG_DESCR:= mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf) daemon
PKG_SECTION:= net
PKG_DEPENDS:= libavahi libdaemon libexpat
-PKG_BUILDDEP:= libdaemon expat gdbm glib
PKG_URL:= http://avahi.org
PKG_SITES:= http://avahi.org/download/
diff --git a/package/bind/Makefile b/package/bind/Makefile
index a4e783e03..e1adae348 100644
--- a/package/bind/Makefile
+++ b/package/bind/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= bind
PKG_VERSION:= 9.4.1
PKG_RELEASE:= 4
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= 09b54d35036cb0423b2e618f21766285
PKG_DESCR:= popular DNS server
PKG_SECTION:= net
diff --git a/package/bitlbee/Makefile b/package/bitlbee/Makefile
index ccfea817f..8efc3c104 100644
--- a/package/bitlbee/Makefile
+++ b/package/bitlbee/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= bitlbee
PKG_VERSION:= 1.2.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libiconv openssl glib
PKG_MD5SUM:= 2b1674d98804970809de3da3edf0bed2
PKG_DESCR:= IRC gateway to IM chat networks
PKG_SECTION:= net
diff --git a/package/bluez/Makefile b/package/bluez/Makefile
index 8ba8f00ca..8abb8954d 100644
--- a/package/bluez/Makefile
+++ b/package/bluez/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= bluez
PKG_VERSION:= 4.57
PKG_RELEASE:= 2
+PKG_BUILDDEP+= libusb dbus glib
PKG_MD5SUM:= dc29e54f1204ac4215caeeee062b26f6
PKG_DESCR:= bluetooth libraries and applications
PKG_SECTION:= bluetooth
diff --git a/package/bogofilter/Makefile b/package/bogofilter/Makefile
index dc7bb574c..5b88d1b5c 100644
--- a/package/bogofilter/Makefile
+++ b/package/bogofilter/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= bogofilter
PKG_VERSION:= 1.2.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libiconv libdb
PKG_MD5SUM:= 4bbc9adc30d4f8e3a547f9be18a1cb74
PKG_DESCR:= mail filter
PKG_SECTION:= mail
diff --git a/package/cairo/Makefile b/package/cairo/Makefile
index 7dd034a18..39e1caf35 100644
--- a/package/cairo/Makefile
+++ b/package/cairo/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cairo
PKG_VERSION:= 1.8.8
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpng pixman freetype fontconfig libX11
PKG_MD5SUM:= d3e1a1035ae563812d4dd44a74fb0dd0
PKG_DESCR:= cairo graphics library
PKG_SECTION:= libs
diff --git a/package/cbtt/Makefile b/package/cbtt/Makefile
index 913b2d8e6..569fd9916 100644
--- a/package/cbtt/Makefile
+++ b/package/cbtt/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cbtt
PKG_VERSION:= 20060211
PKG_RELEASE:= 1
+PKG_BUILDDEP+= mysql zlib
+ifeq (${ADK_COMPILE_CBTT_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 19abea2817c49ccc9438e9671c402984
PKG_DESCR:= Bittorrent tracker
PKG_SECTION:= net
diff --git a/package/collectd/Makefile b/package/collectd/Makefile
index 84de63ccb..076fa0063 100644
--- a/package/collectd/Makefile
+++ b/package/collectd/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= collectd
PKG_VERSION:= 4.7.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpthread
PKG_MD5SUM:= b077e3398bd6fac0e53e9df4794db264
PKG_DESCR:= System statistics collection daemon
PKG_SECTION:= console
diff --git a/package/cryptinit/Makefile b/package/cryptinit/Makefile
index f186247f7..5f1d250bf 100644
--- a/package/cryptinit/Makefile
+++ b/package/cryptinit/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cryptinit
PKG_VERSION:= 1.0.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= cryptsetup
PKG_DESCR:= init for encrypted rootfilesystem
PKG_SECTION:= base
diff --git a/package/cryptsetup/Makefile b/package/cryptsetup/Makefile
index c9970fe7a..ad4129fee 100644
--- a/package/cryptsetup/Makefile
+++ b/package/cryptsetup/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cryptsetup
PKG_VERSION:= 1.0.7
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libgcrypt popt e2fsprogs lvm
PKG_MD5SUM:= 5eea2a77391a8a1a651b31cbaef59e22
PKG_DESCR:= LUKS cryptsetup tools
PKG_SECTION:= crypto
diff --git a/package/ctorrent/Makefile b/package/ctorrent/Makefile
index a73cef591..db9c54378 100755
--- a/package/ctorrent/Makefile
+++ b/package/ctorrent/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ctorrent
PKG_VERSION:= dnh3.3.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl
+ifeq (${ADK_COMPILE_CTORRENT_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 59b23dd05ff70791cd6449effa7fc3b6
PKG_DESCR:= console-based BitTorrent client
PKG_SECTION:= net
diff --git a/package/cups/Makefile b/package/cups/Makefile
index 608b043b7..fc9db155b 100644
--- a/package/cups/Makefile
+++ b/package/cups/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cups
PKG_VERSION:= 1.4.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib
PKG_MD5SUM:= d95e2d588e3d36e563027a963b117b1b
PKG_DESCR:= Common Unix Printing System
PKG_SECTION:= net
diff --git a/package/curl/Makefile b/package/curl/Makefile
index 69768dc63..52b05d89d 100644
--- a/package/curl/Makefile
+++ b/package/curl/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= curl
PKG_VERSION:= 7.19.7
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl zlib
PKG_MD5SUM:= ecb2e37e45c9933e2a963cabe03670ab
PKG_DESCR:= a client-side URL transfer tool
PKG_SECTION:= net
diff --git a/package/cxxtools/Makefile b/package/cxxtools/Makefile
index 36e91f35c..a8b926ba9 100644
--- a/package/cxxtools/Makefile
+++ b/package/cxxtools/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cxxtools
PKG_VERSION:= 1.4.8
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libiconv
+ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 16ce92a83beb925fa5138fc9a52d55af
PKG_DESCR:= a collection of general-purpose C++ classes
PKG_SECTION:= net
diff --git a/package/cyrus-sasl/Makefile b/package/cyrus-sasl/Makefile
index 4b8dabba2..60bb943ef 100644
--- a/package/cyrus-sasl/Makefile
+++ b/package/cyrus-sasl/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cyrus-sasl
PKG_VERSION:= 2.1.22
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= 45dde9d19193ae9dd388eb68b2027bc9
PKG_DESCR:= a general purpose authentication library
PKG_SECTION:= libs
diff --git a/package/dansguardian/Makefile b/package/dansguardian/Makefile
index 2a21584c5..6397610e6 100644
--- a/package/dansguardian/Makefile
+++ b/package/dansguardian/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= dansguardian
PKG_VERSION:= 2.10.1.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= pcre zlib
+ifeq (${ADK_COMPILE_DANSGUARDIAN_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 0987a1c9bfbdf398118386f10279611a
PKG_DESCR:= web content filter proxy
PKG_SECTION:= net
diff --git a/package/davfs2/Makefile b/package/davfs2/Makefile
index ffd292acd..00480bc32 100644
--- a/package/davfs2/Makefile
+++ b/package/davfs2/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME= davfs2
PKG_VERSION= 1.3.3
PKG_RELEASE= 1
+PKG_BUILDDEP+= libiconv neon
+ifneq (${ADK_PACKAGE_DAVFS2_FUSE}${ADK_PACKAGE_DAVFS2_BOTH},)
+PKG_BUILDDEP+= fuse
+endif
PKG_MD5SUM= 57def26e4d6d63527e01612d10fd0515
PKG_DESCR:= WebDAV filesystem
PKG_SECTION:= admin
diff --git a/package/dbus/Makefile b/package/dbus/Makefile
index 46739bfa2..6bb63c302 100644
--- a/package/dbus/Makefile
+++ b/package/dbus/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= dbus
PKG_VERSION:= 1.2.16
PKG_RELEASE:= 1
+PKG_BUILDDEP+= expat
PKG_MD5SUM:= c7a47b851ebe02f6726b65b78d1b730b
PKG_DESCR:= DBUS library
PKG_SECTION:= net
diff --git a/package/deco/Makefile b/package/deco/Makefile
index 0a0fe35dd..d0cab8dba 100644
--- a/package/deco/Makefile
+++ b/package/deco/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= deco
PKG_VERSION:= 39
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses
PKG_MD5SUM:= f77f60e8be0cae1f814cba1ef61bf4d0
PKG_DESCR:= Text-based, full featured file manager
PKG_SECTION:= misc
diff --git a/package/depmaker b/package/depmaker
new file mode 100644
index 000000000..06f5a9e28
--- /dev/null
+++ b/package/depmaker
@@ -0,0 +1,20 @@
+cd "$(dirname "$0")"
+export TOPDIR=$(realpath ..)
+if gmake --help >/dev/null 2>&1; then
+ export GMAKE=gmake
+else
+ export GMAKE=make
+fi
+
+for subdir in */Makefile; do
+ subdir=${subdir%/*}
+ cd $subdir
+ deps=$($GMAKE show=PKG_BUILDDEP)
+ cd ..
+ [[ -n $deps ]] || continue
+ x="${subdir}-compile:"
+ for dep in $deps; do
+ x="$x ${dep}-compile"
+ done
+ print -r -- $x
+done >Depends.mk
diff --git a/package/digitemp/Makefile b/package/digitemp/Makefile
index 13cc6bedc..a03d7e1f1 100644
--- a/package/digitemp/Makefile
+++ b/package/digitemp/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= digitemp
PKG_VERSION:= 3.6.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libusb libusb-compat
PKG_MD5SUM:= 9be2e48db37920f21925ae6e88f83b84
PKG_DESCR:= simple to use program for reading values from 1-wire devices
PKG_SECTION:= misc
diff --git a/package/dsniff/Makefile b/package/dsniff/Makefile
index bd54813c5..3e7925e41 100644
--- a/package/dsniff/Makefile
+++ b/package/dsniff/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= dsniff
PKG_VERSION:= 2.4b1
PKG_RELEASE:= 2
+PKG_BUILDDEP+= libnids openssl gdbm
PKG_MD5SUM:= 2f761fa3475682a7512b0b43568ee7d6
PKG_DESCR:= tools for network auditing and penetration testing
PKG_SECTION:= net
diff --git a/package/elinks/Makefile b/package/elinks/Makefile
index d4f3d8641..cb810d76f 100644
--- a/package/elinks/Makefile
+++ b/package/elinks/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= elinks
PKG_VERSION:= 0.11.7
PKG_RELEASE:= 2
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= 145c510cae41c204d0f23dce4bdd23ab
PKG_DESCR:= advanced text web browser
PKG_SECTION:= text
diff --git a/package/esound/Makefile b/package/esound/Makefile
index 123ade95c..b6ceecc2c 100644
--- a/package/esound/Makefile
+++ b/package/esound/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= esound
PKG_VERSION:= 0.2.41
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libaudiofile
PKG_MD5SUM:= 3d8973ed87053d7acc1f4d44af2c4688
PKG_DESCR:= Enlightened Sound Daemon
PKG_SECTION:= net
diff --git a/package/exmap/Makefile b/package/exmap/Makefile
index 092ba4a34..c21e25a40 100644
--- a/package/exmap/Makefile
+++ b/package/exmap/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= exmap
PKG_VERSION:= 0.4.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= glib readline
PKG_MD5SUM:= 55aec784e214037e61400287a55b5426
PKG_DESCR:= memory analysing tool
PKG_SECTION:= utils
diff --git a/package/fetchmail/Makefile b/package/fetchmail/Makefile
index c35add42e..22a616412 100644
--- a/package/fetchmail/Makefile
+++ b/package/fetchmail/Makefile
@@ -6,6 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= fetchmail
PKG_VERSION:= 6.3.9
PKG_RELEASE:= 1
+ifeq (${ADK_PACKAGE_FETCHMAIL_SSL},y)
+PKG_BUILDDEP+= openssl
+endif
PKG_MD5SUM:= 72c20ad2b9629f1a109668b05a84d823
PKG_DESCR:= fetch mail from a POP, IMAP, ETRN, or ODMR-capable server
PKG_SECTION:= text
diff --git a/package/fprobe/Makefile b/package/fprobe/Makefile
index 66d2b4abf..6e4edf980 100644
--- a/package/fprobe/Makefile
+++ b/package/fprobe/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= fprobe
PKG_VERSION:= 1.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap
PKG_MD5SUM:= 65850d0470078269b33eee58cba77ac2
PKG_DESCR:= NetFlow probe
PKG_SECTION:= net
diff --git a/package/freeradius-client/Makefile b/package/freeradius-client/Makefile
index 19f6a236c..6eaa74e8a 100644
--- a/package/freeradius-client/Makefile
+++ b/package/freeradius-client/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= freeradius-client
PKG_VERSION:= 1.1.6
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= edd4d904e802ff66d35532be1475cfa7
PKG_DESCR:= RADIUS client
PKG_SECTION:= net
diff --git a/package/freeradius-server/Makefile b/package/freeradius-server/Makefile
index 1e5304103..2a6b5404f 100644
--- a/package/freeradius-server/Makefile
+++ b/package/freeradius-server/Makefile
@@ -6,6 +6,16 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= freeradius-server
PKG_VERSION:= 2.1.7
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libtool openssl
+ifneq ($(ADK_PACKAGE_FREERADIUS_MOD_LDAP),)
+PKG_BUILDDEP+= openldap
+endif
+ifneq ($(ADK_PACKAGE_FREERADIUS_MOD_SQL_MYSQL),)
+PKG_BUILDDEP+= mysql
+endif
+ifneq ($(ADK_PACKAGE_FREERADIUS_MOD_SQL_PGSQL),)
+PKG_BUILDDEP+= postgresql
+endif
PKG_MD5SUM:= b1f77c5e3116bcb0ac0aa9080a06ebf1
PKG_DESCR:= a flexible RADIUS server
PKG_SECTION:= net
diff --git a/package/freetype/Makefile b/package/freetype/Makefile
index 63700c539..ead8b9fc8 100644
--- a/package/freetype/Makefile
+++ b/package/freetype/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libfreetype
PKG_VERSION:= 2.3.11
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib
PKG_MD5SUM:= 519c7cbf5cbd72ffa822c66844d3114c
PKG_DESCR:= A free, high-quality and portable font engine
PKG_SECTION:= libs
diff --git a/package/gatling/Makefile b/package/gatling/Makefile
index 623008b31..d8efdb125 100644
--- a/package/gatling/Makefile
+++ b/package/gatling/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME= gatling
PKG_VERSION= 0.10
PKG_RELEASE= 1
+PKG_BUILDDEP+= libowfat libiconv
PKG_MD5SUM= 04e8434156d91657c77a8a038c5b27cf
PKG_DESCR:= small non-forking webserver
PKG_SECTION:= net
diff --git a/package/gcc/Makefile b/package/gcc/Makefile
index 0e6384a5b..074b9a711 100644
--- a/package/gcc/Makefile
+++ b/package/gcc/Makefile
@@ -8,6 +8,7 @@ PKG_DESCR:= GNU compiler collection
PKG_SECTION:= comp
PKG_DEPENDS:= mpfr
PKG_OPTS:= noremove
+PKG_BUILDDEP+= gmp mpfr
include ${TOPDIR}/mk/package.mk
diff --git a/package/gdb/Makefile b/package/gdb/Makefile
index bd3c14cfb..b8cbfd502 100644
--- a/package/gdb/Makefile
+++ b/package/gdb/Makefile
@@ -7,6 +7,7 @@ include ${TOPDIR}/toolchain/gdb/Makefile.inc
PKG_DESCR:= GNU debugger
PKG_SECTION:= comp
PKG_DEPENDS:= libthread_db libncurses
+PKG_BUILDDEP+= ncurses readline
include ${TOPDIR}/mk/package.mk
diff --git a/package/gettext/Makefile b/package/gettext/Makefile
index 6d1349a0c..248eea1ea 100644
--- a/package/gettext/Makefile
+++ b/package/gettext/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME= gettext
PKG_VERSION= 0.16.1
PKG_RELEASE= 1
+PKG_BUILDDEP+= libiconv libpthread
PKG_MD5SUM= 3d9ad24301c6d6b17ec30704a13fe127
PKG_DESCR:= internationalisation library
PKG_SECTION:= libs
diff --git a/package/git/Makefile b/package/git/Makefile
index d8a3ca22e..312e758ef 100644
--- a/package/git/Makefile
+++ b/package/git/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= git
PKG_VERSION:= 1.6.5.5
PKG_RELEASE:= 2
+PKG_BUILDDEP+= openssl curl expat
PKG_MD5SUM:= 50fb736021ef89916af622cb4772bbea
PKG_DESCR:= fast version control system
PKG_SECTION:= misc
diff --git a/package/gkrellmd/Makefile b/package/gkrellmd/Makefile
index dba286e4b..51daec7b3 100644
--- a/package/gkrellmd/Makefile
+++ b/package/gkrellmd/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= gkrellmd
PKG_VERSION:= 2.3.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= glib
PKG_MD5SUM:= db8a983a60577a6b4886db96d6def011
PKG_DESCR:= The GNU Krell Monitors Server
PKG_SECTION:= net
diff --git a/package/glib/Makefile b/package/glib/Makefile
index 4d555f7bf..a2e5a3fc2 100644
--- a/package/glib/Makefile
+++ b/package/glib/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= glib
PKG_VERSION:= 2.22.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= gettext libiconv
PKG_MD5SUM:= 00eb873975e2ef9361b8177131c7c943
PKG_DESCR:= low-level core library that forms the basis of GTK+
PKG_SECTION:= libs
diff --git a/package/gmediaserver/Makefile b/package/gmediaserver/Makefile
index bfc0f135c..eb38904cd 100644
--- a/package/gmediaserver/Makefile
+++ b/package/gmediaserver/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= gmediaserver
PKG_VERSION:= 0.13.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= id3lib libupnp
PKG_MD5SUM:= c422de386331e2a1a859d45f6fa270a3
PKG_DESCR:= An UPnP music media server
PKG_SECTION:= net
diff --git a/package/gnutls/Makefile b/package/gnutls/Makefile
index 235be1de4..8d2c41abc 100644
--- a/package/gnutls/Makefile
+++ b/package/gnutls/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= gnutls
PKG_VERSION:= 2.8.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libgcrypt liblzo libtasn1 opencdk zlib ncurses
PKG_MD5SUM:= e3b2788b79bfc82acbe717e3c54d4e92
PKG_DESCR:= GNU TLS library
PKG_SECTION:= libs
diff --git a/package/gpsd/Makefile b/package/gpsd/Makefile
index ced495739..30e30e5a6 100644
--- a/package/gpsd/Makefile
+++ b/package/gpsd/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= gpsd
PKG_VERSION:= 2.39
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses
+ifeq (${ADK_COMPILE_GPSD_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 3db437196a6840c252fca99b6c19d4d0
PKG_DESCR:= An interface daemon for GPS receivers
PKG_SECTION:= net
diff --git a/package/gtk+/Makefile b/package/gtk+/Makefile
index d4e3b19e9..45e00ca4a 100644
--- a/package/gtk+/Makefile
+++ b/package/gtk+/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= gtk+
PKG_VERSION:= 2.18.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= cairo atk pango libXext renderproto libXrender
PKG_MD5SUM:= 8b34f75642ff6cc783dfa7e3af0ba443
PKG_DESCR:= GTK+ library
PKG_SECTION:= libs
diff --git a/package/heimdal/Makefile b/package/heimdal/Makefile
index 4af746246..ae97de3a3 100644
--- a/package/heimdal/Makefile
+++ b/package/heimdal/Makefile
@@ -6,6 +6,13 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= heimdal
PKG_VERSION:= 1.2.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl ncurses e2fsprogs
+ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_BDB},y)
+PKG_BUILDDEP+= libdb
+endif
+ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_LDAP},y)
+PKG_BUILDDEP+= openldap
+endif
PKG_MD5SUM:= 6e5028077e2a6b101a4a72801ba71b9e
PKG_DESCR:= Kerberos 5 server
PKG_SECTION:= net
diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile
index cf6b8c73c..2bf6da3b3 100644
--- a/package/hostapd/Makefile
+++ b/package/hostapd/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= hostapd
PKG_VERSION:= 0.6.9
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libnl openssl
PKG_MD5SUM:= 83630d11fa66ade9091f1b304fccd74c
PKG_DESCR:= an IEEE 802.11 AP, IEEE 802.1x/WPA/WPA2/EAP/RADIUS Authenticator
PKG_SECTION:= net
diff --git a/package/httping/Makefile b/package/httping/Makefile
index e494d9bd2..7d4e0b754 100644
--- a/package/httping/Makefile
+++ b/package/httping/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= httping
PKG_VERSION:= 1.3.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= 41c912a9ecc904e51d7260053fc2195c
PKG_DESCR:= Httping is like 'ping' but for http-requests
PKG_SECTION:= net
diff --git a/package/icecast/Makefile b/package/icecast/Makefile
index 55ac16f1e..fe9d193ca 100644
--- a/package/icecast/Makefile
+++ b/package/icecast/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= icecast
PKG_VERSION:= 2.3.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= curl libvorbis libxml2 libxslt
PKG_MD5SUM:= ff516b3ccd2bcc31e68f460cd316093f
PKG_DESCR:= A streaming media server
PKG_SECTION:= net
diff --git a/package/id3lib/Makefile b/package/id3lib/Makefile
index f7c7976a4..d27b46369 100644
--- a/package/id3lib/Makefile
+++ b/package/id3lib/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= id3lib
PKG_VERSION:= 3.8.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib libiconv
+ifeq (${ADK_COMPILE_ID3LIB_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 19f27ddd2dda4b2d26a559a4f0f402a7
PKG_DESCR:= An ID3v1/ID3v2 tagging library
PKG_SECTION:= libs
diff --git a/package/iftop/Makefile b/package/iftop/Makefile
index 0a83c3b8e..a5bd4e555 100644
--- a/package/iftop/Makefile
+++ b/package/iftop/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= iftop
PKG_VERSION:= 0.17
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap libpthread ncurses
PKG_MD5SUM:= 062bc8fb3856580319857326e0b8752d
PKG_DESCR:= display bandwith usage on an interface
PKG_SECTION:= net
diff --git a/package/ipcad/Makefile b/package/ipcad/Makefile
index 2c96da8b7..d238b86ab 100644
--- a/package/ipcad/Makefile
+++ b/package/ipcad/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ipcad
PKG_VERSION:= 3.7.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap
PKG_MD5SUM:= 125605249958894148ec26d3c88189f5
PKG_DESCR:= IP Cisco Accounting Daemon
PKG_SECTION:= net
diff --git a/package/iperf/Makefile b/package/iperf/Makefile
index dfc9b4732..139aa8608 100644
--- a/package/iperf/Makefile
+++ b/package/iperf/Makefile
@@ -6,6 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= iperf
PKG_VERSION:= 2.0.4
PKG_RELEASE:= 1
+ifeq (${ADK_COMPILE_IPERF_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 8c5bc14cc2ea55f18f22afe3c23e3dcb
PKG_DESCR:= Internet Protocol bandwidth measuring tool
PKG_SECTION:= net
diff --git a/package/iproute2/Makefile b/package/iproute2/Makefile
index feae51b1c..00d453020 100644
--- a/package/iproute2/Makefile
+++ b/package/iproute2/Makefile
@@ -6,6 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= iproute2
PKG_VERSION:= 2.6.29-1
PKG_RELEASE:= 2
+ifneq ($(strip ${ADK_PACKAGE_TC_ATM}),)
+PKG_BUILDDEP+= linux-atm
+endif
PKG_MD5SUM:= c1bc258a6c345905e79935ac7a3cc582
PKG_DESCR:= iproute2 routing control utility
PKG_SECTION:= net
diff --git a/package/ipsec-tools/Makefile b/package/ipsec-tools/Makefile
index f33dfca0e..f17d09f22 100644
--- a/package/ipsec-tools/Makefile
+++ b/package/ipsec-tools/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ipsec-tools
PKG_VERSION:= 0.7.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= 72861f005746ee27984b2ee715ecc629
PKG_DESCR:= IPsec management tools
PKG_SECTION:= net
diff --git a/package/iptables-snmp/Makefile b/package/iptables-snmp/Makefile
index a05a07d4d..4b3bff57f 100644
--- a/package/iptables-snmp/Makefile
+++ b/package/iptables-snmp/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= iptables-snmp
PKG_VERSION:= 0.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= net-snmp
PKG_MD5SUM:= 8370d2f0c899461a053da491400119d1
PKG_DESCR:= iptables support for net-snmp
PKG_SECTION:= net
diff --git a/package/iptraf/Makefile b/package/iptraf/Makefile
index d8d01ef8b..ccd333219 100644
--- a/package/iptraf/Makefile
+++ b/package/iptraf/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= iptraf
PKG_VERSION:= 3.0.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses
PKG_MD5SUM:= 377371c28ee3c21a76f7024920649ea8
PKG_DESCR:= A console-based network monitoring program.
PKG_SECTION:= net
diff --git a/package/irssi/Makefile b/package/irssi/Makefile
index 35f196048..68079651b 100644
--- a/package/irssi/Makefile
+++ b/package/irssi/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= irssi
PKG_VERSION:= 0.8.13
PKG_RELEASE:= 1
+PKG_BUILDDEP+= glib ncurses
+ifeq (${ADK_PACKAGE_IRSSI_SSL},y)
+PKG_BUILDDEP+= openssl
+endif
PKG_MD5SUM:= 0d6fc2203832b514eff014fffd574664
PKG_DESCR:= IRC text client
PKG_SECTION:= text
diff --git a/package/iw/Makefile b/package/iw/Makefile
index 606fbadf6..786dda0fb 100644
--- a/package/iw/Makefile
+++ b/package/iw/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= iw
PKG_VERSION:= 0.9.17
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libnl
PKG_MD5SUM:= 427841093ac11c5cbc025a3e13aac139
PKG_DESCR:= Tools for setting up WiFi cards via netlink (nl80211)
PKG_SECTION:= net
diff --git a/package/jamvm/Makefile b/package/jamvm/Makefile
index 6b4c7782e..3668e5562 100644
--- a/package/jamvm/Makefile
+++ b/package/jamvm/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= jamvm
PKG_VERSION:= 1.5.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libffi zlib
PKG_MD5SUM:= ce886163658d748113b0570dfae12aea
PKG_DESCR:= A Java Virtual Machine (JVM) implementation
PKG_SECTION:= misc
diff --git a/package/kismet/Makefile b/package/kismet/Makefile
index 1cff83cd8..160cc75a4 100644
--- a/package/kismet/Makefile
+++ b/package/kismet/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= kismet
PKG_VERSION:= 2008-05-R1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap ncurses
+ifeq (${ADK_COMPILE_KISMET_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 6ee365d36354b4dee4945e67f8149294
PKG_SITES:= http://www.kismetwireless.net/code/
diff --git a/package/knock/Makefile b/package/knock/Makefile
index c99b9a7b5..60c0af0bb 100644
--- a/package/knock/Makefile
+++ b/package/knock/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= knock
PKG_VERSION:= 0.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap
PKG_MD5SUM:= ca09d61458974cff90a700aba6120891
PKG_DESCR:= A port-knocking client
PKG_SECTION:= net
diff --git a/package/krb5/Makefile b/package/krb5/Makefile
index f1261ba64..41742cb64 100644
--- a/package/krb5/Makefile
+++ b/package/krb5/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= krb5
PKG_VERSION:= 1.7
PKG_RELEASE:= 2
+PKG_BUILDDEP+= ncurses e2fsprogs
PKG_MD5SUM:= 9f7b3402b4731a7fa543db193bf1b564
PKG_DESCR:= MIT kerberos server
PKG_SECTION:= net
diff --git a/package/l2tpns/Makefile b/package/l2tpns/Makefile
index b3512d9f0..a87f1e79f 100644
--- a/package/l2tpns/Makefile
+++ b/package/l2tpns/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= l2tpns
PKG_VERSION:= 2.1.21
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libcli
PKG_MD5SUM:= 385c58055723ebc6c38062acd2db9c2c
PKG_DESCR:= A layer 2 tunneling protocol network server (LNS)
PKG_SECTION:= net
diff --git a/package/less/Makefile b/package/less/Makefile
index 38e963bd3..ff82edefc 100644
--- a/package/less/Makefile
+++ b/package/less/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= less
PKG_VERSION:= 429
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses
PKG_MD5SUM:= 206f2f13b9b0a35e45df660fcb6af31d
PKG_DESCR:= A text mode pager
PKG_SECTION:= text
diff --git a/package/libICE/Makefile b/package/libICE/Makefile
index 75931d4f2..d779ab1db 100644
--- a/package/libICE/Makefile
+++ b/package/libICE/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libICE
PKG_VERSION:= 1.0.6
PKG_RELEASE:= 1
+PKG_BUILDDEP+= xtrans
PKG_MD5SUM:= 4a8f09f15fc92196b91d61e2dc9afcea
PKG_DESCR:= Inter-Client Exchange library
PKG_SECTION:= x11
diff --git a/package/libSM/Makefile b/package/libSM/Makefile
index e7114af7b..d00f16fb0 100644
--- a/package/libSM/Makefile
+++ b/package/libSM/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libSM
PKG_VERSION:= 1.1.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libICE
PKG_MD5SUM:= 1ee90d479298e48df7bb86a7ccbe00c9
PKG_DESCR:= X11 Session Management library
PKG_SECTION:= x11
diff --git a/package/libX11/Makefile b/package/libX11/Makefile
index 6a820cf15..3e76da9eb 100644
--- a/package/libX11/Makefile
+++ b/package/libX11/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libX11
PKG_VERSION:= 1.3.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= xproto xextproto xtrans libXdmcp libXau xcmiscproto bigreqsproto kbproto inputproto
PKG_MD5SUM:= b68aebbfcac1174c4c95d260e9369766
PKG_DESCR:= X11 client-side library
PKG_SECTION:= x11
diff --git a/package/libXaw/Makefile b/package/libXaw/Makefile
index 15beb5fdb..fd707feb1 100644
--- a/package/libXaw/Makefile
+++ b/package/libXaw/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libXaw
PKG_VERSION:= 1.0.7
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libXext libXmu libXpm
PKG_MD5SUM:= 67662e6b2dceb2907159215c83364c5a
PKG_DESCR:= X11 Athena Widget library
PKG_SECTION:= x11
diff --git a/package/libXext/Makefile b/package/libXext/Makefile
index 7eb32914e..259a66019 100644
--- a/package/libXext/Makefile
+++ b/package/libXext/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libXext
PKG_VERSION:= 1.1.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libX11
PKG_MD5SUM:= 6b61b3f657befded8ae66e04085c413e
PKG_DESCR:= X client interface to extensions of the X protocol
PKG_SECTION:= x11
diff --git a/package/libXfont/Makefile b/package/libXfont/Makefile
index 9b8243bdf..e6dcbd766 100644
--- a/package/libXfont/Makefile
+++ b/package/libXfont/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libXfont
PKG_VERSION:= 1.4.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= freetype fontcacheproto fontsproto libfontenc
PKG_MD5SUM:= bf134b9f79a7fc6507577bf5b6d4f412
PKG_DESCR:= X font Library
PKG_SECTION:= x11
diff --git a/package/libXmu/Makefile b/package/libXmu/Makefile
index 21d42aa38..ae021e974 100644
--- a/package/libXmu/Makefile
+++ b/package/libXmu/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libXmu
PKG_VERSION:= 1.0.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libXt
PKG_MD5SUM:= f49e3587cdc299707da0786a681f9c05
PKG_DESCR:= miscellaneous utility functions for X libraries
PKG_SECTION:= x11
diff --git a/package/libXt/Makefile b/package/libXt/Makefile
index e004885a3..e14d75f1a 100644
--- a/package/libXt/Makefile
+++ b/package/libXt/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libXt
PKG_VERSION:= 1.0.7
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libSM
PKG_MD5SUM:= 28f627c7a5ca08c2413ce91d21c177d8
PKG_DESCR:= X Toolkit Intrinsics
PKG_SECTION:= x11
diff --git a/package/libXv/Makefile b/package/libXv/Makefile
index 025f52bc1..9d51fbf1c 100644
--- a/package/libXv/Makefile
+++ b/package/libXv/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libXv
PKG_VERSION:= 1.0.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libX11 videoproto
PKG_MD5SUM:= 6ee98790de6b3cd470074e60057d5c5c
PKG_DESCR:= X11 Xvideo extensions
PKG_SECTION:= x11
diff --git a/package/libXxf86dga/Makefile b/package/libXxf86dga/Makefile
index 4259e7735..c850aa81e 100644
--- a/package/libXxf86dga/Makefile
+++ b/package/libXxf86dga/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libXxf86dga
PKG_VERSION:= 1.1.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= xf86dgaproto libXext libXaw
PKG_MD5SUM:= ecb81708157e1a1eeaba0e124f0ade08
PKG_DESCR:= client library for the XFree86-DGA extension
PKG_SECTION:= x11
diff --git a/package/libfontenc/Makefile b/package/libfontenc/Makefile
index 5776c67f3..f815b6c72 100644
--- a/package/libfontenc/Makefile
+++ b/package/libfontenc/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libfontenc
PKG_VERSION:= 1.0.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= xproto zlib
PKG_MD5SUM:= 0fa1988d08021225d18ced519a30d2b1
PKG_DESCR:= helps to deal with different encodings of fonts
PKG_SECTION:= x11
diff --git a/package/libgcrypt/Makefile b/package/libgcrypt/Makefile
index 4ee013601..49b89f430 100644
--- a/package/libgcrypt/Makefile
+++ b/package/libgcrypt/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libgcrypt
PKG_VERSION:= 1.4.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libgpg-error
PKG_MD5SUM:= 9e6dcf7fef1ae96b57207a1de91fdaa4
PKG_DESCR:= GNU crypto library
PKG_SECTION:= libs
diff --git a/package/libgd/Makefile b/package/libgd/Makefile
index e84ad6066..b6eac8885 100644
--- a/package/libgd/Makefile
+++ b/package/libgd/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= gd
PKG_VERSION:= 2.0.35
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpng jpeg
PKG_MD5SUM:= 982963448dc36f20cb79b6e9ba6fdede
PKG_DESCR:= A library for the dynamic creation of images
PKG_SECTION:= libs
diff --git a/package/libid3tag/Makefile b/package/libid3tag/Makefile
index 34b2417cc..3ab98c3c2 100644
--- a/package/libid3tag/Makefile
+++ b/package/libid3tag/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libid3tag
PKG_VERSION:= 0.15.1b
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib
PKG_MD5SUM:= e5808ad997ba32c498803822078748c3
PKG_DESCR:= an ID3 tag manipulation library
PKG_SECTION:= libs
diff --git a/package/libnet/Makefile b/package/libnet/Makefile
index 26f2d23bd..e1ad7ca7b 100644
--- a/package/libnet/Makefile
+++ b/package/libnet/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libnet
PKG_VERSION:= 1.1.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap
PKG_MD5SUM:= c5e06418a89cc4209f677a776a798fd9
PKG_DESCR:= a low-level packet creation library
PKG_SECTION:= libs
diff --git a/package/libnids/Makefile b/package/libnids/Makefile
index fe439d17c..3129465d3 100644
--- a/package/libnids/Makefile
+++ b/package/libnids/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libnids
PKG_VERSION:= 1.23
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libnet libpcap
PKG_MD5SUM:= af35e8ef403a0ca95df2da94db856428
PKG_DESCR:= Network Intrusion Detection System library
PKG_SECTION:= libs
diff --git a/package/libp11/Makefile b/package/libp11/Makefile
index 12565f97c..92ab3a367 100644
--- a/package/libp11/Makefile
+++ b/package/libp11/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libp11
PKG_VERSION:= 0.2.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl libtool
PKG_MD5SUM:= 9e2c5cbececde245e2d2f535bd49ce35
PKG_DESCR:= library implementing a small layer on top of PKCS11 API
PKG_SECTION:= libs
diff --git a/package/libpng/Makefile b/package/libpng/Makefile
index 9a685a1a3..d8f206b59 100644
--- a/package/libpng/Makefile
+++ b/package/libpng/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libpng
PKG_VERSION:= 1.2.36
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib
PKG_MD5SUM:= 4779cd011409ea9b591e11638781f0bf
PKG_DESCR:= A library for reading/writing PNG images
PKG_SECTION:= libs
diff --git a/package/libshout/Makefile b/package/libshout/Makefile
index f91cd809c..fef009845 100644
--- a/package/libshout/Makefile
+++ b/package/libshout/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libshout
PKG_VERSION:= 2.2.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libvorbis
PKG_MD5SUM:= 4f75fc9901c724b712c371c9a1e782d3
PKG_DESCR:= Library which can be used to write a source client for streaming
PKG_SECTION:= libs
diff --git a/package/libtirpc/Makefile b/package/libtirpc/Makefile
index 08031a3c8..8b48c0818 100644
--- a/package/libtirpc/Makefile
+++ b/package/libtirpc/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libtirpc
PKG_VERSION:= 0.2.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libgssglue
PKG_MD5SUM:= b3b513a8825aa227deac63ea38c64f41
PKG_DESCR:= a transport independent RPC library
PKG_SECTION:= libs
diff --git a/package/libtorrent/Makefile b/package/libtorrent/Makefile
index 331086440..5df9a7040 100644
--- a/package/libtorrent/Makefile
+++ b/package/libtorrent/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libtorrent
PKG_VERSION:= 0.12.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl libsigc++
PKG_MD5SUM:= fe8155d364b220713074423100d4bf29
PKG_DESCR:= A bittorrent library
PKG_SECTION:= libs
diff --git a/package/libusb-compat/Makefile b/package/libusb-compat/Makefile
index 81dcfcd49..63048e40c 100644
--- a/package/libusb-compat/Makefile
+++ b/package/libusb-compat/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libusb-compat
PKG_VERSION:= 0.1.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libusb
PKG_MD5SUM:= 32c775b97da7a11c6be7c487a0c9fc00
PKG_DESCR:= a Library for accessing Linux USB devices
PKG_SECTION:= libs
diff --git a/package/libvirt/Makefile b/package/libvirt/Makefile
index 06de43a1f..eb5cb3de7 100644
--- a/package/libvirt/Makefile
+++ b/package/libvirt/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libvirt
PKG_VERSION:= 0.7.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libxml2 gnutls python
PKG_MD5SUM:= 1645975662a326969d2f42d5c04574aa
PKG_DESCR:= virtualization API
PKG_SECTION:= utils
diff --git a/package/libvorbis/Makefile b/package/libvorbis/Makefile
index a78edf31d..3837f47f7 100644
--- a/package/libvorbis/Makefile
+++ b/package/libvorbis/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libvorbis
PKG_VERSION:= 1.2.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libogg
PKG_MD5SUM:= 478646358c49f34aedcce58948793619
PKG_DESCR:= The Vorbis General Audio Compression Codec library
PKG_SECTION:= libs
diff --git a/package/libxml2/Makefile b/package/libxml2/Makefile
index 2025a1a64..d2fa1fc54 100644
--- a/package/libxml2/Makefile
+++ b/package/libxml2/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libxml2
PKG_VERSION:= 2.7.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib
PKG_MD5SUM:= 8f4fda3969237c2a33bdb1583b5d06b2
PKG_DESCR:= XML C parser and toolkit
PKG_SECTION:= libs
diff --git a/package/libxslt/Makefile b/package/libxslt/Makefile
index 447fa5e7f..6e648c26b 100644
--- a/package/libxslt/Makefile
+++ b/package/libxslt/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libxslt
PKG_VERSION:= 1.1.24
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libxml2
PKG_MD5SUM:= e83ec5d27fc4c10c6f612879bea9a153
PKG_DESCR:= XSLT Library
PKG_SECTION:= libs
diff --git a/package/lighttpd/Makefile b/package/lighttpd/Makefile
index b20841a24..a08e4e597 100644
--- a/package/lighttpd/Makefile
+++ b/package/lighttpd/Makefile
@@ -6,6 +6,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= lighttpd
PKG_VERSION:= 1.4.25
PKG_RELEASE:= 1
+PKG_BUILDDEP+= pcre libxml2 sqlite
+ifeq (${ADK_COMPILE_LIGHTTPD_WITH_OPENSSL},y)
+PKG_BUILDDEP+= openssl
+endif
PKG_MD5SUM:= 87e936ec272ddaba8a2fdfecd8c6b704
PKG_DESCR:= a flexible and lightweight web server
PKG_SECTION:= net
diff --git a/package/links/Makefile b/package/links/Makefile
index 5238c599f..0c69aa24d 100644
--- a/package/links/Makefile
+++ b/package/links/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= links
PKG_VERSION:= 2.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl libpng jpeg gpm
PKG_MD5SUM:= c9937f9ed0061f264973182f871fb667
PKG_DESCR:= web browser with console graphic support
PKG_SECTION:= net
diff --git a/package/logrotate/Makefile b/package/logrotate/Makefile
index bd2b102ef..36b667534 100644
--- a/package/logrotate/Makefile
+++ b/package/logrotate/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= logrotate
PKG_VERSION:= 3.7.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= popt
PKG_MD5SUM:= 552639142e163745f6bcd4f1f3816d8a
PKG_DESCR:= logfile rotation utility
PKG_SECTION:= misc
diff --git a/package/lynx/Makefile b/package/lynx/Makefile
index 12a04f7f1..443dd82de 100644
--- a/package/lynx/Makefile
+++ b/package/lynx/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME= lynx
PKG_VERSION= 2.8.7dev.7
PKG_RELEASE= 2
+PKG_BUILDDEP+= ncurses openssl zlib
PKG_MD5SUM= 83891107c873421e5ac917cc0ab53fe8
PKG_DESCR:= Standard text browser
PKG_SECTION:= text
diff --git a/package/madplay/Makefile b/package/madplay/Makefile
index e890cc3c2..1ac596651 100644
--- a/package/madplay/Makefile
+++ b/package/madplay/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= madplay
PKG_VERSION:= 0.15.2b
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libid3tag libmad
PKG_MD5SUM:= 6814b47ceaa99880c754c5195aa1aac1
PKG_DESCR:= MPEG audio player in fixed point
PKG_SECTION:= sound
diff --git a/package/maradns/Makefile b/package/maradns/Makefile
index 174e60ccc..dc627ffe6 100644
--- a/package/maradns/Makefile
+++ b/package/maradns/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= maradns
PKG_VERSION:= 1.3.07.09
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpthread
PKG_MD5SUM:= 1d221438fb4d9317263555262b9c652c
PKG_DESCR:= small and secure DNS server
PKG_SECTION:= net
diff --git a/package/mc/Makefile b/package/mc/Makefile
index 056ff02b6..20b232bc1 100644
--- a/package/mc/Makefile
+++ b/package/mc/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME= mc
PKG_VERSION= 4.6.1
PKG_RELEASE= 1
+PKG_BUILDDEP+= glib ncurses
PKG_MD5SUM= 18b20db6e40480a53bac2870c56fc3c4
PKG_DESCR:= norton commander clone
PKG_SECTION:= misc
diff --git a/package/miax/Makefile b/package/miax/Makefile
index f028a4879..3f66f9cb7 100644
--- a/package/miax/Makefile
+++ b/package/miax/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= miax
PKG_VERSION:= 1.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= bluez
PKG_MD5SUM:= 44f0d2ef46ee2697d890b7b96846adc7
PKG_DESCR:= A console iax (asterisk) client
PKG_SECTION:= bluetooth
diff --git a/package/mini_httpd/Makefile b/package/mini_httpd/Makefile
index e43e7f4bf..3c86442a4 100644
--- a/package/mini_httpd/Makefile
+++ b/package/mini_httpd/Makefile
@@ -6,6 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= mini-httpd
PKG_VERSION:= 1.19
PKG_RELEASE:= 10
+ifneq ($(ADK_PACKAGE_MINI_HTTPD_OPENSSL),)
+PKG_BUILDDEP+= openssl
+endif
PKG_MD5SUM:= 7c68293ad265ecfe2edea917912f6f1f
PKG_DESCR:= A small HTTP server
PKG_SECTION:= net
diff --git a/package/miredo/Makefile b/package/miredo/Makefile
index d6fa6a968..8fbe95b48 100644
--- a/package/miredo/Makefile
+++ b/package/miredo/Makefile
@@ -6,6 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= miredo
PKG_VERSION:= 1.1.6
PKG_RELEASE:= 1
+ifeq (${ADK_COMPILE_MIREDO_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= bf49c1ddc068746760787d0cf76e40de
PKG_DESCR:= A Teredo (IPv6 tunneling over UDP through NAT) client and relay daemon
PKG_SECTION:= net
diff --git a/package/moc/Makefile b/package/moc/Makefile
index 994ced6c6..18a255ae1 100644
--- a/package/moc/Makefile
+++ b/package/moc/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= moc
PKG_VERSION:= 2.4.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libvorbis curl libmad flac ffmpeg
PKG_MD5SUM:= 647c770a5542a4ae5437386807a89796
PKG_DESCR:= console music player
PKG_SECTION:= sound
diff --git a/package/monit/Makefile b/package/monit/Makefile
index 99bc8e68e..80a6caa0a 100644
--- a/package/monit/Makefile
+++ b/package/monit/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= monit
PKG_VERSION:= 5.0.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= dae7859ec10551fc941daeae60dee9d3
PKG_DESCR:= An utility for system services monitoring
PKG_SECTION:= admin
diff --git a/package/motion/Makefile b/package/motion/Makefile
index 80f70edc0..c3a49e3be 100644
--- a/package/motion/Makefile
+++ b/package/motion/Makefile
@@ -6,6 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= motion
PKG_VERSION:= 3.2.11
PKG_RELEASE:= 1
+ifneq ($(ADK_PACKAGE_MOTION),)
+PKG_BUILDDEP+= jpeg
+endif
PKG_MD5SUM:= 3a26c00f3250eacf6fa93c7a7e0249d9
PKG_DESCR:= Webcam motion sensing and logging
PKG_SECTION:= multimedia
diff --git a/package/mpd/Makefile b/package/mpd/Makefile
index e0da5805d..150391af3 100644
--- a/package/mpd/Makefile
+++ b/package/mpd/Makefile
@@ -6,6 +6,37 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= mpd
PKG_VERSION:= 0.15.6
PKG_RELEASE:= 1
+PKG_BUILDDEP+= alsa-lib glib
+ifneq ($(ADK_COMPILE_MPD_WITH_MP3),)
+PKG_BUILDDEP+= libid3tag libmad
+endif
+ifneq ($(ADK_COMPILE_MPD_WITH_MP4),)
+PKG_BUILDDEP+= faad2
+endif
+ifneq ($(ADK_COMPILE_MPD_WITH_OGG),)
+PKG_BUILDDEP+= libvorbis
+endif
+ifneq ($(ADK_COMPILE_MPD_WITH_TREMOR),)
+PKG_BUILDDEP+= libvorbisidec
+endif
+ifneq ($(ADK_COMPILE_MPD_WITH_FLAC),)
+PKG_BUILDDEP+= flac
+endif
+ifneq ($(ADK_COMPILE_MPD_WITH_WAV),)
+PKG_BUILDDEP+= libaudiofile
+endif
+ifneq ($(ADK_COMPILE_MPD_WITH_SHOUT),)
+PKG_BUILDDEP+= lame
+endif
+ifneq ($(ADK_COMPILE_MPD_WITH_CURL),)
+PKG_BUILDDEP+= curl
+endif
+ifneq ($(ADK_COMPILE_MPD_WITH_MMS),)
+PKG_BUILDDEP+= libmms
+endif
+ifneq ($(ADK_COMPILE_MPD_WITH_FFMPEG),)
+PKG_BUILDDEP+= ffmpeg
+endif
PKG_MD5SUM:= c78b8933e4902c5dc407d59925f8b10e
PKG_DESCR:= A music player daemon
PKG_SECTION:= net
diff --git a/package/mplayer/Makefile b/package/mplayer/Makefile
index fc32bf9b2..ac0c50c92 100644
--- a/package/mplayer/Makefile
+++ b/package/mplayer/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= mplayer
PKG_VERSION:= 1.0-29987
PKG_RELEASE:= 1
+PKG_BUILDDEP+= alsa-lib libmad libvorbis faad2 ncurses zlib
PKG_MD5SUM:= 416fa6a247987305d74572d03dc6dde7
PKG_DESCR:= popular video player
PKG_SECTION:= video
diff --git a/package/mrd6/Makefile b/package/mrd6/Makefile
index 6f6ffb363..6ab7e889c 100644
--- a/package/mrd6/Makefile
+++ b/package/mrd6/Makefile
@@ -6,6 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= mrd6
PKG_VERSION:= 0.9.6
PKG_RELEASE:= 1
+ifeq (${ADK_COMPILE_MRD6_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 93ada53bb414b9d622f80a717bc2694b
PKG_DESCR:= IPv6 multicast routing daemon
PKG_SECTION:= net
diff --git a/package/mt-daapd/Makefile b/package/mt-daapd/Makefile
index b42b26654..213dcee68 100644
--- a/package/mt-daapd/Makefile
+++ b/package/mt-daapd/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= mt-daapd
PKG_VERSION:= 0.2.4
PKG_RELEASE:= 10
+PKG_BUILDDEP+= gdbm libid3tag
PKG_MD5SUM:= 2e1cdbe6b94ef153e915806f80a28dca
PKG_DESCR:= a multi-threaded DAAP (Digital Audio Access Protocol) daemon
PKG_SECTION:= net
diff --git a/package/mtr/Makefile b/package/mtr/Makefile
index a53f2ee8d..3147750b2 100644
--- a/package/mtr/Makefile
+++ b/package/mtr/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= mtr
PKG_VERSION:= 0.75
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses
PKG_MD5SUM:= 23baca52d0922c2ecba7eba05317868c
PKG_DESCR:= ncurses traceroute/ping tool
PKG_SECTION:= net
diff --git a/package/mutt/Makefile b/package/mutt/Makefile
index 4645ec40c..cf698f6d3 100644
--- a/package/mutt/Makefile
+++ b/package/mutt/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= mutt
PKG_VERSION:= 1.5.20
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses openssl
PKG_MD5SUM:= 027cdd9959203de0c3c64149a7ee351c
PKG_DESCR:= Mail text client
PKG_SECTION:= text
diff --git a/package/mysql/Makefile b/package/mysql/Makefile
index 7c3ffbcd2..db20a04af 100644
--- a/package/mysql/Makefile
+++ b/package/mysql/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= mysql
PKG_VERSION:= 5.0.85
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses zlib readline
PKG_MD5SUM:= f672ec5154f8ea3db87fec5e0b227f4c
PKG_DESCR:= MySQL client library
PKG_SECTION:= libs
diff --git a/package/nano/Makefile b/package/nano/Makefile
index 455bc7972..8878b3e22 100644
--- a/package/nano/Makefile
+++ b/package/nano/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= nano
PKG_VERSION:= 2.0.9
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses
PKG_MD5SUM:= 2be94dc43fb60fff4626a2401a977220
PKG_DESCR:= An enhanced clone of the Pico text editor
PKG_SECTION:= admin
diff --git a/package/neon/Makefile b/package/neon/Makefile
index e0d6c88d8..b284df38b 100644
--- a/package/neon/Makefile
+++ b/package/neon/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME= neon
PKG_VERSION= 0.28.4
PKG_RELEASE= 1
+PKG_BUILDDEP+= libpthread libxml2 openssl zlib
PKG_MD5SUM= 6c3b94362af743d046e198e9fcbe4a85
PKG_DESCR:= HTTP and WebDAV library
PKG_SECTION:= libs
diff --git a/package/net-snmp/Makefile b/package/net-snmp/Makefile
index ebd3b3d41..ffa2c7950 100644
--- a/package/net-snmp/Makefile
+++ b/package/net-snmp/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= net-snmp
PKG_VERSION:= 5.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libelf
PKG_MD5SUM:= 5b2551e7bd024fbbee84dca22a5f13a1
PKG_DESCR:= SNMP Agent
PKG_SECTION:= net
diff --git a/package/nfs-utils/Makefile b/package/nfs-utils/Makefile
index 0b4090cca..c2cb0d806 100644
--- a/package/nfs-utils/Makefile
+++ b/package/nfs-utils/Makefile
@@ -6,6 +6,13 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= nfs-utils
PKG_VERSION:= 1.2.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libtirpc
+ifeq (${ADK_COMPILE_NFS_UTILS_WITH_KRB5},y)
+PKG_BUILDDEP+= libnfsidmap krb5 libevent libgssglue librpcsecgss
+endif
+ifeq (${ADK_COMPILE_NFS_UTILS_WITH_HEIMDAL},y)
+PKG_BUILDDEP+= libnfsidmap heimdal libevent librpcsecgss
+endif
PKG_MD5SUM:= 779cf81044e92cb51ad590960e7b3671
PKG_DESCR:= Utilities for NFS kernel server implementation
PKG_SECTION:= net
diff --git a/package/nmap/Makefile b/package/nmap/Makefile
index 269a84ce3..4b0ea6d5c 100644
--- a/package/nmap/Makefile
+++ b/package/nmap/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= nmap
PKG_VERSION:= 5.00
PKG_RELEASE:= 1
+PKG_BUILDDEP+= pcre libpcap
+ifeq (${ADK_COMPILE_NMAP_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
PKG_MD5SUM:= 32d27de32166c02d670bb4a086185886
PKG_DESCR:= utility for network exploration or security auditing
PKG_SECTION:= net
diff --git a/package/nss/Makefile b/package/nss/Makefile
index 48022d2f2..19f53ea3a 100644
--- a/package/nss/Makefile
+++ b/package/nss/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= nss
PKG_VERSION:= 3.12.4
PKG_RELEASE:= 2
+PKG_BUILDDEP+= nspr zlib
PKG_MD5SUM:= 1ee3ed9c1900079319bd1de51388d856
PKG_DESCR:= Network Security Services (NSS) library
PKG_SECTION:= libs
diff --git a/package/nut/Makefile b/package/nut/Makefile
index 8c0c2c7c6..e01d4dcc0 100644
--- a/package/nut/Makefile
+++ b/package/nut/Makefile
@@ -6,6 +6,15 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= nut
PKG_VERSION:= 2.4.1
PKG_RELEASE:= 1
+ifneq (${ADK_PACKAGE_NUT_SSL},)
+PKG_BUILDDEP+= openssl
+endif
+ifneq (${ADK_PACKAGE_NUT_USB},)
+PKG_BUILDDEP+= libusb
+endif
+ifneq (${ADK_PACKAGE_NUT_SNMP},)
+PKG_BUILDDEP+= net-snmp
+endif
PKG_MD5SUM:= 609ebaf2123fc7171d25a6c742dd7d66
PKG_DESCR:= Network UPS Tools
PKG_SECTION:= sys
diff --git a/package/obexftp/Makefile b/package/obexftp/Makefile
index 55d108e76..c9d7c9a82 100644
--- a/package/obexftp/Makefile
+++ b/package/obexftp/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= obexftp
PKG_VERSION:= 0.23
PKG_RELEASE:= 2
+PKG_BUILDDEP+= openobex libiconv
PKG_MD5SUM:= f20762061b68bc921e80be4aebc349eb
PKG_DESCR:= bluetooth ftp application
PKG_SECTION:= bluetooth
diff --git a/package/opencdk/Makefile b/package/opencdk/Makefile
index 844f800a7..06cea155b 100644
--- a/package/opencdk/Makefile
+++ b/package/opencdk/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= opencdk
PKG_VERSION:= 0.6.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libgcrypt libgpg-error zlib
PKG_MD5SUM:= 7bfc820bcdc08f0c31f860710368071e
PKG_DESCR:= Open Crypto Development Kit library
PKG_SECTION:= libs
diff --git a/package/openct/Makefile b/package/openct/Makefile
index 0a53477be..d110e5c02 100644
--- a/package/openct/Makefile
+++ b/package/openct/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= openct
PKG_VERSION:= 0.6.16
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libtool libusb
PKG_MD5SUM:= d8d8c63269985303a303a218c4b953d7
PKG_DESCR:= drivers for several smart card readers
PKG_SECTION:= libs
diff --git a/package/openldap/Makefile b/package/openldap/Makefile
index c2d01b253..f2a42debb 100644
--- a/package/openldap/Makefile
+++ b/package/openldap/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= openldap
PKG_VERSION:= 2.4.19
PKG_RELEASE:= 1
+PKG_BUILDDEP+= cyrus-sasl openssl libdb
PKG_MD5SUM:= 4a6dab2711fcf141f19bb680bc335887
PKG_DESCR:= OpenLDAP client libraries
PKG_SECTION:= libs
diff --git a/package/openobex/Makefile b/package/openobex/Makefile
index a1fb09a0e..96a82afa8 100644
--- a/package/openobex/Makefile
+++ b/package/openobex/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= openobex
PKG_VERSION:= 1.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= bluez
PKG_MD5SUM:= 0d83dc86445a46a1b9750107ba7ab65c
PKG_DESCR:= implementation of the Object Exchange (OBEX) protocol
PKG_SECTION:= bluetooth
diff --git a/package/opensips/Makefile b/package/opensips/Makefile
index 142570f14..e49516e02 100644
--- a/package/opensips/Makefile
+++ b/package/opensips/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= opensips
PKG_VERSION:= 1.5.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= 87c6fe40c143775d6a1be1beb75c3eb2
PKG_DESCR:= a high-performance, configurable, free SIP server
PKG_SECTION:= net
diff --git a/package/openssh/Makefile b/package/openssh/Makefile
index 2bf5163eb..e7fe57098 100644
--- a/package/openssh/Makefile
+++ b/package/openssh/Makefile
@@ -6,6 +6,13 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= openssh
PKG_VERSION:= 5.3p1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib openssl
+ifeq (${ADK_COMPILE_OPENSSH_WITH_KRB5},y)
+PKG_BUILDDEP+= krb5
+endif
+ifeq (${ADK_COMPILE_OPENSSH_WITH_HEIMDAL},y)
+PKG_BUILDDEP+= heimdal
+endif
PKG_MD5SUM:= 13563dbf61f36ca9a1e4254260131041
PKG_DESCR:= OpenSSH server
PKG_SECTION:= net
diff --git a/package/openssl-pkcs11/Makefile b/package/openssl-pkcs11/Makefile
index 9e3054c4a..13d869e36 100644
--- a/package/openssl-pkcs11/Makefile
+++ b/package/openssl-pkcs11/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= openssl-pkcs11
PKG_VERSION:= 0.1.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libp11
PKG_MD5SUM:= 840af6e54dc21445c54f74e15005ba4d
PKG_DESCR:= pkcs11 engine for openssl
PKG_SECTION:= crypto
diff --git a/package/openssl/Makefile b/package/openssl/Makefile
index 698f96ddf..b74664d3a 100644
--- a/package/openssl/Makefile
+++ b/package/openssl/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= openssl
PKG_VERSION:= 0.9.8l
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib
PKG_MD5SUM:= 05a0ece1372392a2cf310ebb96333025
PKG_DESCR:= OpenSSL (Secure Socket Layer) libraries
PKG_SECTION:= libs
diff --git a/package/openswan/Makefile b/package/openswan/Makefile
index 912d1abdc..0fd7c6710 100644
--- a/package/openswan/Makefile
+++ b/package/openswan/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= openswan
PKG_VERSION:= 2.6.22
PKG_RELEASE:= 1
+PKG_BUILDDEP+= gmp
PKG_MD5SUM:= 9a30009bade8a1b09fba27680c87cf72
PKG_DESCR:= IPSec software
PKG_SECTION:= net
diff --git a/package/openvpn/Makefile b/package/openvpn/Makefile
index 40b690ed8..e4fbce369 100644
--- a/package/openvpn/Makefile
+++ b/package/openvpn/Makefile
@@ -6,6 +6,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= openvpn
PKG_VERSION:= 2.1.0
PKG_RELEASE:= 1
+ifeq ($(ADK_PACKAGE_LIBOPENSSL),y)
+PKG_BUILDDEP+= openssl
+endif
+ifeq ($(ADK_PACKAGE_OPENVPN_LZO),y)
+PKG_BUILDDEP+= liblzo
+endif
PKG_MD5SUM:= 452a83326ae198cf961e9ae02539c8fb
PKG_DESCR:= Open Source VPN solution using SSL
PKG_SECTION:= net
diff --git a/package/oprofile/Makefile b/package/oprofile/Makefile
index 0e680b4ea..2f19a4fc0 100644
--- a/package/oprofile/Makefile
+++ b/package/oprofile/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= oprofile
PKG_VERSION:= 0.9.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= popt
PKG_MD5SUM:= 82b059379895cf125261d7d773465915
PKG_DESCR:= system-wide profiles
PKG_SECTION:= utils
diff --git a/package/osiris/Makefile b/package/osiris/Makefile
index 97f1e9d52..e7dcd3c1c 100644
--- a/package/osiris/Makefile
+++ b/package/osiris/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= osiris
PKG_VERSION:= 4.2.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= 1951c7dc0fe729af9ffaf58910340d12
PKG_DESCR:= Host Integrity Monitoring System (scanning agent)
PKG_SECTION:= admin
diff --git a/package/palantir/Makefile b/package/palantir/Makefile
index e87cb295c..e3c1e1130 100644
--- a/package/palantir/Makefile
+++ b/package/palantir/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= palantir
PKG_VERSION:= 2.7
PKG_RELEASE:= 1
+PKG_BUILDDEP+= jpeg
PKG_MD5SUM:= 3a5b1fb340857f6d8e357bf39b77583e
PKG_DESCR:= A multichannel interactive streaming solution
PKG_SECTION:= net
diff --git a/package/parted/Makefile b/package/parted/Makefile
index 63a83105d..f845eb866 100644
--- a/package/parted/Makefile
+++ b/package/parted/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= parted
PKG_VERSION:= 1.9.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= e2fsprogs lvm readline
PKG_MD5SUM:= 055305bc7bcf472ce38f9abf69a9d94d
PKG_DESCR:= GNU parted
PKG_DEPENDS:= libuuid libreadline device-mapper
diff --git a/package/pciutils/Makefile b/package/pciutils/Makefile
index d6530bc1c..23994bb29 100644
--- a/package/pciutils/Makefile
+++ b/package/pciutils/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= pciutils
PKG_VERSION:= 3.0.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib
PKG_MD5SUM:= d07da501bb11e6af40acd036536c2e9a
PKG_DESCR:= PCI Utilities
PKG_SECTION:= sys
diff --git a/package/php/Makefile b/package/php/Makefile
index 9a479fb5d..d5b00c054 100644
--- a/package/php/Makefile
+++ b/package/php/Makefile
@@ -6,6 +6,34 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= php
PKG_VERSION:= 5.3.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl zlib
+ifneq ($(ADK_PACKAGE_PHP_MOD_CURL),)
+PKG_BUILDDEP+= curl
+endif
+ifneq ($(ADK_PACKAGE_PHP_MOD_GD),)
+PKG_BUILDDEP+= libgd libpng
+endif
+ifneq ($(ADK_PACKAGE_PHP_MOD_GMP),)
+PKG_BUILDDEP+= gmp
+endif
+ifneq ($(ADK_PACKAGE_PHP_MOD_LDAP),)
+PKG_BUILDDEP+= openldap
+endif
+ifneq ($(ADK_PACKAGE_PHP_MOD_MYSQL),)
+PKG_BUILDDEP+= mysql
+endif
+ifneq ($(ADK_PACKAGE_PHP_MOD_PCRE),)
+PKG_BUILDDEP+= pcre
+endif
+ifneq ($(ADK_PACKAGE_PHP_MOD_PGSQL),)
+PKG_BUILDDEP+= postgresql
+endif
+ifneq ($(ADK_PACKAGE_PHP_MOD_SQLITE),)
+PKG_BUILDDEP+= sqlite
+endif
+ifneq ($(ADK_PACKAGE_PHP_MOD_XML),)
+PKG_BUILDDEP+= expat
+endif
PKG_MD5SUM:= 41fbb368d86acb13fc3519657d277681
PKG_DESCR:= PHP CLI
PKG_SECTION:= net
diff --git a/package/pkgmaker b/package/pkgmaker
index 4a2cd3ff8..15ee78901 100644
--- a/package/pkgmaker
+++ b/package/pkgmaker
@@ -1,3 +1,4 @@
+cd "$(dirname "$0")"
export TOPDIR=$(realpath ..)
if gmake --help >/dev/null 2>&1; then
export GMAKE=gmake
diff --git a/package/pmacct/Makefile b/package/pmacct/Makefile
index c57e9008a..ac7aa9249 100644
--- a/package/pmacct/Makefile
+++ b/package/pmacct/Makefile
@@ -6,6 +6,16 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= pmacct
PKG_VERSION:= 0.11.6
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap
+ifneq ($(ADK_COMPILE_PMACCT_MYSQL),)
+PKG_BUILDDEP+= mysql
+endif
+ifneq ($(ADK_COMPILE_PMACCT_PGSQL),)
+PKG_BUILDDEP+= postgresql
+endif
+ifneq ($(ADK_COMPILE_PMACCT_SQLITE),)
+PKG_BUILDDEP+= sqlite
+endif
PKG_MD5SUM:= e0f3bcba9a73b7a70bbf5a303cd22f77
PKG_DESCR:= IP accounting daemons
PKG_SECTION:= net
diff --git a/package/popt/Makefile b/package/popt/Makefile
index d08c20801..6645d5c0e 100644
--- a/package/popt/Makefile
+++ b/package/popt/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= popt
PKG_VERSION:= 1.15
PKG_RELEASE:= 2
+PKG_BUILDDEP+= libiconv
PKG_MD5SUM:= c61ef795fa450eb692602a661ec8d7f1
PKG_DESCR:= a command line option parsing library
PKG_SECTION:= libs
diff --git a/package/portmap/Makefile b/package/portmap/Makefile
index d6ffd9404..85faa8d2f 100644
--- a/package/portmap/Makefile
+++ b/package/portmap/Makefile
@@ -6,6 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= portmap
PKG_VERSION:= 6.0
PKG_RELEASE:= 1
+ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
+PKG_BUILDDEP+= tcp_wrappers
+endif
PKG_MD5SUM:= ac108ab68bf0f34477f8317791aaf1ff
PKG_DESCR:= RPC portmapper
PKG_SECTION:= net
diff --git a/package/postgresql/Makefile b/package/postgresql/Makefile
index fa676f312..d06cca865 100644
--- a/package/postgresql/Makefile
+++ b/package/postgresql/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= postgresql
PKG_VERSION:= 8.3.7
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib
PKG_MD5SUM:= 6e36f3b4dd27ae0c352376ea9f843de2
PKG_DESCR:= PostgreSQL database library
PKG_SECTION:= libs
diff --git a/package/privoxy/Makefile b/package/privoxy/Makefile
index 0416b5e78..aa6fa2b2f 100644
--- a/package/privoxy/Makefile
+++ b/package/privoxy/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= privoxy
PKG_VERSION:= 3.0.15
PKG_RELEASE:= 1
+PKG_BUILDDEP+= pcre
PKG_VARIANT:= beta
PKG_MD5SUM:= 6571dc9524e945e79c2af62fefe7b107
PKG_DESCR:= web proxy with advanced filtering capabilities
diff --git a/package/procps/Makefile b/package/procps/Makefile
index 3839b3133..a917a7009 100644
--- a/package/procps/Makefile
+++ b/package/procps/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= procps
PKG_VERSION:= 3.2.7
PKG_RELEASE:= 4
+PKG_BUILDDEP+= ncurses
PKG_MD5SUM:= f490bca772b16472962c7b9f23b1e97d
PKG_DESCR:= The /proc file system utilities
PKG_SECTION:= utils
diff --git a/package/ptunnel/Makefile b/package/ptunnel/Makefile
index dab849974..9389aa5bc 100644
--- a/package/ptunnel/Makefile
+++ b/package/ptunnel/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ptunnel
PKG_VERSION:= 0.61
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap
PKG_MD5SUM:= b45f73875f2af48f101816672f83a5fe
PKG_DESCR:= Tunnel TCP connections over ICMP packets
PKG_SECTION:= net
diff --git a/package/quagga/Makefile b/package/quagga/Makefile
index 301fb2dbc..aec761417 100644
--- a/package/quagga/Makefile
+++ b/package/quagga/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= quagga
PKG_VERSION:= 0.99.15
PKG_RELEASE:= 1
+PKG_BUILDDEP+= readline ncurses
PKG_MD5SUM:= 8975414c76a295f4855a417af0b5ddce
PKG_DESCR:= A routing software package
PKG_SECTION:= net
diff --git a/package/raddump/Makefile b/package/raddump/Makefile
index 28c84e709..9a84d3bd6 100755
--- a/package/raddump/Makefile
+++ b/package/raddump/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= raddump
PKG_VERSION:= 0.3.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl libpcap
PKG_MD5SUM:= f8c29c67141ea78bb6ae8b97d5149480
PKG_DESCR:= interprets captured RADIUS packets
PKG_SECTION:= net
diff --git a/package/rarpd/Makefile b/package/rarpd/Makefile
index 5e09b743a..b7805f693 100644
--- a/package/rarpd/Makefile
+++ b/package/rarpd/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= rarpd
PKG_VERSION:= 1.1
PKG_RELEASE:= 11
+PKG_BUILDDEP+= libnet
PKG_MD5SUM:= 04e2ca849e758d0b88c8281775ec3b58
PKG_DESCR:= Reverse ARP Daemon
PKG_SECTION:= net
diff --git a/package/readline/Makefile b/package/readline/Makefile
index a9d81fa1e..68f68cbea 100644
--- a/package/readline/Makefile
+++ b/package/readline/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= readline
PKG_VERSION:= 5.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses
PKG_MD5SUM:= e39331f32ad14009b9ff49cc10c5e751
PKG_DESCR:= Command line editing library
PKG_SECTION:= libs
diff --git a/package/rpm/Makefile b/package/rpm/Makefile
index 8526288be..89b50a647 100644
--- a/package/rpm/Makefile
+++ b/package/rpm/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= rpm
PKG_VERSION:= 4.7.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= nss libdb
PKG_MD5SUM:= 224715646325df4cd3904e3ac9e16186
PKG_DESCR:= Package Manager
PKG_SECTION:= base
diff --git a/package/rrdcollect/Makefile b/package/rrdcollect/Makefile
index cc711c505..78c67ebab 100644
--- a/package/rrdcollect/Makefile
+++ b/package/rrdcollect/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= rrdcollect
PKG_VERSION:= 0.2.3
PKG_RELEASE:= 8
+PKG_BUILDDEP+= rrdtool
PKG_MD5SUM:= 5e4305c612bc3cccbaf802c275c81a11
PKG_DESCR:= Round-Robin Database (RRD) collecting daemon
PKG_SECTION:= admin
diff --git a/package/rrdtool/Makefile b/package/rrdtool/Makefile
index e1c09b1e5..6c729367e 100644
--- a/package/rrdtool/Makefile
+++ b/package/rrdtool/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= rrdtool
PKG_VERSION:= 1.2.30
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libxml2 cgilib freetype libart libpng
PKG_MD5SUM:= 19b24f7184a8dbf7b48c1bbb565ad9fb
PKG_DESCR:= Round Robin Database (RRD) management library and tools
PKG_SECTION:= libs
diff --git a/package/rrs/Makefile b/package/rrs/Makefile
index fe16bdd2c..f88b71eaa 100644
--- a/package/rrs/Makefile
+++ b/package/rrs/Makefile
@@ -6,6 +6,13 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= rrs
PKG_VERSION:= 1.70
PKG_RELEASE:= 2
+PKG_BUILDDEP+= zlib
+ifeq (${ADK_COMPILE_RRS_WITH_UCLIBCXX},y)
+PKG_BUILDDEP+= uclibc++
+endif
+ifneq ($(ADK_PACKAGE_RRS),)
+PKG_BUILDDEP+= openssl
+endif
PKG_MD5SUM:= b400d03c0e39e3e78a7327ba78f789f0
PKG_DESCR:= A reverse (connecting) remote shell, with SSL support.
PKG_SECTION:= net
diff --git a/package/rsync/Makefile b/package/rsync/Makefile
index 013bffe81..b34584534 100644
--- a/package/rsync/Makefile
+++ b/package/rsync/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= rsync
PKG_VERSION:= 3.0.6
PKG_RELEASE:= 1
+PKG_BUILDDEP+= popt
PKG_MD5SUM:= e9865d093a18e4668b9d31b635dc8e99
PKG_DESCR:= utility that provides fast incremental file transfer
PKG_SECTION:= net
diff --git a/package/rtorrent/Makefile b/package/rtorrent/Makefile
index c2de864ba..863cad6c8 100644
--- a/package/rtorrent/Makefile
+++ b/package/rtorrent/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= rtorrent
PKG_VERSION:= 0.8.5
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses libtorrent curl
PKG_MD5SUM:= e701095e1824b7e512a17000f4c0a783
PKG_DESCR:= console torrent application
PKG_SECTION:= net
diff --git a/package/sane-backends/Makefile b/package/sane-backends/Makefile
index 55785bcd9..deba7ab65 100644
--- a/package/sane-backends/Makefile
+++ b/package/sane-backends/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= sane-backends
PKG_VERSION:= 1.0.20
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpthread libusb
PKG_MD5SUM:= a0cfdfdebca2feb4f2ba5d3418b15a42
PKG_DESCR:= Scanner access now easy
PKG_SECTION:= misc
diff --git a/package/scanlogd/Makefile b/package/scanlogd/Makefile
index f0b66541d..9d06cfc3d 100644
--- a/package/scanlogd/Makefile
+++ b/package/scanlogd/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= scanlogd
PKG_VERSION:= 2.2.6
PKG_RELEASE:= 8
+PKG_BUILDDEP+= libpcap libnids libnet
PKG_MD5SUM:= 7b8187ea718ebe47f22805b921b909ab
PKG_DESCR:= Portscan logger
PKG_SECTION:= net
diff --git a/package/screen/Makefile b/package/screen/Makefile
index 5ce7ed6e4..424c3de5f 100644
--- a/package/screen/Makefile
+++ b/package/screen/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= screen
PKG_VERSION:= 4.0.3
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses
PKG_MD5SUM:= 8506fd205028a96c741e4037de6e3c42
PKG_DESCR:= A window manager for the terminal session
PKG_SECTION:= misc
diff --git a/package/serdisplib/Makefile b/package/serdisplib/Makefile
index 9dbf0356c..e49d1e224 100644
--- a/package/serdisplib/Makefile
+++ b/package/serdisplib/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= serdisplib
PKG_VERSION:= 1.97.8
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libgd libusb
PKG_MD5SUM:= 2aa91c43d01d2dfc9fbc1116e3063ae1
PKG_DESCR:= display drivers (serial, parallel, USB)
PKG_SECTION:= misc
diff --git a/package/siproxd/Makefile b/package/siproxd/Makefile
index d04603641..8443ec888 100644
--- a/package/siproxd/Makefile
+++ b/package/siproxd/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= siproxd
PKG_VERSION:= 0.7.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libosip2
PKG_MD5SUM:= 45e5a44803181e2bf3361d562060c904
PKG_DESCR:= a SIP (Session Initiation Protocol) proxy
PKG_SECTION:= net
diff --git a/package/sipsak/Makefile b/package/sipsak/Makefile
index 45ba006c9..2249c2cf5 100644
--- a/package/sipsak/Makefile
+++ b/package/sipsak/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= sipsak
PKG_VERSION:= 0.9.6
PKG_RELEASE:= 2
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= c4eb8e282902e75f4f040f09ea9d99d5
PKG_DESCR:= a SIP stress and diagnostics utility
PKG_SECTION:= net
diff --git a/package/sispmctl/Makefile b/package/sispmctl/Makefile
index ad6c7ee93..86feb2d30 100644
--- a/package/sispmctl/Makefile
+++ b/package/sispmctl/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= sispmctl
PKG_VERSION:= 2.7
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libusb
PKG_MD5SUM:= 2457f76cd129f880634f3381be0aeb76
PKG_DESCR:= control application for power sockets
PKG_SECTION:= misc
diff --git a/package/snort-wireless/Makefile b/package/snort-wireless/Makefile
index 829b9410f..4cb773d6f 100644
--- a/package/snort-wireless/Makefile
+++ b/package/snort-wireless/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= snort-wireless
PKG_VERSION:= 2.4.3-alpha04
PKG_RELEASE:= 9
+PKG_BUILDDEP+= libnet libpcap pcre
PKG_MD5SUM:= 1aa699ae279bf7a1140cf6cca02f9999
PKG_DESCR:= a flexible Wireless Network Intrusion Detection System (NIDS)
PKG_SECTION:= net
diff --git a/package/snort/Makefile b/package/snort/Makefile
index d57a6c555..7ceadf1d6 100644
--- a/package/snort/Makefile
+++ b/package/snort/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= snort
PKG_VERSION:= 2.6.1.2
PKG_RELEASE:= 8
+PKG_BUILDDEP+= libnet libpcap pcre
PKG_MD5SUM:= 22c448e25538cdf74c62abe586aeac0a
PKG_DESCR:= a flexible Network Intrusion Detection System (NIDS)
PKG_SECTION:= net
diff --git a/package/socat/Makefile b/package/socat/Makefile
index ab6d5c059..5ca41edc1 100644
--- a/package/socat/Makefile
+++ b/package/socat/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= socat
PKG_VERSION:= 1.7.0.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= 82967132b5a8ca4d07e54370fdcb2662
PKG_DESCR:= A multipurpose relay (SOcket CAT)
PKG_SECTION:= net
diff --git a/package/sqlite/Makefile b/package/sqlite/Makefile
index f01b739b0..bd2825e71 100644
--- a/package/sqlite/Makefile
+++ b/package/sqlite/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= sqlite
PKG_VERSION:= 3.6.20
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses readline
PKG_MD5SUM:= 0faf8fc8ccff5297513c6532b2b4ce23
PKG_DESCR:= Self-contained, embeddable, zero-configuration SQL database
PKG_SECTION:= libs
diff --git a/package/squid/Makefile b/package/squid/Makefile
index cfc35061c..d3993c979 100644
--- a/package/squid/Makefile
+++ b/package/squid/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= squid
PKG_VERSION:= 3.0.STABLE20
PKG_RELEASE:= 2
+PKG_BUILDDEP+= openssl
PKG_MD5SUM:= b69577cfc5cfb6808ec426e3a933220d
PKG_DESCR:= squid web and cache proxy
PKG_SECTION:= net
diff --git a/package/ssltunnel/Makefile b/package/ssltunnel/Makefile
index 738fa125c..87f653380 100644
--- a/package/ssltunnel/Makefile
+++ b/package/ssltunnel/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ssltunnel
PKG_VERSION:= 1.16
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openssl ppp
PKG_MD5SUM:= 4039b50566a33a4077883ea974e476d5
PKG_DESCR:= A PPP over SSL vpn tool
PKG_SECTION:= net
diff --git a/package/subversion/Makefile b/package/subversion/Makefile
index 8d847faa1..9203f9510 100644
--- a/package/subversion/Makefile
+++ b/package/subversion/Makefile
@@ -6,6 +6,10 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= subversion
PKG_VERSION:= 1.6.6
PKG_RELEASE:= 1
+PKG_BUILDDEP+= apr-util expat apr zlib libiconv
+ifneq ($(ADK_PACKAGE_SUBVERSION_NEON),)
+PKG_BUILDDEP+= neon
+endif
PKG_MD5SUM:= 0ab0f26f6eb056add1b9d3059a3f4247
PKG_DESCR:= revision control program
PKG_SECTION:= net
diff --git a/package/swconfig/Makefile b/package/swconfig/Makefile
index 26f96f449..2c4586712 100644
--- a/package/swconfig/Makefile
+++ b/package/swconfig/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= swconfig
PKG_VERSION:= 1.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libnl
PKG_DESCR:= switch configuration utility
PKG_SECTION:= misc
diff --git a/package/syslog-ng/Makefile b/package/syslog-ng/Makefile
index 2080c51fd..5bd1daa0c 100644
--- a/package/syslog-ng/Makefile
+++ b/package/syslog-ng/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= syslog-ng
PKG_VERSION:= 1.6.12
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libol tcp_wrappers
PKG_MD5SUM:= a3cbfdb6e1e5beea181a7349749719f3
PKG_DESCR:= A powerful syslog daemon
PKG_SECTION:= admin
diff --git a/package/tcpdump/Makefile b/package/tcpdump/Makefile
index cce37c8fc..7e92a9fa4 100644
--- a/package/tcpdump/Makefile
+++ b/package/tcpdump/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= tcpdump
PKG_VERSION:= 4.0.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libpcap
PKG_MD5SUM:= b22ca72890df2301d922c9f2d17867f9
PKG_DESCR:= A tool for network monitoring and data acquisition.
PKG_SECTION:= net
diff --git a/package/tinc/Makefile b/package/tinc/Makefile
index efa122a5e..0b697916e 100644
--- a/package/tinc/Makefile
+++ b/package/tinc/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= tinc
PKG_VERSION:= 1.0.11
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib openssl liblzo
PKG_MD5SUM:= ee0b1a3366c6e379cae34be6fa5dcb15
PKG_DESCR:= VPN tunnel daemon
PKG_SECTION:= net
diff --git a/package/tntnet/Makefile b/package/tntnet/Makefile
index c251da7a9..8eed06493 100644
--- a/package/tntnet/Makefile
+++ b/package/tntnet/Makefile
@@ -6,6 +6,12 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= tntnet
PKG_VERSION:= 1.6.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= cxxtools zlib
+ifneq (${ADK_COMPILE_TNTNET_WITH_OPENSSL},)
+PKG_BUILDDEP+= openssl
+else ifneq (${ADK_COMPILE_TNTNET_WITH_GNUTLS},)
+PKG_BUILDDEP+= gnutls
+endif
PKG_MD5SUM:= e2c3c5075a890711a7569730493c0996
PKG_DESCR:= small C++ application server
PKG_SECTION:= net
diff --git a/package/tor/Makefile b/package/tor/Makefile
index 4eebf0243..f25a3f5bb 100644
--- a/package/tor/Makefile
+++ b/package/tor/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= tor
PKG_VERSION:= 0.2.1.20
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libevent openssl zlib
PKG_MD5SUM:= 0d62ee2332fdd95de43debac7435df19
PKG_DESCR:= An anonymous Internet communication system
PKG_SECTION:= net
diff --git a/package/ulogd/Makefile b/package/ulogd/Makefile
index bf3c56d1e..a7dcfa015 100644
--- a/package/ulogd/Makefile
+++ b/package/ulogd/Makefile
@@ -6,6 +6,19 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ulogd
PKG_VERSION:= 1.24
PKG_RELEASE:= 7
+PKG_BUILDDEP+= iptables
+ifneq ($(ADK_PACKAGE_ULOGD_MOD_MYSQL),)
+PKG_BUILDDEP+= mysql
+endif
+ifneq ($(ADK_PACKAGE_ULOGD_MOD_PCAP),)
+PKG_BUILDDEP+= libpcap
+endif
+ifneq ($(ADK_PACKAGE_ULOGD_MOD_PGSQL),)
+PKG_BUILDDEP+= postgresql
+endif
+ifneq ($(ADK_PACKAGE_ULOGD_MOD_SQLITE),)
+PKG_BUILDDEP+= sqlite
+endif
PKG_MD5SUM:= 05b4ed2926b9a22aaeaf642917bbf8ff
PKG_DESCR:= Netfilter userspace logging daemon
PKG_SECTION:= net
diff --git a/package/usbutils/Makefile b/package/usbutils/Makefile
index 8e032cc0e..43aafc6df 100644
--- a/package/usbutils/Makefile
+++ b/package/usbutils/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= usbutils
PKG_VERSION:= 0.73
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libusb
PKG_MD5SUM:= 88978b4ad891f610620b1b8e5e0f43eb
PKG_DESCR:= A program to list USB devices
PKG_SECTION:= misc
diff --git a/package/ussp-push/Makefile b/package/ussp-push/Makefile
index c62f5a885..f22f474fb 100644
--- a/package/ussp-push/Makefile
+++ b/package/ussp-push/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ussp-push
PKG_VERSION:= 0.11
PKG_RELEASE:= 1
+PKG_BUILDDEP+= openobex
PKG_MD5SUM:= 5c44983ee27809867041feff6bb4423a
PKG_DESCR:= OBEX push command
PKG_SECTION:= bluetooth
diff --git a/package/util-linux-ng/Makefile b/package/util-linux-ng/Makefile
index f7b3d7d1e..b3343b8a7 100644
--- a/package/util-linux-ng/Makefile
+++ b/package/util-linux-ng/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= util-linux-ng
PKG_VERSION:= 2.16.1
PKG_RELEASE:= 2
+PKG_BUILDDEP+= e2fsprogs ncurses
PKG_MD5SUM:= fc57e5fd5be9e569b026b5077fafe84f
PKG_DESCR:= Linux utilities
PKG_SECTION:= admin
diff --git a/package/vilistextum/Makefile b/package/vilistextum/Makefile
index f96ca2103..95cdbaa92 100644
--- a/package/vilistextum/Makefile
+++ b/package/vilistextum/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= vilistextum
PKG_VERSION:= 2.6.9
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libiconv
PKG_MD5SUM:= 5ba56ffdc56758da716bb46c3e0f517e
PKG_DESCR:= html to ascii converter
PKG_SECTION:= text
diff --git a/package/vim/Makefile b/package/vim/Makefile
index 8aa47d59a..a831bf041 100644
--- a/package/vim/Makefile
+++ b/package/vim/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME= vim
PKG_VERSION= 7.2
PKG_RELEASE= 1
+PKG_BUILDDEP+= ncurses
PKG_MD5SUM= f0901284b338e448bfd79ccca0041254
PKG_DESCR:= The text editor
PKG_SECTION:= text
diff --git a/package/vnc-reflector/Makefile b/package/vnc-reflector/Makefile
index 0e7bbd9be..b83ff00f8 100644
--- a/package/vnc-reflector/Makefile
+++ b/package/vnc-reflector/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= vnc-reflector
PKG_VERSION:= 1.2.4
PKG_RELEASE:= 1
+PKG_BUILDDEP+= jpeg zlib
PKG_MD5SUM:= c3f88bc62f228b335c25c07f9744ab0c
PKG_DESCR:= specialized VNC server which acts as a proxy
PKG_SECTION:= net
diff --git a/package/vpnc/Makefile b/package/vpnc/Makefile
index f38d055df..c6129d9b2 100644
--- a/package/vpnc/Makefile
+++ b/package/vpnc/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= vpnc
PKG_VERSION:= 0.4.0
PKG_RELEASE:= 2
+PKG_BUILDDEP+= libgcrypt libgpg-error
PKG_MD5SUM:= 604807e7dd90fce00a4e2344ee29c76d
PKG_DESCR:= client for cisco3000 VPN Concentrator.
PKG_SECTION:= net
diff --git a/package/vtun/Makefile b/package/vtun/Makefile
index 513d6ccdc..854f5850d 100644
--- a/package/vtun/Makefile
+++ b/package/vtun/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= vtun
PKG_VERSION:= 3.0.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= zlib openssl liblzo
PKG_MD5SUM:= c342ffe77055d4248a38f0b380f28c1b
PKG_DESCR:= A VPN tunnel daemon
PKG_SECTION:= net
diff --git a/package/wdfs/Makefile b/package/wdfs/Makefile
index 744770fa1..280e610e2 100644
--- a/package/wdfs/Makefile
+++ b/package/wdfs/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME= wdfs
PKG_VERSION= 1.4.2
PKG_RELEASE= 2
+PKG_BUILDDEP+= openssl fuse neon glib
PKG_MD5SUM= 628bb44194d04c1cf8aacc446ed0a230
PKG_DESCR:= WebDAV filesystem
PKG_SECTION:= net
diff --git a/package/weechat/Makefile b/package/weechat/Makefile
index 59529b51e..804657cf8 100644
--- a/package/weechat/Makefile
+++ b/package/weechat/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= weechat
PKG_VERSION:= 0.1.8
PKG_RELEASE:= 2
+PKG_BUILDDEP+= ncurses gnutls lua libiconv
PKG_MD5SUM:= 73d6bc211ac32c597f0d278506480a20
PKG_DESCR:= Lightweight IRC client
PKG_SECTION:= net
diff --git a/package/wpa_supplicant/Makefile b/package/wpa_supplicant/Makefile
index d1f8fd190..9e4ae77ff 100644
--- a/package/wpa_supplicant/Makefile
+++ b/package/wpa_supplicant/Makefile
@@ -6,6 +6,9 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= wpa_supplicant
PKG_VERSION:= 0.6.9
PKG_RELEASE:= 1
+ifeq (${ADK_COMPILE_WPA_SUPPLICANT_WITH_OPENSSL},y)
+PKG_BUILDDEP+= openssl
+endif
PKG_MD5SUM:= 0efb8fcedf0a8acf6f423dfdb0658fdd
PKG_DESCR:= WPA Supplicant with support for WPA and WPA2
PKG_SECTION:= net
diff --git a/package/xf86-video-cirrus/Makefile b/package/xf86-video-cirrus/Makefile
index 4e40f4d0b..370aac976 100644
--- a/package/xf86-video-cirrus/Makefile
+++ b/package/xf86-video-cirrus/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= xf86-video-cirrus
PKG_VERSION:= 1.3.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= xorg-server
PKG_MD5SUM:= c63a29917c48d0c317445991fc36d09a
PKG_DESCR:= X11 driver for Cirrus VGA chips
PKG_SECTION:= x11
diff --git a/package/xf86-video-geode/Makefile b/package/xf86-video-geode/Makefile
index 083c15703..f124fc201 100644
--- a/package/xf86-video-geode/Makefile
+++ b/package/xf86-video-geode/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= xf86-video-geode
PKG_VERSION:= 2.11.6
PKG_RELEASE:= 1
+PKG_BUILDDEP+= xorg-server
PKG_MD5SUM:= a673c0f88037d12fbb96d9fefc82785b
PKG_DESCR:= X11 driver for AMD Geode VGA chip
PKG_SECTION:= x11
diff --git a/package/xf86dga/Makefile b/package/xf86dga/Makefile
index 70e0d5e39..1adb287ae 100644
--- a/package/xf86dga/Makefile
+++ b/package/xf86dga/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= xf86dga
PKG_VERSION:= 1.0.2
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libXxf86dga
PKG_MD5SUM:= ac30b5705f487554c5de0b466e846c31
PKG_SITES:= ${MASTER_SITE_XORG}
diff --git a/package/xfsprogs/Makefile b/package/xfsprogs/Makefile
index bdb09fe91..f323ef9e6 100644
--- a/package/xfsprogs/Makefile
+++ b/package/xfsprogs/Makefile
@@ -6,6 +6,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= xfsprogs
PKG_VERSION:= 3.0.0
PKG_RELEASE:= 1
+PKG_BUILDDEP+= e2fsprogs
PKG_MD5SUM:= ec734f935ec87ebb8be890d29380a3e6
PKG_DESCR:= Utilities to create and check XFS filesystems
PKG_SECTION:= admin
diff --git a/package/xkeyboard-config/Makefile b/package/xkeyboard-config/Makefile
index 710dd1eb6..cb105a795 100644
--- a/package/xkeyboard-config/Makefile
+++ b/package/xkeyboard-config/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= xkeyboard-config
PKG_VERSION:= 1.7
PKG_RELEASE:= 1
+PKG_BUILDDEP+= xkbcomp
PKG_MD5SUM:= c024a6e2a5b8c4ce3d9d1f1286466163
PKG_DESCR:= X keyboard config
PKG_SECTION:= x11
diff --git a/package/xorg-server/Makefile b/package/xorg-server/Makefile
index 34b77a158..f20811848 100644
--- a/package/xorg-server/Makefile
+++ b/package/xorg-server/Makefile
@@ -6,6 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= xorg-server
PKG_VERSION:= 1.7.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= libX11 randrproto renderproto fixesproto damageproto scrnsaverproto resourceproto fontsproto videoproto compositeproto evieext libxkbfile libXfont pixman libpciaccess openssl
PKG_MD5SUM:= 913a672cbd6da516de15965d594e20b9
PKG_DESCR:= Xorg server
PKG_SECTION:= x11