mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 15:29:43 +02:00
fixed guile2 Makefile to use guile from toolchain instead of host machine
This commit is contained in:
parent
f12878f893
commit
e88e68ee92
@ -13,7 +13,6 @@
|
|||||||
# modified 20/02/2012
|
# modified 20/02/2012
|
||||||
# author: jnbagale@gmail.com
|
# author: jnbagale@gmail.com
|
||||||
|
|
||||||
# install the "guile 2" in your HOST pc for compile this package
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
@ -25,9 +24,13 @@ PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/guile/
|
|||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
HOST_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
PKG_FIXUP:=libtool
|
PKG_FIXUP:=libtool
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/nls.mk
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
||||||
@ -44,10 +47,30 @@ define Package/guile2/description
|
|||||||
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.
|
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.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# should fix issue with threads
|
CONFIGURE_ARGS += --with-libgmp-prefix --with-libunistring-prefix --with-libltdl-prefix --with-libffi-prefix
|
||||||
CONFIGURE_ARGS += --with-libgmp-prefix --with-libunistring-prefix --with-libltdl-prefix
|
|
||||||
CONFIGURE_VARS += gl_cv_func_duplocale_works=yes guile_cv_use_csqrt="no, Ben NanoNote (cross-compiling)"
|
CONFIGURE_VARS += gl_cv_func_duplocale_works=yes guile_cv_use_csqrt="no, Ben NanoNote (cross-compiling)"
|
||||||
|
|
||||||
|
HOST_CONFIGURE_ARGS += --with-libgmp-prefix --with-libunistring-prefix --with-libltdl-prefix --with-libffi-prefix
|
||||||
|
|
||||||
|
define Build/Prepare
|
||||||
|
$(call Build/Prepare/Default)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Host/Configure
|
||||||
|
$(call Host/Configure/Default)
|
||||||
|
endef
|
||||||
|
|
||||||
|
## On the host, we only compile and install guile2 used for
|
||||||
|
## bootstrapping
|
||||||
|
define Host/Compile
|
||||||
|
export LD_LIBRARY_PATH=$(STAGING_DIR_HOST)lib; \
|
||||||
|
$(call Host/Compile/Default)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Host/Install
|
||||||
|
$(call Host/Install/Default)
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) \
|
$(INSTALL_DIR) \
|
||||||
$(1)/usr/include \
|
$(1)/usr/include \
|
||||||
@ -60,8 +83,8 @@ define Build/InstallDev
|
|||||||
$(PKG_INSTALL_DIR)/usr/include/* \
|
$(PKG_INSTALL_DIR)/usr/include/* \
|
||||||
$(1)/usr/include/
|
$(1)/usr/include/
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
||||||
$(1)/usr/lib/
|
$(1)/usr/lib/pkgconfig/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/guile2/install
|
define Package/guile2/install
|
||||||
@ -85,5 +108,5 @@ define Package/guile2/install
|
|||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call RequireCommand,guile,$(PKG_NAME) requires guile on the host system.))
|
$(eval $(call HostBuild))
|
||||||
$(eval $(call BuildPackage,guile2))
|
$(eval $(call BuildPackage,guile2))
|
||||||
|
Loading…
Reference in New Issue
Block a user