Date:2012-02-21 15:08:20 (9 years 4 days ago)
Author:Jiva Nath Bagale
Commit:7addc31ac7db11510089e33db88752c60d86a53a
Message:guile 2 Makefile, libunistring updated

Files: guile2/Makefile (1 diff)
guile2/patches/0001-disable_gnu_locale_api.patch (1 diff)
libunistring/Makefile (2 diffs)

Change Details

guile2/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
13# modified 20/02/2012
14# author: jnbagale@gmail.com
15
16# install the "guile 2" in your HOST pc for compile this package
17
18include $(TOPDIR)/rules.mk
19
20PKG_NAME:=guile
21PKG_VERSION:=2.0.5
22
23PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
24PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/guile/
25
26PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
27
28PKG_FIXUP:=libtool
29PKG_INSTALL:=1
30
31include $(INCLUDE_DIR)/package.mk
32include $(INCLUDE_DIR)/nls.mk
33
34define Package/guile2
35    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
36    TITLE:=guile2
37    SECTION:=lang
38    CATEGORY:=Languages
39    DEPENDS:=+libgmp +libpthread +libltdl +libncurses +libreadline +libffi +libunistring +gc
40    URL:=http://savannah.gnu.org/projects/guile/
41endef
42
43define Package/guile2/description
44    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.
45endef
46
47# should fix issue with threads
48CONFIGURE_ARGS += --with-libgmp-prefix --with-libunistring-prefix --with-libltdl-prefix
49CONFIGURE_VARS += gl_cv_func_duplocale_works=yes guile_cv_use_csqrt="no, Ben NanoNote (cross-compiling)"
50
51define Build/InstallDev
52    $(INSTALL_DIR) \
53        $(1)/usr/include \
54        $(1)/usr/lib \
55        $(1)/usr/lib/pkgconfig
56    $(CP) \
57        $(PKG_INSTALL_DIR)/usr/lib/* \
58        $(1)/usr/lib/
59    $(CP) \
60        $(PKG_INSTALL_DIR)/usr/include/* \
61        $(1)/usr/include/
62    $(CP) \
63        $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
64        $(1)/usr/lib/
65endef
66
67define Package/guile2/install
68    $(INSTALL_DIR) $(1)/usr/bin
69    $(INSTALL_DIR) $(1)/usr/lib
70    $(INSTALL_DIR) $(1)/usr/lib/guile/2.0
71    $(INSTALL_DIR) $(1)/usr/share/guile/2.0
72
73    $(CP) \
74        $(PKG_INSTALL_DIR)/usr/bin/* \
75        $(1)/usr/bin/
76    $(CP) \
77        $(PKG_INSTALL_DIR)/usr/lib/libguile*.so* \
78        $(1)/usr/lib/
79    $(CP) \
80        $(PKG_INSTALL_DIR)/usr/lib/guile/2.0/* \
81        $(1)/usr/lib/guile/2.0/
82    $(CP) \
83        $(PKG_INSTALL_DIR)/usr/share/guile/2.0/* \
84        $(1)/usr/share/guile/2.0/
85
86endef
87
88$(eval $(call RequireCommand,guile,$(PKG_NAME) requires guile on the host system.))
89$(eval $(call BuildPackage,guile2))
guile2/patches/0001-disable_gnu_locale_api.patch
1--- guile-2.0.2/libguile/i18n.c 2011-08-12 16:47:52.538234245 +0200
2@@ -865,7 +865,7 @@
3   *dst = '\0';
4 }
5
6-#ifdef USE_GNU_LOCALE_API
7+#ifdef USE_GNU_LOCALE_API_DISABLED
8 static inline void
9 str_upcase_l (register char *dst, register const char *src,
10           scm_t_locale locale)
libunistring/Makefile
66# See /LICENSE for more information.
77#
88
9# modified 20/02/2012
10# author: jnbagale@gmail.com
11
912include $(TOPDIR)/rules.mk
1013
1114PKG_NAME:=libunistring
12PKG_VERSION:=0.9.2.1
15PKG_VERSION:=0.9.3
1316
1417PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1518PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/$(PKG_NAME)/
...... 
1720PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
1821
1922include $(INCLUDE_DIR)/package.mk
23include $(INCLUDE_DIR)/nls.mk
2024
2125define Package/libunistring
2226    MAINTAINER:="Bart van Strien" <bart.bes@gmail.com>
2327    TITLE:=libunistring
2428    SECTION:=libs
2529    CATEGORY:=Libraries
26    DEPENDS:=+libiconv
30    DEPENDS:=$(ICONV_DEPENDS)
2731    URL:=http://savannah.gnu.org/projects/libunistring/
2832endef
2933

Archive Download the corresponding diff file



interactive