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 | # install the "guile" in your HOST pc for compile this package |
| 13 | |
| 14 | include $(TOPDIR)/rules.mk |
| 15 | |
| 16 | PKG_NAME:=guile |
| 17 | PKG_VERSION:=1.8.7 |
| 18 | |
| 19 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 20 | PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/guile/ |
| 21 | |
| 22 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 23 | |
| 24 | PKG_FIXUP:=libtool |
| 25 | PKG_INSTALL:=1 |
| 26 | |
| 27 | include $(INCLUDE_DIR)/package.mk |
| 28 | |
| 29 | define Package/guile |
| 30 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
| 31 | TITLE:=guile |
| 32 | SECTION:=lang |
| 33 | CATEGORY:=Languages |
| 34 | DEPENDS:=+libgmp +libpthread +libltdl +libncurses +libreadline |
| 35 | URL:=http://savannah.gnu.org/projects/guile/ |
| 36 | endef |
| 37 | |
| 38 | define Package/guile/description |
| 39 | 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. |
| 40 | endef |
| 41 | |
| 42 | TARGET_LDFLAGS+="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib" |
| 43 | |
| 44 | # should fix issue with threads |
| 45 | CONFIGURE_ARGS += --without-threads --without-gettext |
| 46 | |
| 47 | define Build/InstallDev |
| 48 | $(INSTALL_DIR) \ |
| 49 | $(1)/usr/include \ |
| 50 | $(1)/usr/lib \ |
| 51 | $(1)/usr/lib/pkgconfig |
| 52 | $(CP) \ |
| 53 | $(PKG_INSTALL_DIR)/usr/lib/* \ |
| 54 | $(1)/usr/lib/ |
| 55 | $(CP) \ |
| 56 | $(PKG_INSTALL_DIR)/usr/include/* \ |
| 57 | $(1)/usr/include/ |
| 58 | $(CP) \ |
| 59 | $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \ |
| 60 | $(1)/usr/lib/ |
| 61 | endef |
| 62 | |
| 63 | define Package/guile/install |
| 64 | $(INSTALL_DIR) $(1)/usr/bin |
| 65 | $(INSTALL_DIR) $(1)/usr/lib |
| 66 | $(INSTALL_DIR) $(1)/usr/share/guile/1.8 |
| 67 | |
| 68 | $(CP) \ |
| 69 | $(PKG_INSTALL_DIR)/usr/bin/* \ |
| 70 | $(1)/usr/bin/ |
| 71 | $(CP) \ |
| 72 | $(PKG_INSTALL_DIR)/usr/lib/libguile*.so* \ |
| 73 | $(1)/usr/lib/ |
| 74 | $(CP) \ |
| 75 | $(PKG_INSTALL_DIR)/usr/share/guile/1.8/* \ |
| 76 | $(1)/usr/share/guile/1.8/ |
| 77 | |
| 78 | endef |
| 79 | |
| 80 | $(eval $(call RequireCommand,guile,$(PKG_NAME) requires guile on the host system.)) |
| 81 | $(eval $(call BuildPackage,guile)) |
| 82 |
