liblo: moved to github
liblo: moved to github

git-svn-id: svn://svn.openwrt.org/openwrt/packages@42252 3c298f89-4303-0410-b956-a3cf2f4a3e73

file:a/lang/erlang/Makefile (deleted)
#  
# Copyright (C) 2009-2012 OpenWrt.org  
#  
# This is free software, licensed under the GNU General Public License v2.  
# See /LICENSE for more information.  
#  
 
include $(TOPDIR)/rules.mk  
 
PKG_NAME:=erlang  
PKG_VERSION:=R16B02  
PKG_RELEASE:=1  
 
PKG_SOURCE:=otp_src_$(PKG_VERSION).tar.gz  
PKG_SOURCE_URL:= http://www.erlang.org/download/ \  
http://erlang.mirror.su.se/  
PKG_MD5SUM:= ca63bcde0e5ae0f2df9457f97b3115a4  
 
PKG_BUILD_DEPENDS:=erlang/host openssl  
 
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/otp_src_$(PKG_VERSION)  
PKG_BUILD_DIR:=$(BUILD_DIR)/otp_src_$(PKG_VERSION)  
 
include $(INCLUDE_DIR)/host-build.mk  
include $(INCLUDE_DIR)/package.mk  
 
define Package/erlang/Default  
SUBMENU:=Erlang  
SECTION:=lang  
CATEGORY:=Languages  
TITLE:=Erlang/OTP programming language  
URL:=http://www.erlang.org/  
endef  
 
define Package/erlang/Default/description  
Erlang/OTP is a general-purpose programming language and runtime  
environment. Erlang has built-in support for concurrency, distribution  
and fault tolerance.  
endef  
 
define Package/erlang  
$(call Package/erlang/Default)  
DEPENDS+= +libncurses +librt +zlib  
PROVIDES:= erlang-erts=5.10.3 erlang-kernel=2.16.3 erlang-sasl=2.3.3 erlang-stdlib=1.19.3  
endef  
 
define Package/erlang/description  
$(call Package/erlang/Default/description)  
.  
This package contains the runtime implementation and a minimal set of  
modules (erts, kernel, sasl & stdlib).  
endef  
 
 
define Package/erlang-asn1  
$(call Package/erlang/Default)  
TITLE:=Abstract Syntax Notation One (ASN.1) support  
VERSION:=2.0.3  
DEPENDS+= +erlang +erlang-syntax-tools  
endef  
 
define Package/erlang-asn1/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides Abstract Syntax Notation One (ASN.1)  
support.  
endef  
 
 
define Package/erlang-compiler  
$(call Package/erlang/Default)  
TITLE:=Byte code compiler  
VERSION:=4.9.3  
DEPENDS+= +erlang +erlang-hipe  
endef  
 
define Package/erlang-compiler/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides a byte code compiler for Erlang which  
produces highly compact code.  
endef  
 
 
define Package/erlang-crypto  
$(call Package/erlang/Default)  
TITLE:=Cryptography support  
VERSION:=3.1  
DEPENDS+= +erlang +libopenssl  
endef  
 
define Package/erlang-crypto/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides functions for computation of message  
digests, and encryption and decryption functions.  
endef  
 
 
define Package/erlang-hipe  
$(call Package/erlang/Default)  
TITLE:=High Performance Erlang  
VERSION:=3.10.2.1  
DEPENDS+= +erlang  
endef  
 
define Package/erlang-hipe/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides HiPE (High Performance Erlang)  
support.  
endef  
 
 
define Package/erlang-inets  
$(call Package/erlang/Default)  
TITLE:=Internet clients and servers  
VERSION:=5.9.6  
DEPENDS+= +erlang  
endef  
 
define Package/erlang-inets/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides a container for Internet clients and  
servers. Currently a FTP client, a HTTP client and server, and a tftp  
client and server have been incorporated in Inets.  
endef  
 
 
define Package/erlang-mnesia  
$(call Package/erlang/Default)  
TITLE:=Distributed database  
VERSION:=4.10  
DEPENDS+= +erlang  
endef  
 
define Package/erlang-mnesia/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides a distributed DataBase Management  
System (DBMS), appropriate for telecommunications applications and  
other Erlang applications which require continuous operation and  
exhibit soft real-time properties.  
endef  
 
 
define Package/erlang-runtime-tools  
$(call Package/erlang/Default)  
TITLE:=Low-profile debugging/tracing tools  
VERSION:=1.8.12  
DEPENDS+= +erlang  
endef  
 
define Package/erlang-runtime-tools/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides low footprint tracing/debugging tools  
suitable for inclusion in a production system.  
endef  
 
 
define Package/erlang-snmp  
$(call Package/erlang/Default)  
TITLE:=Simple Network Management Protocol (SNMP) support  
VERSION:=4.24.2  
DEPENDS+= +erlang +erlang-asn1  
endef  
 
define Package/erlang-snmp/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides Simple Network Management Protocol  
(SNMP) support including a MIB compiler and tools for creating SNMP  
agents.  
endef  
 
 
define Package/erlang-ssh  
$(call Package/erlang/Default)  
TITLE:=Secure Shell (SSH) support  
VERSION:=2.1.8  
DEPENDS+= +erlang +erlang-crypto  
endef  
 
define Package/erlang-ssh/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides an implementation of the Secure Shell  
protocol, with SSH & SFTP support.  
endef  
 
 
define Package/erlang-ssl  
$(call Package/erlang/Default)  
TITLE:=Secure Sockets Layer (SSL) support  
VERSION:=5.3.1  
DEPENDS+= +erlang +erlang-crypto  
endef  
 
define Package/erlang-ssl/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides support for secure communication over  
sockets.  
endef  
 
 
define Package/erlang-syntax-tools  
$(call Package/erlang/Default)  
TITLE:=Abstract Erlang syntax trees handling support  
VERSION:=1.6.11  
DEPENDS+= +erlang  
endef  
 
define Package/erlang-syntax-tools/description  
$(call Package/erlang/Default/description)  
.  
This Erlang/OTP package provides support for handling abstract Erlang  
syntax trees.  
endef  
 
 
# Host  
 
HOST_CONFIGURE_ARGS += \  
--disable-hipe \  
--disable-smp-support \  
--without-javac  
 
define Host/Compile  
$(MAKE) -C $(HOST_BUILD_DIR) all  
endef  
 
define Host/Install  
$(MAKE) -C $(HOST_BUILD_DIR) install  
endef  
 
 
# Target  
 
CONFIGURE_ARGS += \  
--disable-hipe \  
--disable-smp-support \  
--without-javac \  
--enable-dynamic-ssl-lib  
 
CONFIGURE_VARS += \  
SHLIB_LD="$(TARGET_CC)" \  
TARGET_ARCH="$(TARGET_ARCH)" \  
ac_cv_func_mmap_fixed_mapped=yes \  
ac_cv_path_WX_CONFIG_PATH=no \  
erl_xcomp_getaddrinfo=no \  
erl_xcomp_sysroot="$(STAGING_DIR)"  
 
EXTRA_LDFLAGS+=-lz  
 
define Build/Compile  
$(MAKE) -C $(PKG_BUILD_DIR) \  
noboot  
$(MAKE) -C $(PKG_BUILD_DIR) \  
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \  
install  
endef  
 
define Package/erlang/install  
$(INSTALL_DIR) $(1)/usr/bin  
for f in epmd erl erlc escript run_erl; do \  
$(CP) $(PKG_INSTALL_DIR)/usr/bin/$$$$f $(1)/usr/bin/ ; \  
done  
$(INSTALL_DIR) $(1)/usr/lib/erlang/bin  
for f in erl erlc escript run_erl start start.boot start.script start_clean.boot start_erl start_sasl.boot to_erl; do \  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/bin/$$$$f $(1)/usr/lib/erlang/bin/ ; \  
done  
$(INSTALL_DIR) $(1)/usr/lib/erlang/lib  
for m in erts kernel sasl stdlib; do \  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/lib/$$$$m-* $(1)/usr/lib/erlang/lib/ ; \  
rm -rf $(1)/usr/lib/erlang/lib/$$$$m-*/examples ; \  
rm -rf $(1)/usr/lib/erlang/lib/$$$$m-*/src ; \  
done  
$(INSTALL_DIR) $(1)/usr/lib/erlang  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/erts-* $(1)/usr/lib/erlang/  
rm -rf $(1)/usr/lib/erlang/erts-*/{doc,include,lib,man,src}  
rm -rf $(1)/usr/lib/erlang/erts-*/bin/*.src  
$(INSTALL_DIR) $(1)/usr/lib/erlang/releases  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/releases/* $(1)/usr/lib/erlang/releases/  
$(SED) 's,%ERL_ROOT%,/usr/lib/erlang,g' \  
$(1)/usr/lib/erlang/releases/RELEASES.src  
mv -f $(1)/usr/lib/erlang/releases/RELEASES.src \  
$(1)/usr/lib/erlang/releases/RELEASES  
for f in bin/erl bin/start erts-*/bin/erl erts-*/bin/start; do \  
$(SED) 's,^\(ROOTDIR\)=.*,\1=/usr/lib/erlang,g' \  
$(1)/usr/lib/erlang/$$$$f ; \  
done  
endef  
 
define Build/InstallDev  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_BUILD_DIR)/lib/erl_interface/obj/*/*.a $(1)/usr/lib  
$(INSTALL_DIR) $(1)/usr/include  
$(CP) $(PKG_BUILD_DIR)/lib/erl_interface/include/*.h $(1)/usr/include  
endef  
 
define BuildModule  
 
define Package/erlang-$(1)/install  
$(INSTALL_DIR) $$(1)/usr/lib/erlang/lib  
for m in $(2); do \  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/lib/$$$$$$$$m-* $$(1)/usr/lib/erlang/lib/ ; \  
rm -rf $$(1)/usr/lib/erlang/lib/$$$$$$$$m-*/{examples,priv/obj,src} ; \  
done  
endef  
 
$$(eval $$(call BuildPackage,erlang-$(1)))  
 
endef  
 
 
$(eval $(call HostBuild))  
$(eval $(call BuildPackage,erlang))  
$(eval $(call BuildModule,asn1,asn1))  
$(eval $(call BuildModule,compiler,compiler))  
$(eval $(call BuildModule,crypto,crypto))  
$(eval $(call BuildModule,hipe,hipe))  
$(eval $(call BuildModule,inets,inets))  
$(eval $(call BuildModule,mnesia,mnesia))  
$(eval $(call BuildModule,runtime-tools,runtime_tools))  
$(eval $(call BuildModule,snmp,snmp))  
$(eval $(call BuildModule,ssh,ssh))  
$(eval $(call BuildModule,ssl,ssl))  
$(eval $(call BuildModule,syntax-tools,syntax_tools))  
 
--- a/erts/emulator/Makefile.in  
+++ b/erts/emulator/Makefile.in  
@@ -591,7 +591,7 @@ endif  
 
 
$(OBJDIR)/%.o: beam/%.c  
- $(V_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@  
+ $(V_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@  
 
else  
 
 
--- a/lib/tools/Makefile  
+++ b/lib/tools/Makefile  
@@ -23,7 +23,7 @@ include $(ERL_TOP)/make/$(TARGET)/otp.mk  
# Macros  
# ----------------------------------------------------  
 
-SUB_DIRECTORIES = c_src src doc/src examples priv emacs  
+SUB_DIRECTORIES = c_src src doc/src examples priv  
 
include vsn.mk  
VSN = $(TOOLS_VSN)  
 
file:a/lang/ruby/Makefile (deleted)
#  
# Copyright (C) 2006-2010 OpenWrt.org  
#  
# This is free software, licensed under the GNU General Public License v2.  
# See /LICENSE for more information.  
#  
 
#  
# To Do:  
# - split up encodings  
# - allow selection of either native or pure version of a library where supported  
# +-> some native libraries are probably only supported if ruby-dl is enabled  
# anything else?  
 
include $(TOPDIR)/rules.mk  
 
PKG_NAME:=ruby  
PKG_VERSION:=1.9.3-p545  
PKG_RELEASE:=1  
 
PKG_LIBVER:=1.9  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2  
PKG_SOURCE_URL:=ftp://ftp.ruby-lang.org/pub/ruby/$(PKG_LIBVER)/  
PKG_MD5SUM:=4743c1dc48491070bae8fc8b423bc1a7  
 
PKG_BUILD_DEPENDS:=ruby/host  
PKG_INSTALL:=1  
PKG_BUILD_PARALLEL:=1  
PKG_FIXUP:=autoreconf  
 
include $(INCLUDE_DIR)/host-build.mk  
include $(INCLUDE_DIR)/package.mk  
include $(INCLUDE_DIR)/nls.mk  
 
define Package/ruby/Default  
SUBMENU:=Ruby  
SECTION:=lang  
CATEGORY:=Languages  
TITLE:=Ruby scripting language  
URL:=http://www.ruby-lang.org/  
endef  
 
define Package/ruby/Default/description  
Ruby is the interpreted scripting language for quick and easy  
object-oriented programming. It has many features to process text files  
and to do system management tasks (as in perl). It is simple,  
straight-forward, and extensible.  
endef  
 
define Package/ruby  
$(call Package/ruby/Default)  
TITLE+= (interpreter)  
DEPENDS:=+libruby  
endef  
 
define Package/ruby/description  
$(call Package/ruby/Default/description)  
endef  
 
define Package/libruby  
$(call Package/ruby/Default)  
SUBMENU:=  
SECTION:=libs  
CATEGORY:=Libraries  
TITLE+= (shared library)  
DEPENDS+= +libpthread +librt  
endef  
 
# Ongoing work to break up ruby's standard library into coherent pieces  
# with minimal dependencies between them  
 
define Package/ruby-core  
$(call Package/ruby/Default)  
TITLE:=Ruby standard libraries  
DEPENDS:=ruby +libdb47 +libffi  
endef  
 
define Package/ruby-cgi  
$(call Package/ruby/Default)  
TITLE:=Ruby CGI support toolkit  
DEPENDS:=ruby  
endef  
 
define Package/ruby-dl  
$(call Package/ruby/Default)  
TITLE+= (dynamic linker support) (adds 5MB+)  
DEPENDS:=ruby  
endef  
 
define Package/ruby-enc  
$(call Package/ruby/Default)  
TITLE+= (character re-coding library) (adds 2MB+)  
DEPENDS:=ruby  
endef  
 
define Package/ruby-erb  
$(call Package/ruby/Default)  
TITLE+= (embedded interpreter)  
DEPENDS:=ruby  
endef  
 
define Package/ruby-gdbm  
$(call Package/ruby/Default)  
TITLE:=Ruby support for gdbm  
DEPENDS:=ruby +libgdbm  
endef  
 
define Package/ruby-gems  
$(call Package/ruby/Default)  
TITLE:=Ruby gems packet management  
DEPENDS:=ruby +ruby-yaml +ruby-zlib +ruby-openssl +ruby-webrick +ruby-erb  
endef  
 
define Package/ruby-irb  
$(call Package/ruby/Default)  
TITLE+= (interactive shell)  
DEPENDS:=ruby +ruby-core  
endef  
 
define Package/ruby-json  
$(call Package/ruby/Default)  
TITLE:=Ruby support for JSON  
DEPENDS:=ruby  
endef  
 
define Package/ruby-ncurses  
$(call Package/ruby/Default)  
TITLE:=Ruby support for ncurses  
DEPENDS:=ruby +libncurses +libncursesw  
endef  
 
define Package/ruby-nkf  
$(call Package/ruby/Default)  
TITLE:=Ruby Network Kanji Filter  
DEPENDS:=ruby  
endef  
 
define Package/ruby-openssl  
$(call Package/ruby/Default)  
TITLE:=Ruby support for openssl  
DEPENDS:=ruby +libopenssl  
endef  
 
define Package/ruby-rdoc  
$(call Package/ruby/Default)  
TITLE+= (documentation generator)  
DEPENDS:=ruby  
endef  
 
define Package/ruby-rake  
$(call Package/ruby/Default)  
TITLE+=Ruby Rake (make replacement)  
DEPENDS:=ruby  
endef  
 
define Package/ruby-readline  
$(call Package/ruby/Default)  
TITLE:=Ruby support for readline  
DEPENDS:=ruby +libncurses +libreadline  
endef  
 
define Package/ruby-rexml  
$(call Package/ruby/Default)  
TITLE:=Ruby XML toolkit  
DEPENDS:=ruby  
endef  
 
define Package/ruby-rss  
$(call Package/ruby/Default)  
TITLE:=Ruby RSS toolkit  
DEPENDS:=ruby  
endef  
 
define Package/ruby-unit  
$(call Package/ruby/Default)  
TITLE:=Ruby unit testing toolkit  
DEPENDS:=ruby  
endef  
 
define Package/ruby-webrick  
$(call Package/ruby/Default)  
TITLE:=Ruby Web server toolkit  
DEPENDS:=ruby  
endef  
 
define Package/ruby-xmlrpc  
$(call Package/ruby/Default)  
TITLE:=Ruby XML-RPC toolkit  
DEPENDS:=ruby  
endef  
 
define Package/ruby-yaml  
$(call Package/ruby/Default)  
TITLE:=Ruby YAML toolkit  
DEPENDS:=ruby  
endef  
 
define Package/ruby-zlib  
$(call Package/ruby/Default)  
TITLE:=Ruby support for zlib  
DEPENDS:=ruby +zlib  
endef  
 
HOST_CONFIGURE_ARGS += \  
--disable-install-doc \  
--disable-install-rdoc \  
--disable-install-capi  
 
CONFIGURE_ARGS += \  
--enable-shared \  
--enable-static \  
--disable-rpath \  
--enable-ipv6 \  
--with-ruby-version=minor \  
--with-iconv-dir=$(ICONV_PREFIX) \  
 
TARGET_LDFLAGS += -L$(PKG_BUILD_DIR)  
 
MAKE_FLAGS += \  
DESTDIR="$(PKG_INSTALL_DIR)" \  
SHELL="/bin/bash"  
 
define Package/ruby/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/bin/  
endef  
 
define Package/libruby/install  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libruby.so.* $(1)/usr/lib/  
endef  
 
define Package/ruby-core/install  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby $(1)/usr/lib/  
rm -rf \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/curses.so \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/gdbm.so \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/kconv.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/nkf.so \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/digest \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/digest.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/digest \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/digest.so \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/openssl \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/openssl.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/openssl.so \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/drb/ssl.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/net/https.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/webrick/ssl.rb \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/dl.so \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/enc \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/readline.so \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/irb/completion.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/irb/ext/save-history.rb \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/zlib.so \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/erb.rb \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/json.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/json \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/json \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/irb.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/irb \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rdoc \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rake.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rake \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rubygems.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rubygems \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/cgi.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/cgi \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rexml \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rss \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rss.rb \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/test \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/webrick \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/webrick.rb \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/xmlrpc \  
\  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/yaml \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/yaml.rb \  
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/syck.so \  
 
find $(1) -name '*.h' | xargs rm -f  
endef  
 
define Package/ruby-cgi/install  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/cgi $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/cgi.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-dl/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/*/dl.so \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Package/ruby-enc/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/*/enc \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Package/ruby-erb/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/erb $(1)/usr/bin/  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/erb.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-gdbm/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/*/gdbm.so \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Package/ruby-gems/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(CP) $(PKG_INSTALL_DIR)/usr/bin/gem $(1)/usr/bin/  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-irb/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/irb $(1)/usr/bin/  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/irb $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/irb.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-json/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/json.rb \  
usr/lib/ruby/$(PKG_LIBVER)/json \  
usr/lib/ruby/$(PKG_LIBVER)/*/json \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Package/ruby-ncurses/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/*/curses.so \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Package/ruby-nkf/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/kconv.rb \  
usr/lib/ruby/$(PKG_LIBVER)/*/nkf.so \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Package/ruby-openssl/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/digest \  
usr/lib/ruby/$(PKG_LIBVER)/digest.rb \  
usr/lib/ruby/$(PKG_LIBVER)/*/digest.so \  
usr/lib/ruby/$(PKG_LIBVER)/*/digest/*.so \  
usr/lib/ruby/$(PKG_LIBVER)/openssl \  
usr/lib/ruby/$(PKG_LIBVER)/openssl.rb \  
usr/lib/ruby/$(PKG_LIBVER)/*/openssl.so \  
usr/lib/ruby/$(PKG_LIBVER)/drb/ssl.rb \  
usr/lib/ruby/$(PKG_LIBVER)/net/https.rb \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Package/ruby-rdoc/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rdoc $(1)/usr/bin/  
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ri $(1)/usr/bin/  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-rake/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rake $(1)/usr/bin/  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-readline/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/*/readline.so \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Package/ruby-rexml/install  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rexml $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
 
define Package/ruby-rss/install  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rss $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rss.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-unit/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/testrb $(1)/usr/bin/  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/test $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-webrick/install  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/webrick $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/webrick.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-xmlrpc/install  
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/xmlrpc $(1)/usr/lib/ruby/$(PKG_LIBVER)/  
endef  
 
define Package/ruby-yaml/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/yaml \  
usr/lib/ruby/$(PKG_LIBVER)/yaml.rb \  
usr/lib/ruby/$(PKG_LIBVER)/*/syck.so \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Package/ruby-zlib/install  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
usr/lib/ruby/$(PKG_LIBVER)/*/zlib.so \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
define Build/InstallDev  
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \  
. \  
) | ( cd $(1); $(TAR) -xf - )  
endef  
 
$(eval $(call BuildPackage,ruby))  
$(eval $(call BuildPackage,libruby))  
$(eval $(call BuildPackage,ruby-core))  
$(eval $(call BuildPackage,ruby-cgi))  
$(eval $(call BuildPackage,ruby-dl))  
$(eval $(call BuildPackage,ruby-enc))  
$(eval $(call BuildPackage,ruby-erb))  
$(eval $(call BuildPackage,ruby-gdbm))  
$(eval $(call BuildPackage,ruby-gems))  
$(eval $(call BuildPackage,ruby-json))  
$(eval $(call BuildPackage,ruby-irb))  
$(eval $(call BuildPackage,ruby-ncurses))  
$(eval $(call BuildPackage,ruby-nkf))  
$(eval $(call BuildPackage,ruby-openssl))  
$(eval $(call BuildPackage,ruby-rake))  
$(eval $(call BuildPackage,ruby-rdoc))  
$(eval $(call BuildPackage,ruby-readline))  
$(eval $(call BuildPackage,ruby-rexml))  
$(eval $(call BuildPackage,ruby-rss))  
$(eval $(call BuildPackage,ruby-unit))  
$(eval $(call BuildPackage,ruby-webrick))  
$(eval $(call BuildPackage,ruby-xmlrpc))  
$(eval $(call BuildPackage,ruby-yaml))  
$(eval $(call BuildPackage,ruby-zlib))  
$(eval $(call HostBuild))  
 
--- a/ext/socket/extconf.rb 2013-02-14 23:20:13.581918676 -0200  
+++ b/ext/socket/extconf.rb 2013-02-14 23:21:25.761918667 -0200  
@@ -254,6 +254,7 @@  
end  
 
getaddr_info_ok = (enable_config("wide-getaddrinfo") && :wide) ||  
+ (CROSS_COMPILING && :cross) ||  
(checking_for("wide getaddrinfo") {try_run(<<EOF)} && :os)  
#{cpp_include(headers)}  
#include <stdlib.h>  
 
file:a/libs/freetype/Makefile (deleted)
#  
# Copyright (C) 2006-2012 OpenWrt.org  
#  
# This is free software, licensed under the GNU General Public License v2.  
# See /LICENSE for more information.  
#  
 
include $(TOPDIR)/rules.mk  
 
PKG_NAME:=freetype  
PKG_VERSION:=2.4.8  
PKG_RELEASE:=1  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2  
PKG_SOURCE_URL:=@SF/freetype  
PKG_MD5SUM:=dbf2caca1d3afd410a29217a9809d397  
 
PKG_LICENSE:=FTL GPLv2 MIT ZLIB  
PKG_LICENSE_FILES:=docs/LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT src/bdf/README src/pcf/README src/gzip/zlib.h  
 
PKG_FIXUP:=autoreconf  
PKG_LIBTOOL_PATHS:=builds/unix  
 
include $(INCLUDE_DIR)/host-build.mk  
include $(INCLUDE_DIR)/package.mk  
 
define Package/libfreetype  
SECTION:=libs  
CATEGORY:=Libraries  
TITLE:=A free, high-quality and portable font engine  
URL:=http://www.freetype.org/  
DEPENDS:=+zlib +libbz2  
endef  
 
define Package/libfreetype/description  
The FreeType project is a team of volunteers who develop free,  
portable and high-quality software solutions for digital typography.  
They specifically target embedded systems and focus on bringing small,  
efficient and ubiquitous products.  
endef  
 
TARGET_CFLAGS += $(FPIC)  
 
CONFIGURE_ARGS += \  
--enable-shared \  
--enable-static \  
 
define Build/Compile  
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install  
endef  
 
define Build/InstallDev  
$(INSTALL_DIR) $(2)/bin  
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/freetype-config $(2)/bin/  
$(INSTALL_DIR) $(1)/usr/include  
$(CP) $(PKG_INSTALL_DIR)/usr/include/freetype2 $(1)/usr/include/  
$(CP) $(PKG_INSTALL_DIR)/usr/include/ft2build.h $(1)/usr/include/  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so*} $(1)/usr/lib/  
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(1)/usr/lib/pkgconfig/  
 
$(SED) \  
's,^\(prefix\|exec_prefix\)=.*,\1="$(STAGING_DIR)/usr",g' \  
$(2)/bin/freetype-config  
endef  
 
 
define Package/libfreetype/install  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/  
endef  
 
$(eval $(call HostBuild))  
$(eval $(call BuildPackage,libfreetype))  
 
file:a/libs/liblo/Makefile (deleted)
#  
# Copyright (C) 2010 OpenWrt.org  
#  
# This is free software, licensed under the GNU General Public License v2.  
# See /LICENSE for more information.  
#  
 
include $(TOPDIR)/rules.mk  
 
PKG_NAME:=liblo  
PKG_VERSION:=0.26  
PKG_RELEASE:=1  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz  
PKG_SOURCE_URL:=@SF/liblo  
PKG_MD5SUM:=5351de14262560e15e7f23865293b16f  
 
PKG_FIXUP:=autoreconf  
PKG_REMOVE_FILES:=autogen.sh aclocal.m4  
 
PKG_INSTALL:=1  
 
include $(INCLUDE_DIR)/package.mk  
 
define Package/liblo/Default  
SUBMENU:=Sound  
TITLE:=Lightweight Open Sound Control (OSC)  
URL:=http://liblo.sourceforge.net/  
endef  
 
define Package/liblo  
$(call Package/liblo/Default)  
SECTION:=libs  
CATEGORY:=Libraries  
TITLE+= library  
DEPENDS:= +libpthread  
endef  
 
define Package/liblo-utils  
$(call Package/liblo/Default)  
SECTION:=utils  
CATEGORY:=Utilities  
TITLE+= utilities  
DEPENDS:= +liblo  
endef  
 
define Build/InstallDev  
$(INSTALL_DIR) $(1)/usr/include  
( cd $(PKG_INSTALL_DIR); $(CP) \  
./usr/include/lo \  
$(1)/usr/include/ \  
)  
$(INSTALL_DIR) $(1)/usr/lib  
( cd $(PKG_INSTALL_DIR); $(CP) \  
./usr/lib/liblo.so* \  
$(1)/usr/lib/ \  
)  
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig  
( cd $(PKG_INSTALL_DIR); $(CP) \  
./usr/lib/pkgconfig/liblo.pc \  
$(1)/usr/lib/pkgconfig/ \  
)  
endef  
 
define Package/liblo/install  
$(INSTALL_DIR) $(1)/usr/lib  
( cd $(PKG_INSTALL_DIR); $(CP) \  
./usr/lib/liblo.so.* \  
$(1)/usr/lib/ \  
)  
endef  
 
define Package/liblo-utils/install  
$(INSTALL_DIR) $(1)/usr/bin  
( cd $(PKG_INSTALL_DIR); $(CP) \  
./usr/bin/oscdump \  
./usr/bin/oscsend \  
$(1)/usr/bin/ \  
)  
endef  
 
$(eval $(call BuildPackage,liblo))  
$(eval $(call BuildPackage,liblo-utils))  
 
comments