Root/guile/Makefile

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
14include $(TOPDIR)/rules.mk
15
16PKG_NAME:=guile
17PKG_VERSION:=1.8.7
18
19PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/guile/
21
22PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
23
24PKG_FIXUP:=libtool
25PKG_INSTALL:=1
26
27include $(INCLUDE_DIR)/package.mk
28
29define 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/
36endef
37
38define 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.
40endef
41
42TARGET_LDFLAGS+="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
43
44# should fix issue with threads
45CONFIGURE_ARGS += --without-threads --without-gettext
46
47define 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/
61endef
62
63define 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
78endef
79
80$(eval $(call RequireCommand,guile,$(PKG_NAME) requires guile on the host system.))
81$(eval $(call BuildPackage,guile))
82

Archive Download this file



interactive