Browse Source

add new ADK Symbol PKG_NEEDS

There are a lot of packages which needs special features either
toolchain or hardware features. Add a new symbol which will be
used to disable packages, when a toolchain for example does
not provide this feature.

At the moment following features are required to set for a
package: threads rt c++.

There will follow: mmu iconv.

This will help to better support targets without MMU or
threading support.
Waldemar Brodkorb 8 years ago
parent
commit
ff6f45b68a
100 changed files with 203 additions and 121 deletions
  1. 25 4
      adk/tools/pkgmaker.c
  2. 2 2
      docs/adding-packages-auto.txt
  3. 5 1
      docs/package-reference.txt
  4. 1 1
      package/ImageMagick/Makefile
  5. 1 1
      package/aiccu/Makefile
  6. 2 1
      package/aircrack-ng/Makefile
  7. 2 1
      package/alsa-utils/Makefile
  8. 1 1
      package/apr/Makefile
  9. 2 1
      package/asterisk/Makefile
  10. 1 1
      package/avahi/Makefile
  11. 1 1
      package/bcm28xx-vc/Makefile
  12. 1 1
      package/beecrypt/Makefile
  13. 2 1
      package/bind/Makefile
  14. 2 1
      package/bogofilter/Makefile
  15. 2 1
      package/clamav/Makefile
  16. 2 1
      package/collectd/Makefile
  17. 1 1
      package/coreutils/Makefile
  18. 1 1
      package/ctorrent/Makefile
  19. 2 1
      package/cups/Makefile
  20. 2 1
      package/curl/Makefile
  21. 1 1
      package/cxxtools/Makefile
  22. 1 1
      package/db/Makefile
  23. 1 1
      package/dillo/Makefile
  24. 1 1
      package/e2fsprogs/Makefile
  25. 1 1
      package/ffmpeg/Makefile
  26. 1 1
      package/findutils/Makefile
  27. 4 3
      package/firefox/Makefile
  28. 1 1
      package/fluxbox/Makefile
  29. 2 1
      package/fprobe-ulog/Makefile
  30. 2 1
      package/fprobe/Makefile
  31. 2 1
      package/freeglut/Makefile
  32. 2 1
      package/freeradius-server/Makefile
  33. 1 1
      package/gdk-pixbuf/Makefile
  34. 2 1
      package/git/Makefile
  35. 2 1
      package/gkrellm/Makefile
  36. 1 1
      package/glib/Makefile
  37. 1 1
      package/gpsd/Makefile
  38. 2 1
      package/gtk3/Makefile
  39. 3 2
      package/harfbuzz/Makefile
  40. 2 1
      package/icecast/Makefile
  41. 3 2
      package/iftop/Makefile
  42. 1 1
      package/iperf/Makefile
  43. 2 1
      package/iw/Makefile
  44. 2 1
      package/jamvm/Makefile
  45. 2 1
      package/kismet/Makefile
  46. 3 2
      package/kodi/Makefile
  47. 2 1
      package/krb5/Makefile
  48. 2 1
      package/lftp/Makefile
  49. 2 1
      package/libgtk2/Makefile
  50. 2 1
      package/libnet/Makefile
  51. 1 1
      package/libnotify/Makefile
  52. 1 1
      package/libosip2/Makefile
  53. 1 1
      package/libtiff/Makefile
  54. 1 1
      package/libupnp/Makefile
  55. 2 1
      package/libxslt/Makefile
  56. 1 2
      package/log4cplus/Makefile
  57. 2 2
      package/ltp/Makefile
  58. 2 1
      package/ltrace/Makefile
  59. 2 1
      package/maradns/Makefile
  60. 2 1
      package/mesa/Makefile
  61. 2 1
      package/mongrel2/Makefile
  62. 1 1
      package/monit/Makefile
  63. 2 1
      package/mosquitto/Makefile
  64. 2 1
      package/motion/Makefile
  65. 3 2
      package/mpd/Makefile
  66. 2 1
      package/mpg123/Makefile
  67. 2 1
      package/mplayer/Makefile
  68. 3 2
      package/neon/Makefile
  69. 2 1
      package/nfs-utils/Makefile
  70. 2 1
      package/nginx/Makefile
  71. 2 1
      package/nmap/Makefile
  72. 1 1
      package/ntpclient/Makefile
  73. 2 2
      package/omxplayer/Makefile
  74. 3 2
      package/openjdk7/Makefile
  75. 2 1
      package/openldap/Makefile
  76. 2 1
      package/openssh/Makefile
  77. 2 1
      package/openswan/Makefile
  78. 2 1
      package/opkg/Makefile
  79. 2 1
      package/oprofile/Makefile
  80. 1 1
      package/pango/Makefile
  81. 1 1
      package/parprouted/Makefile
  82. 2 1
      package/parted/Makefile
  83. 1 1
      package/patchelf/Makefile
  84. 2 1
      package/pcsc-lite/Makefile
  85. 1 1
      package/pdnsd/Makefile
  86. 1 1
      package/perl/Makefile
  87. 1 1
      package/php/Makefile
  88. 3 2
      package/poppler/Makefile
  89. 2 1
      package/privoxy/Makefile
  90. 2 1
      package/ptunnel/Makefile
  91. 2 1
      package/pulseaudio/Makefile
  92. 2 1
      package/python2/Makefile
  93. 2 1
      package/python3/Makefile
  94. 2 2
      package/qingy/Makefile
  95. 3 4
      package/rsyslog/Makefile
  96. 1 1
      package/rt-tests/Makefile
  97. 2 1
      package/rtorrent/Makefile
  98. 1 1
      package/ruby/Makefile
  99. 2 1
      package/rxvt-unicode/Makefile
  100. 3 2
      package/samba/Makefile

+ 25 - 4
adk/tools/pkgmaker.c

@@ -1,7 +1,7 @@
 /*
  * pkgmaker - create package meta-data for OpenADK buildsystem
  *
- * Copyright (C) 2010-2014 Waldemar Brodkorb <wbx@openadk.org>
+ * Copyright (C) 2010-2015 Waldemar Brodkorb <wbx@openadk.org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <ctype.h>
@@ -327,7 +327,7 @@ int main() {
 	char dir[MAXPATH];
 	char variable[2*MAXVAR];
 	char *key, *value, *token, *cftoken, *sp, *hkey, *val, *pkg_fd;
-	char *pkg_name, *pkg_depends, *pkg_depends_system, *pkg_depends_libc, *pkg_section, *pkg_descr, *pkg_url;
+	char *pkg_name, *pkg_depends, *pkg_needs, *pkg_depends_system, *pkg_depends_libc, *pkg_section, *pkg_descr, *pkg_url;
 	char *pkg_cxx, *pkg_subpkgs, *pkg_cfline, *pkg_dflt;
 	char *pkgname, *sysname, *pkg_debug, *pkg_bb;
 	char *pkg_libc_depends, *pkg_host_depends, *pkg_system_depends, *pkg_arch_depends, *pkg_flavours, *pkg_flavours_string, *pkg_choices, *pseudo_name;
@@ -342,6 +342,7 @@ int main() {
 	pkg_section = NULL;
 	pkg_url = NULL;
 	pkg_depends = NULL;
+	pkg_needs = NULL;
 	pkg_depends_system = NULL;
 	pkg_depends_libc = NULL;
 	pkg_opts = NULL;
@@ -566,6 +567,8 @@ int main() {
 						continue;
 					if ((parse_var(buf, "PKG_DEPENDS", pkg_depends, &pkg_depends)) == 0)
 						continue;
+					if ((parse_var(buf, "PKG_NEEDS", pkg_needs, &pkg_needs)) == 0)
+						continue;
 					if ((parse_var_with_system(buf, "PKG_DEPENDS_", pkg_depends_system, &pkg_depends_system, &sysname, 12)) == 0)
 						continue;
 					if ((parse_var_with_system(buf, "PKG_DEPENDS_", pkg_depends_libc, &pkg_depends_libc, &sysname, 12)) == 0)
@@ -626,6 +629,8 @@ int main() {
 				fprintf(stderr, "Package description is %s\n", pkg_descr);
 			if (pkg_depends != NULL)
 				fprintf(stderr, "Package dependencies are %s\n", pkg_depends);
+			if (pkg_needs != NULL)
+				fprintf(stderr, "Package needing %s\n", pkg_needs);
 			if (pkg_depends_system != NULL)
 				fprintf(stderr, "Package systemspecific dependencies are %s\n", pkg_depends_system);
 			if (pkg_subpkgs != NULL)
@@ -756,7 +761,7 @@ int main() {
 					fprintf(cfg, "\tprompt \"%s. %s\"\n", pseudo_name, pkg_descr);
 				}	
 				
-				fprintf(cfg, "\tboolean\n");
+				fprintf(cfg, "\tbool\n");
 				free(pseudo_name);
 
 				/* print custom cf line */
@@ -880,6 +885,22 @@ int main() {
 					pkg_helper = NULL;
 				}
 
+				/* create needs dependency information */
+				if (pkg_needs != NULL) {
+					token = strtok(pkg_needs, " ");
+					while (token != NULL) {
+						if (strncmp(token, "threads", 7) == 0)
+							fprintf(cfg, "\tselect ADK_PACKAGE_LIBPTHREAD\n");
+						if (strncmp(token, "rt", 2) == 0)
+							fprintf(cfg, "\tselect ADK_PACKAGE_LIBRT\n");
+						if (strncmp(token, "c++", 3) == 0)
+							fprintf(cfg, "\tselect ADK_PACKAGE_LIBSTDCXX\n");
+						token = strtok(NULL, " ");
+					}
+					free(pkg_needs);
+					pkg_needs = NULL;
+				}
+
 				/* create package dependency information */
 				if (pkg_depends != NULL) {
 					token = strtok(pkg_depends, " ");

+ 2 - 2
docs/adding-packages-auto.txt

@@ -21,8 +21,8 @@ package, with an example:
 09: PKG_HASH:=		62333167b79afb0b25a843513288c67b59547acf653e8fbe62ee64e71ebd1587
 10: PKG_DESCR:=		foo library
 11: PKG_SECTION:=	libs
-12: PKG_BUILDDEP:=	openssl
-13: PKG_DEPENDS:=	libopenssl
+12: PKG_BUILDDEP:=	curl
+13: PKG_DEPENDS:=	libcurl
 14: PKG_URL:=		http://www.libfoo.org/
 15: PKG_SITES:=		http://downloads.libfoo.org/
 16:

+ 5 - 1
docs/package-reference.txt

@@ -44,10 +44,14 @@ information is:
   installed before the configuration of the current package starts.
 
 * +PKG_DEPENDS+ optional, lists the runtime dependencies that are required to
-  run the software package on the target. It conatins a list of package names,
+  run the software package on the target. It contains a list of package names,
   which might be different to the package directory name. See what is used
   in PKG_template, to find out the package name used here.
 
+* +PKG_NEEDS+ optional, lists the features that are required to build or
+  run the software package on the target. It contains a list of keywords.
+  Supported are +threads+ +rt+ +c+++
+
 * +PKG_NOPARALLEL+ optional, may be set to 1, to disable parallel building of the
   package via make -jn, n=4 is default, but can be changed in +Global Settings+ in the
   menu based configuration.

+ 1 - 1
package/ImageMagick/Makefile

@@ -10,9 +10,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		5fd180603e60c624c05c644a8340f4f4e92c19dc3c41d374d38f76c69cd48ba3
 PKG_DESCR:=		image processing and converting utility
 PKG_SECTION:=		mm/image
-PKG_DEPENDS:=		libstdcxx
 PKG_BUILDDEP:=		libpng libjpeg-turbo libtiff fontconfig
 PKG_BUILDDEP+=		pango libtool e2fsprogs
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.imagemagick.org/
 PKG_SITES:=		http://www.imagemagick.org/download/
 PKG_LIBNAME:=		libimagemagick

+ 1 - 1
package/aiccu/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		11
 PKG_HASH:=		2260f426c13471169ccff8cb4a3908dc5f79fda18ddb6a55363e7824e6c4c760
 PKG_DESCR:=		sixxs automatic ipv6 connectivity client utility
 PKG_SECTION:=		net/ipv6
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.sixxs.net/
 PKG_SITES:=		http://www.sixxs.net/archive/sixxs/aiccu/unix/
 PKG_CFLINE_AICCU:=	select ADK_KERNEL_TUN m

+ 2 - 1
package/aircrack-ng/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		ba5b3eda44254efc5b7c9f776eb756f7cc323ad5d0813c101e92edb483d157e9
 PKG_DESCR:=		set of tools for auditing wireless networks
 PKG_SECTION:=		net/wifi
-PKG_DEPENDS:=		libpthread libpcap libnl
+PKG_DEPENDS:=		libpcap libnl
 PKG_BUILDDEP:=		libpcap libnl
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.aircrack-ng.org/
 PKG_SITES:=		http://download.aircrack-ng.org/
 # do not build parallel, otherwise libosdep.a may not be ready when compiling airtun-ng

+ 2 - 1
package/alsa-utils/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		5160058f3e14483ced5de919dd473f93932059454530a9b7ef97dcabd6833e9b
 PKG_DESCR:=		mixer/player/record utilities
 PKG_SECTION:=		mm/audio
-PKG_DEPENDS:=		alsa-lib libpthread librt
+PKG_DEPENDS:=		alsa-lib
 PKG_BUILDDEP:=		alsa-lib
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://www.alsa-project.org/
 PKG_SITES:=		ftp://ftp.alsa-project.org/pub/utils/
 

+ 1 - 1
package/apr/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		1af06e1720a58851d90694a984af18355b65bb0d047be03ec7d659c746d6dbdb
 PKG_DESCR:=		apache portable runtime library
 PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://apr.apache.org/
 PKG_SITES:=		http://mirrors.ibiblio.org/apache//apr/
 PKG_OPTS:=		dev

+ 2 - 1
package/asterisk/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		2
 PKG_HASH:=		7b3d84a3403fce590377808eaa4b08b6320666ca0e37eba0ad578b66211b13c8
 PKG_DESCR:=		open source pbx
 PKG_SECTION:=		net/voip
-PKG_DEPENDS:=		libncurses libpthread libcurl libstdcxx
+PKG_DEPENDS:=		libncurses libcurl
 PKG_BUILDDEP:=		ncurses zlib curl popt
+PKG_NEEDS:=		threads c++
 PKG_URL:=		http://www.asterisk.org/
 PKG_SITES:=		http://downloads.asterisk.org/pub/telephony/asterisk/releases/
 PKG_NOPARALLEL:=	1

+ 1 - 1
package/avahi/Makefile

@@ -9,8 +9,8 @@ PKG_RELEASE:=		4
 PKG_HASH:=		8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48
 PKG_DESCR:=		multicast dns daemon
 PKG_SECTION:=		net/dns
-PKG_DEPENDS:=		libstdcxx
 PKG_BUILDDEP:=		libdaemon expat gdbm glib gettext-tiny
+PKG_NEEDS:=		c++
 PKG_URL:=		http://avahi.org/
 PKG_SITES:=		http://avahi.org/download/
 PKG_LIBNAME:=		libavahi

+ 1 - 1
package/bcm28xx-vc/Makefile

@@ -8,8 +8,8 @@ PKG_VERSION:=		c2f27fb8e581f8e5af83bf28422553ade8f7a7c8
 PKG_RELEASE:=		1
 PKG_DESCR:=		videocore tools and libraries
 PKG_SECTION:=		libs/video
-PKG_DEPENDS:=		libpthread
 PKG_BUILDDEP:=		cmake-host
+PKG_NEEDS:=		threads
 PKG_URL:=		https://github.com/raspberrypi/userland
 PKG_SITES:=		https://github.com/raspberrypi/userland.git
 

+ 1 - 1
package/beecrypt/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		286f1f56080d1a6b1d024003a5fa2158f4ff82cae0c6829d3c476a4b5898c55d
 PKG_DESCR:=		cryptography toolkit library
 PKG_SECTION:=		libs/crypto
-PKG_DEPENDS:=		libstdcxx
+PKG_NEEDS:=		c++
 PKG_URL:=		http://beecrypt.sourceforge.net/
 PKG_SITES:=		http://sourceforge.net/projects/beecrypt/files/beecrypt/$(PKG_VERSION)/
 PKG_OPTS:=		dev

+ 2 - 1
package/bind/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		3f23e7fcb363a2594ed1f065868c2c1080a93636a4fcb4c47f9e164e2cd74c66
 PKG_DESCR:=		dns server
 PKG_SECTION:=		net/dns
-PKG_DEPENDS:=		libbind libxml2 libstdcxx
+PKG_DEPENDS:=		libbind libxml2
 PKG_BUILDDEP:=		libxml2
+PKG_NEEDS:=		c++
 PKG_URL:=		https://www.isc.org/software/bind/
 PKG_SITES:=		ftp://ftp.isc.org/isc/bind9/${PKG_VERSION}/
 PKG_LIBNAME:=		libbind

+ 2 - 1
package/bogofilter/Makefile

@@ -10,7 +10,8 @@ PKG_HASH:=		d2f2598d1300307209b7b1905cc0637d2d053c0a4701a8d44383867299578471
 PKG_DESCR:=		mail filter software
 PKG_SECTION:=		net/mail
 PKG_BUILDDEP:=		db
-PKG_DEPENDS:=		libdb libstdcxx
+PKG_DEPENDS:=		libdb
+PKG_NEEDS:=		c++
 PKG_URL:=		http://bogofilter.sourceforge.net/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=bogofilter/}
 

+ 2 - 1
package/clamav/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		282417b707740de13cd8f18d4cbca9ddd181cf96b444db2cad98913a5153e272
 PKG_DESCR:=		anti-virus software
 PKG_SECTION:=		sys/misc
-PKG_DEPENDS:=		libressl libxml2 zlib libpthread
+PKG_DEPENDS:=		libressl libxml2 zlib
 PKG_BUILDDEP:=		libressl libxml2 zlib
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.clamav.net/
 PKG_SITES:=		http://www.clamav.net/downloads/production/
 

+ 2 - 1
package/collectd/Makefile

@@ -10,7 +10,8 @@ PKG_HASH:=		853680936893df00bfc2be58f61ab9181fecb1cf45fc5cddcb7d25da98855f65
 PKG_DESCR:=		system statistics collection daemon
 PKG_SECTION:=		sys/misc
 PKG_BUILDDEP:=		libtool
-PKG_DEPENDS:=		libpthread libltdl
+PKG_DEPENDS:=		libltdl
+PKG_NEEDS:=		threads
 PKG_URL:=		http://collectd.org/
 PKG_SITES:=		http://collectd.org/files/
 

+ 1 - 1
package/coreutils/Makefile

@@ -10,7 +10,7 @@ PKG_HASH:=		a2d75286a4b9ef3a13039c2da3868a61be4ee9f17d8ae380a35a97e506972170
 PKG_DESCR:=		basic file, shell and text manipulation utilities
 PKG_SECTION:=		base/apps
 PKG_BUILDDEP:=		gmp
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.gnu.org/software/coreutils/
 PKG_SITES:=		http://ftp.gnu.org/gnu/coreutils/
 PKG_BB:=		1

+ 1 - 1
package/ctorrent/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		2
 PKG_HASH:=		c87366c91475931f75b924119580abd06a7b3cb3f00fef47346552cab1e24863
 PKG_DESCR:=		console-based bittorrent client
 PKG_SECTION:=		app/p2p
-PKG_DEPENDS:=		libstdcxx
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.rahul.net/dholmes/ctorrent
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=dtorrent/}
 

+ 2 - 1
package/cups/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		4
 PKG_HASH:=		f52bec893d9daf92b6029be79c07e6c516b4c85ffae3e6e01885cc85e9081681
 PKG_DESCR:=		common unix printing system
 PKG_SECTION:=		net/misc
-PKG_DEPENDS:=		zlib libpthread libstdcxx
+PKG_DEPENDS:=		zlib
 PKG_BUILDDEP:=		cups-host zlib
+PKG_NEEDS:=		threads c++
 PKG_URL:=		http://www.cups.org/
 PKG_SITES:=		http://www.cups.org/software/${PKG_VERSION}/
 PKG_OPTS:=		dev

+ 2 - 1
package/curl/Makefile

@@ -11,6 +11,7 @@ PKG_DESCR:=		client-side url transfer tool
 PKG_SECTION:=		net/http
 PKG_DEPENDS:=		libcurl
 PKG_BUILDDEP:=		zlib
+PKG_NEEDS:=		threads
 PKG_URL:=		http://curl.haxx.se/
 PKG_SITES:=		http://curl.haxx.se/download/
 PKG_LIBNAME:=		libcurl
@@ -21,7 +22,7 @@ DISTFILES:=             ${PKG_NAME}-${PKG_VERSION}.tar.gz
 PKG_SUBPKGS:=		CURL LIBCURL
 PKGSD_LIBCURL:=		client-side url transfer library
 PKGSC_LIBCURL:=		libs/net
-PKGSS_LIBCURL:=		zlib libpthread
+PKGSS_LIBCURL:=		zlib
 
 PKG_FLAVOURS_CURL:=	WITH_IPV6
 PKGFD_WITH_IPV6:=	enable ipv6 support

+ 1 - 1
package/cxxtools/Makefile

@@ -8,7 +8,7 @@ PKG_VERSION:=		2.2.1
 PKG_RELEASE:=		2
 PKG_HASH:=		8cebb6d6cda7c93cc4f7c0d552a68d50dd5530b699cf87916bb3b708fdc4e342
 PKG_DESCR:=		collection of general-purpose c++ classes
-PKG_DEPENDS:=		libstdcxx
+PKG_NEEDS:=		c++
 PKG_SECTION:=		libs/misc
 PKG_URL:=		http://www.tntnet.org/
 PKG_SITES:=		http://www.tntnet.org/download/

+ 1 - 1
package/db/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		2
 PKG_HASH:=		ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8
 PKG_DESCR:=		disk file format database which stores key/data-pairs in single files
 PKG_SECTION:=		libs/db
-PKG_DEPENDS:=		libstdcxx
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.oracle.com/technology/software/products/berkeley-db
 PKG_SITES:=		http://distfiles.openadk.org/
 PKG_LIBNAME:=		libdb

+ 1 - 1
package/dillo/Makefile

@@ -10,8 +10,8 @@ PKG_HASH:=		db1be16c1c5842ebe07b419aa7c6ef11a45603a75df2877f99635f4f8345148b
 PKG_DESCR:=		small graphical web browser
 PKG_SECTION:=		x11/apps
 PKG_DEPENDS:=		libfltk libxi libpng zlib libjpeg-turbo
-PKG_DEPENDS+=		libstdcxx libpthread
 PKG_BUILDDEP:=		fltk libXi libjpeg-turbo libpng zlib
+PKG_NEEDS:=		threads cxx
 PKG_URL:=		http://www.dillo.org/
 PKG_SITES:=		http://www.dillo.org/download/
 

+ 1 - 1
package/e2fsprogs/Makefile

@@ -9,8 +9,8 @@ PKG_RELEASE:=		1
 PKG_HASH:=		e16474b5a3a30f9197160c4b91bd48d5a463583049c0fcc405b6f0f7075aa0c7
 PKG_DESCR:=		ext2/3/4 filesystem utilities
 PKG_SECTION:=		sys/fs
-PKG_DEPENDS:=		libpthread
 PKG_BUILDDEP:=		util-linux
+PKG_NEEDS:=		threads
 PKG_URL:=		http://e2fsprogs.sourceforge.net/
 PKG_SITES:=		https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
 PKG_OPTS:=		dev

+ 1 - 1
package/ffmpeg/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		e2ed5ab28dee1af94336739173eb0019afc21a54e38a96f4e3208e94a07866e2
 PKG_DESCR:=		record, convert and stream audio & video
 PKG_SECTION:=		libs/video
-PKG_FDEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.ffmpeg.org/
 PKG_SITES:=		http://www.ffmpeg.org/releases/
 PKG_LIBNAME:=		libffmpeg

+ 1 - 1
package/findutils/Makefile

@@ -9,8 +9,8 @@ PKG_RELEASE:=		7
 PKG_HASH:=		434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a
 PKG_DESCR:=		utilities for finding files
 PKG_SECTION:=		base/apps
-PKG_DEPENDS:=		libpthread
 HOST_BUILDDEP:=		autoconf-host bison-host
+PKG_NEEDS:=		treads
 PKG_URL:=		http://www.gnu.org/software/findutils/
 PKG_SITES:=		http://ftp.gnu.org/pub/gnu/findutils/
 PKG_BB:=		1

+ 4 - 3
package/firefox/Makefile

@@ -9,14 +9,15 @@ PKG_RELEASE:=		1
 PKG_HASH:=		ff00689f4d2ff54c5eb7b3aa367560a3645800eb0c96e73a795e461461b1970e
 PKG_DESCR:=		graphical webbrowser
 PKG_SECTION:=		x11/apps
-PKG_DEPENDS:=		libpthread alsa-lib glib libgtk2 libpng libtiff libxcursor libffi
-PKG_DEPENDS+=		nspr nss libjpeg-turbo libatk pango cairo libxt libx11 libstdcxx hicolor-icon-theme
-PKG_DEPENDS+=		libxdamage libxfixes libidl libsqlite libxcomposite gdk-pixbuf librt
+PKG_DEPENDS:=		alsa-lib glib libgtk2 libpng libtiff libxcursor libffi
+PKG_DEPENDS+=		nspr nss libjpeg-turbo libatk pango cairo libxt libx11 hicolor-icon-theme
+PKG_DEPENDS+=		libxdamage libxfixes libidl libsqlite libxcomposite gdk-pixbuf
 PKG_DEPENDS+=		harfbuzz mesa libvpx libbz2 ca-certificates libevent
 PKG_BUILDDEP:=		alsa-lib glib libgtk2 libIDL libX11 mesa libtiff gdk-pixbuf
 PKG_BUILDDEP+=		nspr nss libjpeg-turbo libXt fontconfig sqlite atk libpng hicolor-icon-theme
 PKG_BUILDDEP+=		libvpx pango gettext-tiny bzip2 libevent bzip2-host python2-host yasm-host
 PKG_BUILDDEP+=		zip-host
+PKG_NEEDS:=		threads rt c++
 PKG_URL:=		http://www.mozilla.org/
 PKG_SITES:=		http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$(PKG_VERSION)/source/
 PKG_NOPARALLEL:=	1

+ 1 - 1
package/fluxbox/Makefile

@@ -9,8 +9,8 @@ PKG_RELEASE:=		1
 PKG_HASH:=		fc8c75fe94c54ed5a5dd3fd4a752109f8949d6df67a48e5b11a261403c382ec0
 PKG_DESCR:=		window manager featuring tabs and an iconbar
 PKG_SECTION:=		x11/apps
-PKG_DEPENDS:=		libstdcxx
 PKG_BUILDDEP:=		libXpm libXft
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.fluxbox.org/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=fluxbox/}
 

+ 2 - 1
package/fprobe-ulog/Makefile

@@ -9,7 +9,8 @@ PKG_RELEASE:=		1
 PKG_HASH:=		53b9ccbca4469dfb0e9da91f9f0789dbf732f2adac9de18842e3c210b445f2ad
 PKG_DESCR:=		netflow probe
 PKG_SECTION:=		net/acct
-PKG_DEPENDS:=		libpcap libpthread
+PKG_DEPENDS:=		libpcap
+PKG_NEEDS:=		threads
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=fprobe/}
 
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

+ 2 - 1
package/fprobe/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		3a1cedf5e7b0d36c648aa90914fa71a158c6743ecf74a38f4850afbac57d22a0
 PKG_DESCR:=		netflow probe
 PKG_SECTION:=		net/acct
-PKG_DEPENDS:=		libpcap libpthread
+PKG_DEPENDS:=		libpcap
 PKG_BUILDDEP:=		libpcap
+PKG_NEEDS:=		threads
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=fprobe/}
 
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

+ 2 - 1
package/freeglut/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		dde46626a62a1cd9cf48a11951cdd592e7067c345cffe193a149dfd47aef999a
 PKG_DESCR:=		opengl utility toolkit libraries
 PKG_SECTION:=		libs/video
-PKG_DEPENDS:=		libglu libstdcxx
+PKG_DEPENDS:=		libglu
 PKG_BUILDDEP:=		glu
+PKG_NEEDS:=		c++
 PKG_URL:=		http://freeglut.sourceforge.net/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=freeglut/}
 PKG_OPTS:=		dev

+ 2 - 1
package/freeradius-server/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		c27252d7a86ba252904612d9b1f90e846f3ef1f4afee6a748f5287b730e87e3a
 PKG_DESCR:=		flexible radius server
 PKG_SECTION:=		net/radius
-PKG_DEPENDS:=		libltdl libpthread libpcre libtalloc
+PKG_DEPENDS:=		libltdl libpcre libtalloc
 PKG_BUILDDEP:=		libtool pcre talloc
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.freeradius.org/
 PKG_SITES:=		ftp://ftp.freeradius.org/pub/radius/
 

+ 1 - 1
package/gdk-pixbuf/Makefile

@@ -10,9 +10,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		4853830616113db4435837992c0aebd94cbb993c44dc55063cee7f72a7bef8be
 PKG_DESCR:=		image loading and pixel buffer manipulation library
 PKG_SECTION:=		libs/image
-PKG_DEPENDS:=		libstdcxx
 PKG_BUILDDEP:=		libjpeg-turbo libtiff
 HOST_BUILDDEP:=		glib-host libffi-host
+PKG_NEEDS:=		c++
 PKG_SITES:=		$(MASTER_SITE_GNOME:=gdk-pixbuf/$(PKG_EXTRAVER)/)
 PKG_OPTS:=		dev
 

+ 2 - 1
package/git/Makefile

@@ -10,7 +10,8 @@ PKG_HASH:=		646e37abbc69d5c1b153e30c82ec3346d176e2b499b44281d08565ad8e00a670
 PKG_DESCR:=		fast version control system
 PKG_SECTION:=		dev/scm
 PKG_BUILDDEP:=		curl expat
-PKG_DEPENDS:=		libcurl libexpat libpthread librt
+PKG_DEPENDS:=		libcurl libexpat
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://git-scm.com/
 PKG_SITES:=		https://www.kernel.org/pub/software/scm/git/
 

+ 2 - 1
package/gkrellm/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		4fd7893cce76703f815f140c6d34889383c2b2a6d83470bf9486625f84da375e
 PKG_DESCR:=		krell monitors server
 PKG_SECTION:=		net/misc
-PKG_DEPENDS:=		glib libpthread
+PKG_DEPENDS:=		glib
 PKG_BUILDDEP:=		glib
+PKG_NEEDS:=		threads
 PKG_URL:=		http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html
 PKG_SITES:=		http://members.dslextreme.com/users/billw/gkrellm/
 

+ 1 - 1
package/glib/Makefile

@@ -10,9 +10,9 @@ PKG_EXTRAVER:=		2.44
 PKG_HASH:=		8811deacaf8a503d0a9b701777ea079ca6a4277be10e3d730d2112735d5eca07
 PKG_DESCR:=		low-level core library that forms the basis of gtk+
 PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		libpthread
 PKG_BUILDDEP:=		glib-host libffi gettext-tiny zlib libelf dbus
 HOST_BUILDDEP:=		libffi-host gettext-tiny-host python2-host
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.gtk.org/
 PKG_SITES:=		http://ftp.gnome.org/pub/gnome/sources/glib/$(PKG_EXTRAVER)/
 PKG_NOPARALLEL:=	1

+ 1 - 1
package/gpsd/Makefile

@@ -9,8 +9,8 @@ PKG_RELEASE:=		1
 PKG_HASH:=		81c89e271ae112313e68655ab30d227bc38fe7841ffbff0f1860b12a9d7696ea
 PKG_DESCR:=		interface daemon for gps receivers
 PKG_SECTION:=		sys/hw
-PKG_DEPENDS:=		libpthread
 PKG_BUILDDEP:=		scons-host ncurses
+PKG_NEEDS:=		threads
 PKG_URL:=		http://catb.org/gpsd/
 PKG_SITES:=		http://download-mirror.savannah.gnu.org/releases/gpsd/
 

+ 2 - 1
package/gtk3/Makefile

@@ -10,10 +10,11 @@ PKG_RELEASE:=		1
 PKG_HASH:=		2943fd4a6b02c2a9b2edd231c1d8f7a1d2f8d36996f14310d34f503dca9ebea4
 PKG_DESCR:=		multi-platform toolkit for creating graphical user interfaces
 PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		glib libstdcxx cairo libxi libepoxy
+PKG_DEPENDS:=		glib cairo libxi libepoxy
 PKG_BUILDDEP:=		cairo atk pango libXext renderproto libXrender
 PKG_BUILDDEP+=		gdk-pixbuf libXcomposite libXdamage libX11 libXi
 PKG_BUILDDEP+=		at-spi2-core at-spi2-atk gdk-pixbuf-host libepoxy
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.gtk.org/
 PKG_SITES:=		$(MASTER_SITE_GNOME:=gtk+/$(PKG_EXTRAVER)/)
 PKG_LIBNAME:=		libgtk3

+ 3 - 2
package/harfbuzz/Makefile

@@ -10,9 +10,10 @@ PKG_HASH:=		f616a7fbdc78a627043f9029000bf08c0c71df59cde4143fc92a014f6a993b26
 PKG_DESCR:=		opentype text shaping engine
 PKG_SECTION:=		libs/fonts
 PKG_SITES:=		http://www.freedesktop.org/software/harfbuzz/release/
-PKG_DEPENDS:=		libstdcxx cairo icu4c
-PKG_BUILDDEP:=		libstdcxx cairo icu4c
+PKG_DEPENDS:=		cairo icu4c
+PKG_BUILDDEP:=		cairo icu4c
 HOST_BUILDDEP:=		cairo-host icu4c-host
+PKG_NEEDS:=		c++
 PKG_OPTS:=		dev
 
 DISTFILES:=             ${PKG_NAME}-${PKG_VERSION}.tar.bz2

+ 2 - 1
package/icecast/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		1b1d06f5f83c9a983cd28cc78aa90e4038f933511b3d20d7fd2cfc116645c36d
 PKG_DESCR:=		streaming media server
 PKG_SECTION:=		mm/audio
-PKG_DEPENDS:=		libcurl libvorbis libpthread libxml2 libxslt
+PKG_DEPENDS:=		libcurl libvorbis libxml2 libxslt
 PKG_BUILDDEP:=		curl libvorbis libxml2 libxslt
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.icecast.org/
 PKG_SITES:=		http://downloads.us.xiph.org/releases/icecast/
 

+ 3 - 2
package/iftop/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		d032547c708307159ff5fd0df23ebd3cfa7799c31536fa0aea1820318a8e0eac
 PKG_DESCR:=		display bandwith usage on an interface
 PKG_SECTION:=		net/perf
-PKG_DEPENDS:=		libncurses libpcap libpthread
-PKG_BUILDDEP:=		libpcap libpthread ncurses
+PKG_DEPENDS:=		libncurses libpcap
+PKG_BUILDDEP:=		libpcap ncurses
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.ex-parrot.com/~pdw/iftop/
 PKG_SITES:=		http://www.ex-parrot.com/~pdw/iftop/download/
 

+ 1 - 1
package/iperf/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		636b4eff0431cea80667ea85a67ce4c68698760a9837e1e9d13096d20362265b
 PKG_DESCR:=		internet protocol bandwidth measuring tool
 PKG_SECTION:=		net/perf
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads c++
 PKG_URL:=		http://sourceforge.net/projects/iperf
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=iperf/}
 PKG_CXX:=		IPERF

+ 2 - 1
package/iw/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		5164aaacd8e82501d84a2187af194e8285a5a5b76e200447eb58d4dd78d1a34b
 PKG_DESCR:=		tools for setting up wifi cards via netlink
 PKG_SECTION:=		net/wifi
-PKG_DEPENDS:=		libnl libpthread
+PKG_DEPENDS:=		libnl
 PKG_BUILDDEP:=		libnl
+PKG_NEEDS:=		threads
 PKG_URL:=		http://wireless.kernel.org/en/users/Documentation/iw
 PKG_SITES:=		https://www.kernel.org/pub/software/network/iw/
 

+ 2 - 1
package/jamvm/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		76428e96df0ae9dd964c7a7c74c1e9a837e2f312c39e9a357fa8178f7eff80da
 PKG_DESCR:=		java virtual machine implementation
 PKG_SECTION:=		dev/lang
-PKG_DEPENDS:=		libffi zlib libpthread librt
+PKG_DEPENDS:=		libffi zlib
 PKG_BUILDDEP:=		libffi zlib
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://jamvm.sourceforge.net
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=jamvm/}
 

+ 2 - 1
package/kismet/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		636d4d7ef8c67ae6ee8d8e1635f5115700eecb9fa4c208afaee30238db527c2c
 PKG_DESCR:=		wireless network detector, sniffer, and intrusion detection system
 PKG_SECTION:=		net/wifi
-PKG_DEPENDS:=		libpcap libncurses libpthread
+PKG_DEPENDS:=		libpcap libncurses
 PKG_BUILDDEP:=		libpcap ncurses
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.kismetwireless.net/
 PKG_SITES:=		http://www.kismetwireless.net/code/
 

+ 3 - 2
package/kodi/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		dd8aeb942e6de5d1488e243e1346cff3f6597e21b5131a3ba72ff5cc82037110
 PKG_DESCR:=		software media player
 PKG_SECTION:=		mm/video
-PKG_DEPENDS:=		boost python2 libstdcxx libsquish libbluray
+PKG_DEPENDS:=		boost python2 libsquish libbluray
 PKG_DEPENDS+=		libass libmpeg2 libmad libdbus libglew mesa
 PKG_DEPENDS+=		libjpeg-turbo libogg libvorbis libmodplug libcurl
 PKG_DEPENDS+=		libflac libbz2 libtiff liblzo libnettle librtmp
@@ -17,7 +17,7 @@ PKG_DEPENDS+=		yajl tinyxml libsqlite libpcrecpp libpng libncurses
 PKG_DEPENDS+=		libpcre libcdio libfreetype libsamplerate libuuid
 PKG_DEPENDS+=		taglib libjasper libmp3lame libmicrohttpd libgtk2
 PKG_DEPENDS+=		libgpg-error libudev python2-mod-sqlite libffmpeg
-PKG_DEPENDS+=		libxslt libvorbisenc alsa-lib glib libglu librt
+PKG_DEPENDS+=		libxslt libvorbisenc alsa-lib glib libglu
 PKG_BUILDDEP:=		boost python2 libass ffmpeg libglew rtmpdump
 PKG_BUILDDEP+=		libmpeg2 libmad libjpeg-turbo libogg libvorbis
 PKG_BUILDDEP+=		curl flac bzip2 libtiff liblzo yajl mesa
@@ -27,6 +27,7 @@ PKG_BUILDDEP+=		eudev alsa-lib glib glu libmodplug libgtk2
 PKG_BUILDDEP+=		libgpg-error dbus libxslt libvorbis libbluray
 PKG_BUILDDEP+=		swig-host liblzo-host libpng-host libjpeg-turbo-host
 PKG_BUILDDEP+=		zip-host unzip-host giflib-host libsquish
+PKG_NEEDS:=		threads rt c++
 PKG_URL:=		http://kodi.tv/
 PKG_SITES:=		https://github.com/xbmc/xbmc/archive/
 

+ 2 - 1
package/krb5/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		4df629fdf97f362cf81edbf38d613b32b492dd88c876cf3aa1c66562f296663e
 PKG_DESCR:=		kerberos server
 PKG_SECTION:=		app/crypto
-PKG_DEPENDS:=		libkrb5 libncurses keyutils libpthread
+PKG_DEPENDS:=		libkrb5 libncurses keyutils
 PKG_BUILDDEP:=		ncurses gettext-tiny bison-host
+PKG_NEEDS:=		threads
 PKG_URL:=		http://web.mit.edu/kerberos/
 PKG_SITES:=		http://web.mit.edu/kerberos/dist/krb5/1.13/
 PKG_LIBNAME:=		libkrb5

+ 2 - 1
package/lftp/Makefile

@@ -9,9 +9,10 @@ PKG_RELEASE:=		1
 PKG_HASH:=		1e61d5c94b06c333309185e86cfce0729e45e3f69f7496c58d61093b135c8bb9
 PKG_DESCR:=		ftp and http client
 PKG_SECTION:=		net/http
-PKG_DEPENDS:=		libncurses libexpat libstdcxx
+PKG_DEPENDS:=		libncurses libexpat
 PKG_DEPENDS+=		zlib libreadline
 PKG_BUILDDEP:=		ncurses expat readline zlib
+PKG_NEEDS:=		c++
 PKG_URL:=		http://lftp.yar.ru/
 PKG_SITES:=		http://lftp.yar.ru/ftp/
 

+ 2 - 1
package/libgtk2/Makefile

@@ -10,9 +10,10 @@ PKG_RELEASE:=		1
 PKG_HASH:=		b2c6441e98bc5232e5f9bba6965075dcf580a8726398f7374d39f90b88ed4656
 PKG_DESCR:=		multi-platform toolkit for creating graphical user interfaces
 PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		glib libstdcxx cairo
+PKG_DEPENDS:=		glib cairo
 PKG_BUILDDEP:=		glib cairo atk pango libXext renderproto libXrender
 PKG_BUILDDEP+=		gdk-pixbuf libXcomposite libXdamage libX11
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.gtk.org/
 PKG_SITES:=		http://ftp.gnome.org/pub/gnome/sources/gtk+/$(PKG_EXTRAVER)/
 PKG_LIBNAME:=		libgtk2

+ 2 - 1
package/libnet/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		d392bb5825c4b6b672fc93a0268433c86dc964e1500c279dc6d0711ea6ec467a
 PKG_DESCR:=		low-level packet creation library
 PKG_SECTION:=		libs/net
-PKG_DEPENDS:=		libpcap libstdcxx
+PKG_DEPENDS:=		libpcap
 PKG_BUILDDEP:=		libpcap
+PKG_NEEDS:=		c++
 PKG_URL:=		http://sourceforge.net/projects/libnet-dev/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=libnet-dev/}
 PKG_OPTS:=		dev

+ 1 - 1
package/libnotify/Makefile

@@ -9,8 +9,8 @@ PKG_RELEASE:=		3
 PKG_HASH:=		0799db8ea1500b65a477421a8c930cc8c8b0bbc0596e55ea1601e2542f3fb0d9
 PKG_DESCR:=		notify library
 PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		libstdcxx
 PKG_BUILDDEP:=		libgtk2 dbus-glib
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.galago-project.org/
 PKG_SITES:=		http://www.galago-project.org/files/releases/source/libnotify/
 PKG_OPTS:=		dev

+ 1 - 1
package/libosip2/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		2
 PKG_HASH:=		d45e28deaa596b2d7457edefe916b4761adbd53d543180f4ff30f9c310a5f821
 PKG_DESCR:=		session initiation protocol implementation
 PKG_SECTION:=		libs/net
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.gnu.org/software/osip
 PKG_SITES:=		${MASTER_SITE_GNU:=osip/}
 PKG_OPTS:=		dev

+ 1 - 1
package/libtiff/Makefile

@@ -8,8 +8,8 @@ PKG_VERSION:=		4.0.4
 PKG_RELEASE:=		1
 PKG_HASH:=		8cb1d90c96f61cdfc0bcf036acc251c9dbe6320334da941c7a83cfe1576ef890
 PKG_DESCR:=		library for reading/writing tiff images
-PKG_DEPENDS:=		libstdcxx
 PKG_SECTION:=		libs/image
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.libtiff.org/
 PKG_SITES:=		ftp://ftp.remotesensing.org/pub/libtiff/
 PKG_LIBNAME:=		libtiff

+ 1 - 1
package/libupnp/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		b3142b39601243b50532eec90f4a27dba85eb86f58d4b849ac94edeb29d9b22a
 PKG_DESCR:=		universal plug and play sdk library
 PKG_SECTION:=		libs/net
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://pupnp.sourceforge.net/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=pupnp/}
 PKG_OPTS:=		dev

+ 2 - 1
package/libxslt/Makefile

@@ -9,9 +9,10 @@ PKG_RELEASE:=		2
 PKG_HASH:=		5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
 PKG_DESCR:=		xslt library
 PKG_SECTION:=		libs/data
-PKG_DEPENDS:=		libxml2 libstdcxx
+PKG_DEPENDS:=		libxml2
 PKG_BUILDDEP:=		libxslt-host libxml2
 HOST_BUILDDEP:=		libxml2-host
+PKG_NEEDS:=		c++
 PKG_URL:=		http://xmlsoft.org/XSLT
 PKG_SITES:=		http://xmlsoft.org/sources/
 PKG_OPTS:=		dev

+ 1 - 2
package/log4cplus/Makefile

@@ -9,8 +9,7 @@ PKG_RELEASE:=		2
 PKG_HASH:=		c2bb01b5f4bff5fa768700e98ead4a79dfd556096c9f3f0401849da7ab80fbef
 PKG_DESCR:=		logging framework for c++
 PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		libpthread
-PKG_BUILDDEP:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://log4cplus.sourceforge.net/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=log4cplus/log4cplus-stable/${PKG_VERSION}/}
 PKG_OPTS:=		dev

+ 2 - 2
package/ltp/Makefile

@@ -8,8 +8,8 @@ PKG_VERSION:=		20150903
 PKG_RELEASE:=		1
 PKG_HASH:=		e670ae9f1e42bc8b500edd3c3a5cf09c6447c56d7738a22235c87a13739bcace
 PKG_DESCR:=		linux test project
-PKG_DEPENDS:=		bash libpthread librt
-PKG_DEPENDS+=		mke2fs mkfs
+PKG_DEPENDS:=		bash mke2fs mkfs
+PKG_NEEDS:=		threads rt
 PKG_SECTION:=		sys/misc
 PKG_URL:=		http://linux-test-project.github.io
 PKG_SITES:=		https://github.com/linux-test-project/ltp/archive/

+ 2 - 1
package/ltrace/Makefile

@@ -8,8 +8,9 @@ PKG_VERSION:=		c18a46eff706e956c4dc755144d752dc163a1145
 PKG_RELEASE:=		1
 PKG_DESCR:=		intercepts and records dynamic library calls 
 PKG_SECTION:=		app/debug
-PKG_DEPENDS:=		libelf libstdcxx
+PKG_DEPENDS:=		libelf
 PKG_BUILDDEP:=		libelf
+PKG_NEEDS:=		c++
 PKG_URL:=		http://ltrace.org/
 PKG_SITES:=		git://git.debian.org/git/collab-maint/ltrace.git
 

+ 2 - 1
package/maradns/Makefile

@@ -9,7 +9,8 @@ PKG_RELEASE:=		1
 PKG_HASH:=		661ea06fb18df6d2469b2bf824ffd93545a091af185362cbc738d1aa408210c3
 PKG_DESCR:=		small and secure DNS server
 PKG_SECTION:=		net/dns
-PKG_DEPENDS:=		libpthread librt duende
+PKG_DEPENDS:=		duende
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://www.maradns.org
 PKG_SITES:=		http://maradns.samiam.org/download/2.0/${PKG_VERSION}/
 PKG_NOPARALLEL:=	1

+ 2 - 1
package/mesa/Makefile

@@ -10,11 +10,12 @@ PKG_HASH:=		b04c4de6280b863babc2929573da17218d92e9e4ba6272d548d135415723e8c3
 PKG_DESCR:=		3d graphics library
 PKG_SECTION:=		libs/video
 PKG_DEPENDS:=		libxdamage libxfixes libdrm libxxf86vm libexpat
-PKG_DEPENDS+=		libxml2 libxml2-python libstdcxx
+PKG_DEPENDS+=		libxml2 libxml2-python
 PKG_BUILDDEP:=		python2 libxml2 libXdamage libXfixes
 PKG_BUILDDEP+=		libXxf86vm libdrm dri2proto glproto expat libXext
 PKG_BUILDDEP+=		eudev dri3proto presentproto xcb-proto libxcb
 PKG_BUILDDEP+=		libxshmfence
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.mesa3d.org/
 PKG_SITES:=		ftp://ftp.freedesktop.org/pub/mesa/${PKG_VERSION}/
 PKG_LIBNAME:=		mesa

+ 2 - 1
package/mongrel2/Makefile

@@ -10,7 +10,8 @@ PKG_HASH:=		dc491c9b06f1b32020fd977737fa16f99af6d99e7bfb2f80fcc53278dd44f398
 PKG_DESCR:=		application, language, and network architecture agnostic web server
 PKG_SECTION:=		net/http
 PKG_BUILDDEP:=		zeromq sqlite
-PKG_DEPENDS:=		zeromq libsqlite libpthread librt libstdcxx
+PKG_DEPENDS:=		zeromq libsqlite
+PKG_NEEDS:=		threads rt c++
 PKG_URL:=		http://mongrel2.org
 PKG_SITES:=		https://github.com/zedshaw/mongrel2/releases/download/v1.9.1/
 

+ 1 - 1
package/monit/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		2
 PKG_HASH:=		38e09bd8b39abc59e6b9a9bb7a78f7eac2b02a92f4de1f3a6dc24e84dfedae0d
 PKG_DESCR:=		utility for system services monitoring
 PKG_SECTION:=		sys/misc
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://mmonit.com/monit/
 PKG_SITES:=		http://www.tildeslash.com/monit/dist/
 

+ 2 - 1
package/mosquitto/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		c643c7123708aadcd29287dda7b5ce7c910f75b02956a8fc4fe65ad2ea767a5f
 PKG_DESCR:=		mqtt broker
 PKG_SECTION:=		net/misc
-PKG_DEPENDS:=		c-ares librt libpthreads
+PKG_DEPENDS:=		c-ares
 PKG_BUILDDEP:=		cmake-host c-ares
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://mosquitto.org
 PKG_SITES:=		http://mosquitto.org/files/source/
 

+ 2 - 1
package/motion/Makefile

@@ -10,8 +10,9 @@ PKG_RELEASE:=		2
 PKG_HASH:=		ff2931b0af037da126fed3e496430944132528132e71473aae478ff2e7f78e0d
 PKG_DESCR:=		webcam motion sensing and logging
 PKG_SECTION:=		mm/video
-PKG_DEPENDS:=		libjpeg-turbo libpthread libsdl
+PKG_DEPENDS:=		libjpeg-turbo libsdl
 PKG_BUILDDEP:=		libjpeg-turbo sdl
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
 PKG_SITES:=		http://distfiles.openadk.org/
 

+ 3 - 2
package/mpd/Makefile

@@ -9,9 +9,10 @@ PKG_RELEASE:=		1
 PKG_HASH:=		7a5c66aa5af97a5b7af3dc49e3d2594071dafd62a14e2e9f7c9a5a86342836c6
 PKG_DESCR:=		music player daemon
 PKG_SECTION:=		mm/audio
-PKG_DEPENDS:=		glib libstdcxx libmpdclient librt boost libncurses
-PKG_FDEPENDS:=		glib libstdcxx libmpdclient librt
+PKG_DEPENDS:=		glib libmpdclient boost libncurses
 PKG_BUILDDEP:=		glib libmpdclient boost ncurses
+PKG_FDEPENDS:=		glib libmpdclient
+PKG_NEEDS:=		threads rt c++
 PKG_URL:=		http://www.musicpd.org/
 PKG_SITES:=		http://www.musicpd.org/download/mpd/0.19/
 

+ 2 - 1
package/mpg123/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		6d1e2487777114ba8a73c543f355cacfa2055646724000fc195ac9e64c843744
 PKG_DESCR:=		mp3 console player
 PKG_SECTION:=		mm/audio
-PKG_DEPENDS:=		libpthread librt alsa-lib
+PKG_DEPENDS:=		alsa-lib
 PKG_BUILDDEP:=		alsa-lib
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://www.mpg123.de/
 PKG_SITES:=		http://www.mpg123.de/download/
 

+ 2 - 1
package/mplayer/Makefile

@@ -10,12 +10,13 @@ PKG_HASH:=		ffe7f6f10adf2920707e8d6c04f0d3ed34c307efc6cd90ac46593ee8fba2e2b6
 PKG_DESCR:=		popular video player
 PKG_SECTION:=		mm/video
 PKG_DEPENDS:=		alsa-lib libjpeg-turbo libfaad2 libmad libncurses
-PKG_DEPENDS+=		libogg libpng libpthread libvorbis giflib
+PKG_DEPENDS+=		libogg libpng libvorbis giflib
 PKG_DEPENDS+=		libx11 libxau libxdmcp libxext libxv zlib
 PKG_DEPENDS+=		libxscrnsaver libtheora libxvid libvpx
 PKG_BUILDDEP:=		alsa-lib libmad libvorbis faad2 ncurses zlib
 PKG_BUILDDEP+=		libX11 libXv libpng libXext libjpeg-turbo libtheora
 PKG_BUILDDEP+=		xvidcore libvpx gettext-tiny
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.mplayerhq.hu/
 PKG_SITES:=		http://www.mplayerhq.hu/MPlayer/releases/
 

+ 3 - 2
package/neon/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		00c626c0dc18d094ab374dbd9a354915bfe4776433289386ed489c2ec0845cdd
 PKG_DESCR:=		http and webdav library
 PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		libpthread libxml2 zlib
-PKG_BUILDDEP:=		libpthread libxml2 zlib
+PKG_DEPENDS:=		libxml2 zlib
+PKG_BUILDDEP:=		libxml2 zlib
+PKG_NEEDS:=		threads
 PKG_URL:=		http://webdav.org/neon/
 PKG_SITES:=		http://webdav.org/neon/
 PKG_OPTS:=		dev

+ 2 - 1
package/nfs-utils/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		5b9c72eef260b86a84619771e11bb013b99431e6b7ff0bbdc03fee90dba591f7
 PKG_DESCR:=		network filesystem utilities
 PKG_SECTION:=		net/fs
-PKG_DEPENDS:=		keyutils libtirpc rpcbind libdevmapper libpthread
+PKG_DEPENDS:=		keyutils libtirpc rpcbind libdevmapper
 PKG_BUILDDEP:=		keyutils libtirpc lvm
+PKG_NEEDS:=		threads
 PKG_URL:=		http://sourceforge.net/projects/nfs
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=nfs/}
 

+ 2 - 1
package/nginx/Makefile

@@ -10,7 +10,8 @@ PKG_HASH:=		23cca1239990c818d8f6da118320c4979aadf5386deda691b1b7c2c96b9df3d5
 PKG_DESCR:=		powerful http reverse proxy and webserver
 PKG_SECTION:=		net/http
 PKG_BUILDDEP:=		pcre zlib
-PKG_DEPENDS:=		libpcre libpthread zlib
+PKG_DEPENDS:=		libpcre zlib
+PKG_NEEDS:=		threads
 PKG_URL:=		http://nginx.org/
 PKG_SITES:=		http://nginx.org/download/
 

+ 2 - 1
package/nmap/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		3f89d9053c69507fe9533c40188a6561d49607a37b1db6380aed9039d4883137
 PKG_DESCR:=		utility for network exploration or security auditing
 PKG_SECTION:=		net/security
-PKG_DEPENDS:=		libdnet libpcap libpcre libstdcxx
+PKG_DEPENDS:=		libdnet libpcap libpcre
 PKG_BUILDDEP:=		libdnet libpcap pcre
+PKG_NEEDS:=		c++
 PKG_URL:=		http://nmap.org/
 PKG_SITES:=		http://download.insecure.org/nmap/dist/
 

+ 1 - 1
package/ntpclient/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		2
 PKG_HASH:=		9ad9b028385082fb804167f464e2db0a0b3d33780acd399327e64898b8fcfddd
 PKG_DESCR:=		client for setting system time from ntp servers
 PKG_SECTION:=		net/ntp
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://doolittle.icarus.com/ntpclient/
 PKG_SITES:=		http://doolittle.icarus.com/ntpclient/
 

+ 2 - 2
package/omxplayer/Makefile

@@ -9,9 +9,9 @@ PKG_RELEASE:=		1
 PKG_DESCR:=		video player for raspberry pi
 PKG_SECTION:=		mm/video
 PKG_DEPENDS:=		libffmpeg bcm28xx-vc-libs bcm28xx-vc-gl-libs
-PKG_DEPENDS+=		librt zlib libpthread libstdcxx libdbus
-PKG_DEPENDS+=		boost libfreetype libpcre
+PKG_DEPENDS+=		zlib libdbus boost libfreetype libpcre
 PKG_BUILDDEP:=		ffmpeg boost bcm28xx-vc freetype pcre dbus
+PKG_NEEDS:=		threads rt c++
 PKG_URL:=		https://github.com/popcornmix/omxplayer
 PKG_SITES:=		https://github.com/popcornmix/omxplayer.git
 

+ 3 - 2
package/openjdk7/Makefile

@@ -15,9 +15,10 @@ PKG_BUILDDEP+=		libpng giflib libgtk2 glib fontconfig nss
 HOST_BUILDDEP:=		fastjar-host gcj-host ecj-host unzip-host ant-host
 HOST_BUILDDEP+=		libXtst-host libXt-host libXinerama-host libXrender-host
 HOST_BUILDDEP+=		cups-host qemu-host alsa-lib-host freetype-host	libxslt-host
-PKG_DEPENDS:=		zlib libstdcxx libffi libpthread libxtst libxi cups
-PKG_DEPENDS+=		libfreetype libxrender libx11 libxext libpthread nss libjpeg-turbo
+PKG_DEPENDS:=		zlib libffi libxtst libxi cups
+PKG_DEPENDS+=		libfreetype libxrender libx11 libxext nss libjpeg-turbo
 PKG_DEPENDS+=		libpng giflib libgtk2 glib fontconfig
+PKG_NEEDS:=		threads c++
 PKG_URL:=		http://openjdk.org/
 PKG_SITES:=		http://icedtea.classpath.org/download/source/
 

+ 2 - 1
package/openldap/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		eeb7b0e2c5852bfd2650e83909bb6152835c0b862fab10b63954dc1bcbba8e63
 PKG_DESCR:=		ldap client libraries
 PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		libsasl2 libdb libpthread libuuid libstdcxx libncurses
+PKG_DEPENDS:=		libsasl2 libdb libuuid libncurses
 PKG_BUILDDEP:=		cyrus-sasl db util-linux
+PKG_NEEDS:=		threads c++
 PKG_URL:=		http://www.openldap.org/
 PKG_SITES:=		ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
 PKG_LIBNAME:=		libopenldap

+ 2 - 1
package/openssh/Makefile

@@ -10,7 +10,8 @@ PKG_HASH:=		fc0a6d2d1d063d5c66dffd952493d0cda256cad204f681de0f84ef85b2ad8428
 PKG_DESCR:=		secure shell implementation
 PKG_SECTION:=		net/security
 PKG_BUILDDEP:=		zlib
-PKG_DEPENDS:=		zlib libpthread
+PKG_DEPENDS:=		zlib
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.openssh.com/
 PKG_SITES:=		ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/
 

+ 2 - 1
package/openswan/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		ac7ef1d78766801f23c458cc7c3b080ca6e20c5144a1979598c319bc3bc7c88b
 PKG_DESCR:=		ipsec software
 PKG_SECTION:=		net/security
-PKG_DEPENDS:=		libgmp libpthread
+PKG_DEPENDS:=		libgmp
 PKG_BUILDDEP:=		gmp
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.openswan.org/
 PKG_SITES:=		http://www.openswan.org/download/
 PKG_NOPARALLEL:=	1

+ 2 - 1
package/opkg/Makefile

@@ -8,8 +8,9 @@ PKG_VERSION:=		0.2.4
 PKG_RELEASE:=		1
 PKG_HASH:=		0f40c7e457d81edf9aedc07c778f4697111ab163a38ef95999faece015453086
 PKG_DESCR:=		embedded package manager
-PKG_DEPENDS:=		libcurl libpthread
+PKG_DEPENDS:=		libcurl
 PKG_BUILDDEP:=		curl
+PKG_NEEDS:=		threads
 PKG_SECTION:=		sys/misc
 PKG_URL:=		https://code.google.com/p/opkg/
 PKG_SITES:=		http://downloads.yoctoproject.org/releases/opkg/

+ 2 - 1
package/oprofile/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		847110b4ecdcf8c8353cd38f94c1b704aad4bfcd9453e38b88d112cfb7e3c45a
 PKG_DESCR:=		system-wide profiles
 PKG_SECTION:=		app/debug
-PKG_DEPENDS:=		libpopt libbfd libstdcxx
+PKG_DEPENDS:=		libpopt libbfd
 PKG_BUILDDEP:=		popt binutils gcc
+PKG_NEEDS:=		c++
 PKG_URL:=		http://oprofile.sourceforge.net/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=oprofile/}
 

+ 1 - 1
package/pango/Makefile

@@ -10,9 +10,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		1320569f6c6d75d6b66172b2d28e59c56ee864ee9df202b76799c4506a214eb7
 PKG_DESCR:=		library for laying out and rendering of text
 PKG_SECTION:=		libs/fonts
-PKG_DEPENDS:=		libstdcxx
 PKG_BUILDDEP:=		libXft glib cairo harfbuzz libstdcxx fontconfig
 HOST_BUILDDEP:=		cairo-host harfbuzz-host
+PKG_NEEDS:=		c++
 PKG_URL:=		http://www.pango.org/
 PKG_SITES:=		$(MASTER_SITE_GNOME:=pango/$(PKG_EXTRAVER)/)
 PKG_OPTS:=		dev

+ 1 - 1
package/parprouted/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		d63643c95d4149a3d71112da5892f459433456bf0279bfa304625f109178defc
 PKG_DESCR:=		proxy arp daemon
 PKG_SECTION:=		net/misc
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.hazard.maks.net/parprouted/
 PKG_SITES:=		http://www.hazard.maks.net/parprouted/
 

+ 2 - 1
package/parted/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		2
 PKG_HASH:=		858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4
 PKG_DESCR:=		partition table editor
 PKG_SECTION:=		sys/fs
-PKG_DEPENDS:=		libblkid libuuid libpthread libncurses
+PKG_DEPENDS:=		libblkid libuuid libncurses
 PKG_BUILDDEP:=		util-linux ncurses
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.gnu.org/software/parted/index.shtml
 PKG_SITES:=		$(MASTER_SITE_GNU:=parted/)
 

+ 1 - 1
package/patchelf/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		14af06a2da688d577d64ff8dac065bb8903bbffbe01d30c62df7af9bf4ce72fe
 PKG_DESCR:=		elf manipulation tool
 PKG_SECTION:=		dev/tools
-PKG_DEPENDS:=		libstdcxx
+PKG_NEEDS:=		c++
 PKG_URL:=		http://nixos.org/releases/patchelf
 PKG_SITES:=		http://nixos.org/releases/patchelf/patchelf-0.8/
 

+ 2 - 1
package/pcsc-lite/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		f315047e808d63a3262c4a040f77548af2e04d1fd707e0c2759369b926fbbc3b
 PKG_DESCR:=		middleware for smartcards
 PKG_SECTION:=		app/crypto
-PKG_DEPENDS:=		libusb libusb-compat libpthread
+PKG_DEPENDS:=		libusb libusb-compat
 PKG_BUILDDEP:=		libusb libusb-compat
+PKG_NEEDS:=		threads
 PKG_URL:=		http://pcsclite.alioth.debian.org/
 PKG_SITES:=		https://alioth.debian.org/frs/download.php/file/4126/
 PKG_OPTS:=		dev

+ 1 - 1
package/pdnsd/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		bb5835d0caa8c4b31679d6fd6a1a090b71bdf70950db3b1d0cea9cf9cb7e2a7b
 PKG_DESCR:=		proxy dns server
 PKG_SECTION:=		net/dns
-PKG_DEPENDS:=		libpthread
+PKG_NEEDS:=		threads
 PKG_URL:=		http://members.home.nl/p.a.rombouts/pdnsd/index.html
 PKG_SITES:=		http://members.home.nl/p.a.rombouts/pdnsd/releases/
 

+ 1 - 1
package/perl/Makefile

@@ -9,8 +9,8 @@ PKG_RELEASE:=		3
 PKG_HASH:=		655e11a8ffba8853efcdce568a142c232600ed120ac24aaebb4e6efe74e85b2b
 PKG_DESCR:=		perl interpreter
 PKG_SECTION:=		dev/lang
-PKG_DEPENDS:=		librt libpthread
 PKG_BUILDDEP:=		perl-host
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://www.perl.org/
 PKG_SITES:=		http://www.cpan.org/src/
 PKG_NOPARALLEL:=	1

+ 1 - 1
package/php/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_HASH:=		cf52e2e621e60997269663fa4bc06253191fa2a41dc9b08c8c911435b3ebcca9
 PKG_DESCR:=		php language interpreter
 PKG_SECTION:=		dev/lang
-PKG_DEPENDS:=		libpthread librt
+PKG_NEEDS:=		threads rt
 PHP_URL:=		http://www.php.net/
 PKG_SITES:=		http://de.php.net/distributions/
 

+ 3 - 2
package/poppler/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		2
 PKG_HASH:=		a2654910100c923c44e366242495e226db2798254f2fa2781138867348759f84
 PKG_DESCR:=		pdf rendering library
 PKG_SECTION:=		libs/misc
-PKG_BUILDDEP:=		fontconfig libstdcxx libpng cairo
-PKG_DEPENDS:=		fontconfig libstdcxx libpng cairo
+PKG_BUILDDEP:=		fontconfig libpng cairo
+PKG_DEPENDS:=		fontconfig libpng cairo
+PKG_NEEDS:=		c++
 PKG_URL:=		http://poppler.freedesktop.org/
 PKG_SITES:=		http://poppler.freedesktop.org/
 PKG_OPTS:=		dev

+ 2 - 1
package/privoxy/Makefile

@@ -10,8 +10,9 @@ PKG_VARIANT:=		stable
 PKG_HASH:=		816e627b31caa3d9e71d0a8b83ac9ea7dcbeaaafef3c9a9c792696aa56255232
 PKG_DESCR:=		web proxy with advanced filtering capabilities
 PKG_SECTION:=		net/proxy
-PKG_DEPENDS:=		libpthread libpcre
+PKG_DEPENDS:=		libpcre
 PKG_BUILDDEP:=		pcre
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.privoxy.org/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=ijbswa/}
 

+ 2 - 1
package/ptunnel/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		2
 PKG_HASH:=		9f19f05f772cd7caba52a0f0adf9fd93d5fab8f6c50fc7fada0505294bd0aac3
 PKG_DESCR:=		tunnel tcp connections over icmp packets
 PKG_SECTION:=		net/security
-PKG_DEPENDS:=		libpcap libpthread
+PKG_DEPENDS:=		libpcap
 PKG_BUILDDEP:=		libpcap
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.cti.ecp.fr/~beauxir5/ptunnel/
 PKG_SITES:=		http://www.cti.ecp.fr/~beauxir5/ptunnel/
 

+ 2 - 1
package/pulseaudio/Makefile

@@ -11,9 +11,10 @@ PKG_DESCR:=		sound system
 PKG_SECTION:=		mm/audio
 PKG_DEPENDS:=		libltdl json-c libsndfile libspeex libncurses
 PKG_DEPENDS+=		libflac libvorbis libogg libuuid libsndfile
-PKG_DEPENDS+=		libpthread librt alsa-lib libsamplerate
+PKG_DEPENDS+=		alsa-lib libsamplerate
 PKG_BUILDDEP:=		libtool json-c libsndfile speex libsamplerate
 PKG_BUILDDEP+=		flac libvorbis libogg util-linux ncurses alsa-lib
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://www.freedesktop.org/wiki/Software/PulseAudio/
 PKG_SITES:=		http://freedesktop.org/software/pulseaudio/releases/
 PKG_OPTS:=		dev

+ 2 - 1
package/python2/Makefile

@@ -9,9 +9,10 @@ PKG_RELEASE:=		1
 PKG_HASH:=		eda8ce6eec03e74991abb5384170e7c65fcd7522e409b8e83d7e6372add0f12a
 PKG_DESCR:=		python scripting language (Version 2)
 PKG_SECTION:=		dev/lang
+PKG_DEPENDS:=		libffi
 PKG_BUILDDEP:=		libffi python2-host 
 HOST_BUILDDEP:=		libffi-host bzip2-host libressl-host
-PKG_DEPENDS:=		libpthread libffi
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.python.org/
 PKG_SITES:=		http://www.python.org/ftp/python/${PKG_VERSION}/
 PKG_OPTS:=		dev

+ 2 - 1
package/python3/Makefile

@@ -9,9 +9,10 @@ PKG_RELEASE:=		1
 PKG_HASH:=		b5b3963533768d5fc325a4d7a6bd6f666726002d696f1d399ec06b043ea996b8
 PKG_DESCR:=		python scripting language (version 3)
 PKG_SECTION:=		dev/lang
-PKG_DEPENDS:=		libpthread libffi
+PKG_DEPENDS:=		libffi
 PKG_BUILDDEP:=		python3-host libffi 
 HOST_BUILDDEP:=		libffi-host
+PKG_NEEDS:=		threads
 PKG_URL:=		http://www.python.org/
 PKG_SITES:=		http://legacy.python.org/ftp/python/${PKG_VERSION}/
 

+ 2 - 2
package/qingy/Makefile

@@ -9,8 +9,8 @@ PKG_RELEASE:=		3
 PKG_HASH:=		de4b4b398d5ba81ab2544729864676a04ddc6ae818b357ee09a8770293740cd3
 PKG_DESCR:=		directfb getty replacement
 PKG_SECTION:=		sys/misc
-PKG_DEPENDS:=		directfb libncurses librt libpthread
-PKG_DEPENDS+=		libstdcxx
+PKG_DEPENDS:=		directfb libncurses
+PKG_NEEDS:=		threads rt c++
 PKG_BUILDDEP:=		DirectFB ncurses
 PKG_URL:=		http://qingy.sourceforge.net/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=qingy/}

+ 3 - 4
package/rsyslog/Makefile

@@ -9,10 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		b92df3f367108219e2fffccd463bf49d75cb8ab3ceaa52e9789f85eace066912
 PKG_DESCR:=		syslog daemon
 PKG_SECTION:=		sys/misc
-PKG_BUILDDEP:=		libestr liblogging json-c util-linux zlib
-PKG_BUILDDEP+=		ncurses
-PKG_DEPENDS:=		libestr liblogging json-c libuuid zlib
-PKG_DEPENDS+=		libpthread librt libncurses
+PKG_BUILDDEP:=		libestr liblogging json-c util-linux zlib ncurses
+PKG_DEPENDS:=		libestr liblogging json-c libuuid zlib libncurses
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://www.rsyslog.com/
 PKG_SITES:=		http://www.rsyslog.com/files/download/rsyslog/
 

+ 1 - 1
package/rt-tests/Makefile

@@ -7,7 +7,7 @@ PKG_NAME:=		rt-tests
 PKG_VERSION:=		3fed00ff8d2c0cdbc5ba078cbd60ce3cfcee615f
 PKG_RELEASE:=		1
 PKG_DESCR:=		realtime test apps
-PKG_DEPENDS:=		libpthread librt
+PKG_NEEDS:=		threads rt
 PKG_SECTION:=		app/debug
 PKG_SITES:=		git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests
 

+ 2 - 1
package/rtorrent/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		bc0a2c1ee613b68f37021beaf4e64a9252f91ed06f998c1e897897c354ce7e84
 PKG_DESCR:=		console torrent application
 PKG_SECTION:=		app/p2p
-PKG_DEPENDS:=		libncurses libtorrent libcurl libstdcxx
+PKG_DEPENDS:=		libncurses libtorrent libcurl
 PKG_BUILDDEP:=		ncurses libtorrent curl
+PKG_NEEDS:=		c++
 PKG_URL:=		http://libtorrent.rakshasa.no/
 PKG_SITES:=		http://distfiles.openadk.org/
 

+ 1 - 1
package/ruby/Makefile

@@ -9,9 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		df795f2f99860745a416092a4004b016ccf77e8b82dec956b120f18bdc71edce
 PKG_DESCR:=		scripting language
 PKG_SECTION:=		dev/lang
-PKG_DEPENDS:=		librt libpthread
 PKG_BUILDDEP:=		ruby-host
 HOST_BUILDDEP:=		readline-host
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://www.ruby-lang.org/
 PKG_SITES:=		http://ftp.ruby-lang.org/pub/ruby/2.2/
 PKG_NOPARALLEL:=	1

+ 2 - 1
package/rxvt-unicode/Makefile

@@ -9,8 +9,9 @@ PKG_RELEASE:=		1
 PKG_HASH:=		75270ed72bc5895a64a1d7392bf45a622204192371c3965bd3dd978dc088956b
 PKG_DESCR:=		terminal emulator with unicode support
 PKG_SECTION:=		x11/apps
-PKG_DEPENDS:=		libx11 fontconfig libxft libxml2 gdk-pixbuf libstdcxx
+PKG_DEPENDS:=		libx11 fontconfig libxft libxml2 gdk-pixbuf
 PKG_BUILDDEP:=		libX11 fontconfig libXft libxml2 gdk-pixbuf
+PKG_NEEDS:=		c++
 PKG_URL:=		http://software.schmorp.de/pkg/rxvt-unicode.html
 PKG_SITES:=		http://dist.schmorp.de/rxvt-unicode/
 

+ 3 - 2
package/samba/Makefile

@@ -10,8 +10,9 @@ PKG_HASH:=		9908a80d95b9e2583906ed4347a8c80b769539a2788158992fb48ea9fb4d2c82
 PKG_DESCR:=		file and print server
 PKG_SECTION:=		net/fs
 PKG_BUILDDEP:=		gettext-tiny util-linux popt python2 gnutls
-PKG_BUILDDEP:=		heimdal-host python2-host
-PKG_DEPENDS:=		libpthread librt libuuid libpopt libgnutls
+PKG_BUILDDEP+=		heimdal-host python2-host
+PKG_DEPENDS:=		libuuid libpopt libgnutls
+PKG_NEEDS:=		threads rt
 PKG_URL:=		http://www.samba.org/
 PKG_SITES:=		http://samba.org/samba/ftp/stable/
 

Some files were not shown because too many files changed in this diff