OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2009 Qi Hardware Inc. |
| 3 | # Author: Xiangfu Liu <xiangfu@qi-hardware.com> |
| 4 | # |
| 5 | # This is free software, licensed under the GNU General Public License v2. |
| 6 | # See /LICENSE for more information. |
| 7 | # |
| 8 | |
| 9 | # modified 16/08/2010 |
| 10 | # author: jmoore@zedstar.org |
| 11 | |
| 12 | |
| 13 | # modified 20/02/2012 |
| 14 | # author: jnbagale@gmail.com |
| 15 | |
| 16 | # Install libffi-dev on the host computer |
| 17 | |
| 18 | include $(TOPDIR)/rules.mk |
| 19 | |
| 20 | PKG_NAME:=guile |
| 21 | PKG_VERSION:=2.0.5 |
| 22 | |
| 23 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 24 | PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/guile/ |
| 25 | |
| 26 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 27 | |
| 28 | PKG_BUILD_PARALLEL:=1 |
| 29 | HOST_BUILD_PARALLEL:=1 |
| 30 | |
| 31 | PKG_FIXUP:=libtool |
| 32 | PKG_INSTALL:=1 |
| 33 | |
| 34 | PKG_BUILD_DEPENDS:=guile2/host |
| 35 | HOST_BUILD_DEPENDS:=gettext/host libiconv/host gc/host |
| 36 | |
| 37 | include $(INCLUDE_DIR)/host-build.mk |
| 38 | include $(INCLUDE_DIR)/package.mk |
| 39 | include $(INCLUDE_DIR)/nls.mk |
| 40 | |
| 41 | define Package/guile2 |
| 42 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
| 43 | TITLE:=guile2 |
| 44 | SECTION:=lang |
| 45 | CATEGORY:=Languages |
| 46 | DEPENDS:=+libgmp +libpthread +libltdl +libncurses +libreadline +libffi +libunistring +gc |
| 47 | URL:=http://savannah.gnu.org/projects/guile/ |
| 48 | endef |
| 49 | |
| 50 | define Package/guile2/description |
| 51 | GNU Guile is an interpreter for Scheme, packaged as a library that you can link into your applications to give them their own scripting language. |
| 52 | endef |
| 53 | |
| 54 | CONFIGURE_ARGS += --with-libgmp-prefix --with-libunistring-prefix --with-libltdl-prefix |
| 55 | CONFIGURE_VARS += gl_cv_func_duplocale_works=yes guile_cv_use_csqrt="no, Ben NanoNote (cross-compiling)" |
| 56 | |
| 57 | HOST_CONFIGURE_ARGS += --disable-shared --with-libgmp-prefix --with-libunistring-prefix --with-libltdl-prefix |
| 58 | HOST_CONFIGURE_VARS += PKG_CONFIG=true LIBFFI_LIBS=-lffi BDW_GC_LIBS=-lgc |
| 59 | |
| 60 | define Build/Prepare |
| 61 | $(call Build/Prepare/Default) |
| 62 | endef |
| 63 | |
| 64 | define Host/Configure |
| 65 | $(call Host/Configure/Default) |
| 66 | endef |
| 67 | |
| 68 | ## On the host, we only compile and install guile2 used for bootstrapping |
| 69 | define Host/Compile |
| 70 | $(call Host/Compile/Default) |
| 71 | endef |
| 72 | |
| 73 | define Host/Install |
| 74 | $(call Host/Install/Default) |
| 75 | endef |
| 76 | |
| 77 | define Build/InstallDev |
| 78 | $(INSTALL_DIR) \ |
| 79 | $(1)/usr/include \ |
| 80 | $(1)/usr/lib \ |
| 81 | $(1)/usr/lib/pkgconfig |
| 82 | $(CP) \ |
| 83 | $(PKG_INSTALL_DIR)/usr/lib/* \ |
| 84 | $(1)/usr/lib/ |
| 85 | $(CP) \ |
| 86 | $(PKG_INSTALL_DIR)/usr/include/* \ |
| 87 | $(1)/usr/include/ |
| 88 | $(CP) \ |
| 89 | $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ |
| 90 | $(1)/usr/lib/pkgconfig/ |
| 91 | endef |
| 92 | |
| 93 | |
| 94 | |
| 95 | define Package/guile2/install |
| 96 | $(INSTALL_DIR) $(1)/usr/bin |
| 97 | $(INSTALL_DIR) $(1)/usr/lib |
| 98 | $(INSTALL_DIR) $(1)/usr/lib/guile/2.0 |
| 99 | $(INSTALL_DIR) $(1)/usr/share/guile/2.0 |
| 100 | |
| 101 | $(CP) \ |
| 102 | $(PKG_INSTALL_DIR)/usr/bin/* \ |
| 103 | $(1)/usr/bin/ |
| 104 | $(CP) \ |
| 105 | $(PKG_INSTALL_DIR)/usr/lib/libguile*.so* \ |
| 106 | $(1)/usr/lib/ |
| 107 | $(CP) \ |
| 108 | $(PKG_INSTALL_DIR)/usr/lib/guile/2.0/* \ |
| 109 | $(1)/usr/lib/guile/2.0/ |
| 110 | $(CP) \ |
| 111 | $(PKG_INSTALL_DIR)/usr/share/guile/2.0/* \ |
| 112 | $(1)/usr/share/guile/2.0/ |
| 113 | |
| 114 | endef |
| 115 | |
| 116 | $(eval $(call HostBuild)) |
| 117 | $(eval $(call BuildPackage,guile2)) |
