Some more progress:
Was able to get package ucommon to build. Here is the Makefile:
#
# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ucommon
PKG_VERSION:=5.2.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/commoncpp/
PKG_MD5SUM:=4739fcd9db006432f1b8e2ea226e414a
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/ucommon
SECTION:=libs
CATEGORY:=Libraries
TITLE:=ucommon for sipwitch
URL:=http://www.gnu.org/software/sipwitch/
DEPENDS:=+libpthread +librt +libstdcpp +libopenssl +libz
endef
define Package/ucommon/description
ucommon library required for sipwitch
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/ucommon $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/include/commoncpp $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libucommon.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libusecure.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcommoncpp.{a,so*} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/commoncpp.pc $(1)/usr/lib/pkgconfig/
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ucommon-config $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/bin/commoncpp-config $(1)/usr/bin/
endef
define Package/ucommon/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcommoncpp.so.* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libucommon.so.* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libusecure.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,ucommon))
Now building sipwitch that depends upon ucommon cannot find file ucommon-config which I verified is there in the build tree. Here is the output:
......
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of mips-openwrt-linux-uclibc-gcc... gcc3
checking dependency style of mips-openwrt-linux-uclibc-g++... gcc3
checking for C/C++ restrict keyword... __restrict
checking for working volatile... yes
checking for inline... inline
checking for pkg-config... /home/yossi/openwrt/trunk/staging_dir/host/bin/pkg-config
checking openssl/openssl.h usability... no
checking openssl/openssl.h presence... no
checking for openssl/openssl.h... no
checking for ucommon-config... none
configure: error: "required ucommon library missing"
make[2]: *** [/home/yossi/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/sipwitch-1.2.4/.configured_] Error 1
make[2]: Leaving directory `/home/yossi/openwrt/myfeed/sipwitch'
make[1]: *** [package/feeds/custom/sipwitch/compile] Error 2
make[1]: Leaving directory `/home/yossi/openwrt/trunk'
make: *** [package/sipwitch/compile] Error 2
[yossi@maps trunk]$
and the Makefile:
#
# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=sipwitch
PKG_VERSION:=1.2.4
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/sipwitch-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/sipwitch/
PKG_MD5SUM:=6119cecb062ba4d0af18b427b01c41e2
PKG_CAT:=zcat
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/sipwitch
SECTION:=net
CATEGORY:=Network
SUBMENU:=Telephony
DEPENDS:=+libosip2 +libeXosip +ucommon
TITLE:=Sipwitch
URL:=http://www.gnu.org/software/sipwitch/
endef
define Package/sipwitch/description
Sipwitch is a simple sip registrar and proxy server.
endef
define Build/Configure
$(call Build/Configure/Default, \
--disable-qt \
--with-libosip-prefix="$(STAGING_DIR)/usr" \
--with-libeXosip-prefix="$(STAGING_DIR)/usr" \
--with-ucommon-prefix="$(STAGING_DIR)/usr" \
--with-linux-headers=$(LINUX_DIR)\
)
endef
define Package/sipwitch/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sipwitch $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,sipwitch))
I might add that package sipwitch also has other dependencies which have been successfully built. It is just this one, ucommon that is causing me grief.
Thanks for all the help. I think I am almost there.
Perazim
(Last edited by perazim on 21 Nov 2012, 15:02)