lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1744B)


      1 #
      2 # Copyright (C) 2006-2015 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=tcl
     11 PKG_VERSION:=8.6.4
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION)-src.tar.gz
     15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
     16 PKG_MD5SUM:=d7cbb91f1ded1919370a30edd1534304
     17 
     18 PKG_LICENSE:=TCL
     19 PKG_LICENSE_FILES:=license.terms
     20 PKG_MAINTAINER:=Joe Mistachkin <joe@mistachkin.com>
     21 
     22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)
     23 
     24 PKG_FIXUP:=autoreconf
     25 PKG_INSTALL:=1
     26 
     27 include $(INCLUDE_DIR)/package.mk
     28 
     29 define Package/tcl
     30   SUBMENU:=Tcl
     31   SECTION:=lang
     32   CATEGORY:=Languages
     33   DEPENDS:=+libpthread @BROKEN
     34   TITLE:=The Tcl language
     35   URL:=http://www.tcl.tk/
     36 endef
     37 
     38 define Package/tcl/description
     39   Tcl, or Tool Command Language, is a an elegant, versatile, feature-rich,
     40   simple-to-learn yet very powerful industrial-strength open-source
     41   programming language and development platform. It is renowned for its
     42   stability and utility, and its emphasis on providing a cross-platform
     43   programming API makes it an ideal choice for an enormous variety of
     44   programming jobs.
     45 endef
     46 
     47 CONFIGURE_PATH := unix
     48 
     49 CONFIGURE_VARS += \
     50 	tcl_cv_strtod_unbroken=ok
     51 
     52 CONFIGURE_ARGS += \
     53 	--enable-threads
     54 
     55 MAKE_PATH := unix
     56 
     57 define Build/InstallDev
     58 	$(INSTALL_DIR) $(1)/usr/include
     59 	$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
     60 
     61 	$(INSTALL_DIR) $(1)/usr/lib
     62 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtcl*.{a,so*} $(1)/usr/lib/
     63 endef
     64 
     65 define Package/tcl/install
     66 	$(INSTALL_DIR) $(1)/usr/lib
     67 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib
     68 
     69 	$(INSTALL_DIR) $(1)/usr/bin
     70 	$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
     71 endef
     72 
     73 $(eval $(call BuildPackage,tcl))