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 | TITLE:=guile |
31 | SECTION:=lang |
32 | CATEGORY:=Languages |
33 | DEPENDS:=+libgmp +libpthread +libltdl +libncurses +libreadline |
34 | URL:=http://savannah.gnu.org/projects/guile/ |
35 | endef |
36 | |
37 | define Package/guile/description |
38 | 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. |
39 | endef |
40 | |
41 | TARGET_LDFLAGS+="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib" |
42 | |
43 | # should fix issue with threads |
44 | CONFIGURE_ARGS += --without-threads --without-gettext |
45 | |
46 | define Build/InstallDev |
47 | $(INSTALL_DIR) \ |
48 | $(1)/usr/include \ |
49 | $(1)/usr/lib \ |
50 | $(1)/usr/lib/pkgconfig |
51 | $(CP) \ |
52 | $(PKG_INSTALL_DIR)/usr/lib/* \ |
53 | $(1)/usr/lib/ |
54 | $(CP) \ |
55 | $(PKG_INSTALL_DIR)/usr/include/* \ |
56 | $(1)/usr/include/ |
57 | $(CP) \ |
58 | $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \ |
59 | $(1)/usr/lib/ |
60 | endef |
61 | |
62 | define Build/Compile |
63 | (cd $(PKG_BUILD_DIR); autoreconf --force --install || exit 0); |
64 | endef |
65 | |
66 | define Package/guile/install |
67 | $(INSTALL_DIR) $(1)/usr/bin |
68 | $(INSTALL_DIR) $(1)/usr/lib |
69 | $(INSTALL_DIR) $(1)/usr/share/guile/1.8 |
70 | |
71 | $(CP) \ |
72 | $(PKG_INSTALL_DIR)/usr/bin/* \ |
73 | $(1)/usr/bin/ |
74 | $(CP) \ |
75 | $(PKG_INSTALL_DIR)/usr/lib/libguile*.so* \ |
76 | $(1)/usr/lib/ |
77 | $(CP) \ |
78 | $(PKG_INSTALL_DIR)/usr/share/guile/1.8/* \ |
79 | $(1)/usr/share/guile/1.8/ |
80 | |
81 | endef |
82 | |
83 | $(eval $(call BuildPackage,guile)) |
84 |