Changeset 18189


Ignore:
Timestamp:
2009-10-27T22:18:58+01:00 (7 years ago)
Author:
nbd
Message:

lua: re-enable host builds with some more fixes

Location:
trunk/package/lua
Files:
5 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/lua/Makefile

    r18159 r18189  
    1919PKG_MD5SUM:=d0870f2de55d59c1c8419f36e8fac150 
    2020 
     21HOST_PATCH_DIR := ./patches-host 
     22 
    2123include $(INCLUDE_DIR)/package.mk 
     24include $(INCLUDE_DIR)/host-build.mk 
    2225 
    2326define Package/lua/Default 
     
    109112endef 
    110113 
     114define Build/Configure 
     115        $(SED) 's,"/usr/local/","$(STAGING_DIR_HOST)/",' $(HOST_BUILD_DIR)/src/luaconf.h 
     116endef 
     117 
     118LUA_OS.Darwin:=macosx 
     119LUA_OS.FreeBSD:=freebsd 
     120LUA_OS:=$(LUA_OS.$(HOST_OS)) 
     121LUA_OS?=linux 
     122 
     123define Host/Compile 
     124        $(MAKE) -C $(HOST_BUILD_DIR) \ 
     125                CC="$(HOSTCC) -std=gnu99" \ 
     126                $(LUA_OS) 
     127endef 
     128 
     129define Host/Install 
     130        $(MAKE) -C $(HOST_BUILD_DIR) \ 
     131                INSTALL_TOP="$(STAGING_DIR_HOST)" \ 
     132                install 
     133endef 
     134 
    111135define Build/InstallDev 
    112136        $(INSTALL_DIR) $(1)/usr/include 
     
    146170$(eval $(call BuildPackage,luac)) 
    147171$(eval $(call BuildPackage,lua-examples)) 
     172$(eval $(call HostBuild)) 
     173 
  • trunk/package/lua/patches-host/010-lua-5.1.3-lnum-full-260308.patch

    r14631 r18189  
    18881888+*/ 
    18891889+#if (!defined LNUM_DOUBLE) && (!defined LNUM_FLOAT) && (!defined LNUM_LDOUBLE) 
    1890 +# define LNUM_DOUBLE 
     1890+# define LNUM_FLOAT 
    18911891+#endif 
    18921892+#if (!defined LNUM_INT16) && (!defined LNUM_INT32) && (!defined LNUM_INT64) 
Note: See TracChangeset for help on using the changeset viewer.