On Thu, 18 Nov 2010 15:18:52 +0100, Jan Willies <j...@willies.info>
wrote:

> define Build/Configure
> 
>         cd $(PKG_BUILD_DIR)
>         $(STAGING_DIR)/../host/bin/cmake .
> endef
> 

The host bin dir is already in the path, so you should be able to call
cmake without defining a patch

We could also define $CMAKE in rules.mk to have a better definition:

Index: rules.mk
===================================================================
--- rules.mk    (revision 24025)
+++ rules.mk    (working copy)
@@ -164,6 +164,9 @@
 TARGET_CXX:=$(if $(CONFIG_INSTALL_LIBSTDCPP),$(TARGET_CROSS)g++,no)
 KPATCH:=$(SCRIPT_DIR)/patch-kernel.sh
 SED:=$(STAGING_DIR_HOST)/bin/sed -i -e
+ifneq ($(CONFIG_CMAKE),)
+  export CMAKE=$(STAGING_DIR_HOST)/bin/cmake
+endif
 CP:=cp -fpR
 LN:=ln -sf


(I'm not sure where to put it in the rules.mk file)

> CMake Error: The source directory
> "/var/tmp/swjawill/openwrt-dockstar/feeds/packages/net/weechat" does
> not appear to contain CMakeLists.txt.

That is because CMAKE is ran in the wrong directory. Try something like

define Build/Configure
        (cd $(PKG_BUILD_DIR); \
                $(CMAKE) . || exit 1 \
        );
        $(call Build/Configure/Default)
endef

(this assumes the patch to rules.mk; otherwise replace $(CMAKE) with
cmake)

Regards,

-- 
Bas
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to