Hi Bas, 2010/11/18 Bas Mevissen <ab...@basmevissen.nl>
> On Thu, 18 Nov 2010 14:32:36 +0100, Jan Willies <j...@willies.info> > wrote: > > > The CFLAGS from target/linux/kirkwood/Makefile are > > overriding include/host-build.mk [3]. So removing "include > > $(INCLUDE_DIR)/target.mk [4]" from tools/cmake/Makefile did it for me. > > Did you include it on purpose? > > > > Ah, great. That is plain wrong. I just took the ccache Makefile as a > template for cmake. So I was quite lucky that it compiled for me. Thanks > for pointing out. I'll update my patch and check if ccache can/should do > without target.mk too. > > Sorry for wasting your time. > Heh, no problem. Thats what's posting patches is good for :) So, how does a packages configure section look like? define Build/Configure cd $(PKG_BUILD_DIR) $(STAGING_DIR)/../host/bin/cmake . endef This quick'n'dirty thing results in: if [ -f "/var/tmp/swjawill/openwrt-dockstar/build_dir/target-arm_v5te_uClibc-0.9.30.1_eabi/weechat-0.3.3/./configure" ]; then /var/tmp/swjawill/openwrt-dockstar/staging_dir/host/bin/sed -i -e 's,\(gentoo\|pardus\)_ltmain_version=.*,\1_ltmain_version="$\1_lt_version",' /var/tmp/swjawill/openwrt-dockstar/build_dir/target-arm_v5te_uClibc-0.9.30.1_eabi/weechat-0.3.3/./configure; fi cd /var/tmp/swjawill/openwrt-dockstar/build_dir/target-arm_v5te_uClibc-0.9.30.1_eabi/weechat-0.3.3 /var/tmp/swjawill/openwrt-dockstar/staging_dir/target-arm_v5te_uClibc-0.9.30.1_eabi/../host/bin/cmake . CMake Error: The source directory "/var/tmp/swjawill/openwrt-dockstar/feeds/packages/net/weechat" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. "$(STAGING_DIR)/../host/bin/cmake $(PKG_BUILD_DIR)" works, but puts the stuff in "feeds/packages/net/weechat" which is completely wrong.
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel