-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 24/09/12 10:37, Florian Fainelli wrote: > On Friday 21 September 2012 12:31:31 W. Michael Petullo wrote: >>> I'm building reSIProcate >>> >>> http://www.resiprocate.org >>> >>> which provides the repro SIP proxy and the reTurn server for >>> ICE/STUN/TURN >>> >>> It requires db_cxx.h from db47 >>> >>> I've attached a patch to build the C++ support into the db47 >>> package >>> >>> It is quite trivial: >>> >>> --enable-cxx >>> >>> and copy db_cxx.h to /usr/include >> >> Can this be made optional, perhaps as a sub-package to save space >> on installations that do not use C++? How much does the package >> grow in size with --enable-cxx? > > Yes, a build variant to build w/ and w/o C++ would be appreciated. > See the dbus and hostapd packages for instance for examples. Thanks for the guidance about this, I am new to OpenWRT packaging I've revised the patch as you requested, new version attached - please let me know if this is OK now Here are the package file sizes: - -rw-r--r-- 1 daniel daniel 297511 Sep 24 15:46 ./bin/ar71xx/packages/libdb47_4.7.25.NC-6_ar71xx.ipk - -rw-r--r-- 1 daniel daniel 330035 Sep 24 15:46 ./bin/ar71xx/packages/libdb47xx_4.7.25.NC-6_ar71xx.ipk Note that I've called the binary package libdb47xx - I think this is consistent with the library name (libdb_cxx-4.7) and also the naming convention on Debian, libdb4.7++ - Please feel free to rename if you think something like libdb47pp or libdbcxx47 is better Would you be able to comment on my other patches as well, for the new packages asio and resiprocate? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCAAGBQJQYGceAAoJEOm1uwJp1aqDQSUP/3Pbp4in8RcZKgBRAXFW0LXg LKIE6c280YoOnIgOo4Qhk4kL+ZAYeVRolWdInw6ZFzlMQuIsGNwpmqYuhT6vuJJG 5zxETTINrM1ccndMcjmGqxb7wILK+Cce7HEy1rsGGQGHC0YOSZS+r7w0a0LmLFz7 V5JJJgBJloWUC4NlGdMTW7pxxOFhcoep7IwR+l8YSBRM15O9WzGhc+coz4yXaAsv ndJTpG7t0ZYUnwu1RqM9Pdm3f48cKZk6QpRSfvbmbG6FFEOw6LSkmEtNmXzvW3rA gJ8/qe+/Khzk4IKnm3+P+85iuUfeopgRh0NdBWy9nn1ao1yI47IEYzG+X36X/Btj COT9t2ZQ3HdekNT1Xsqns+xekoag3lEQBsqWDcqBLcApkWVuQHBpey9f0rNyXvmv +XAjijV6cTB0g8eKbwS8Q3G8A23O0zOc/t2QsH/ewAY/+qSv3FFBPcs2M7dCaRqb SQqjH129b++v8cDYh/lBgrXovSKXlQ+qMzEcwjwTbhp5NCekeLJyu92w8qY4Vdqe f5vPB0iu/JxHIQtsvYJANbyhVYrOZX7xNbT2IXuOEwax6aEm+ycGFJlJmTINiFuj Ku6UXIwnxoXpYdrXVPp0eRhVXVojGs8mEQHD0Fdt04XKpLrITwtEjUWFRmdxIaZv lcL/UXPejw+uzl2W88mD =Zh/s -----END PGP SIGNATURE-----
Index: feeds/packages/libs/db47/Makefile =================================================================== --- feeds/packages/libs/db47/Makefile (revision 33495) +++ feeds/packages/libs/db47/Makefile (working copy) @@ -35,6 +35,19 @@ Berkeley DB library (4.7). endef +define Package/libdb47xx + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+libdb47 +libstdcpp + TITLE:=Berkeley DB library (4.7) for C++ + URL:=http://www.sleepycat.com/products/db.shtml + MAINTAINER:=W. Michael Petullo <m...@flyn.org> +endef + +define Package/libdb47xx/description + Berkeley DB library (4.7). C++ wrapper. +endef + define Build/Configure (cd $(PKG_BUILD_DIR)/build_unix; rm -f config.cache; \ $(TARGET_CONFIGURE_OPTS) \ @@ -63,7 +76,7 @@ --enable-shared \ --enable-static \ --disable-java \ - --disable-cxx \ + --enable-cxx \ --with-mutex=UNIX/fcntl \ --disable-tcl \ --disable-rpc \ @@ -88,11 +101,19 @@ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb-*.so $(1)/usr/lib/ endef +define Package/libdb47xx/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb_cxx-*.so $(1)/usr/lib/ +endef + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/db.h $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/db_cxx.h $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb*.{a,so} $(1)/usr/lib endef $(eval $(call BuildPackage,libdb47)) +$(eval $(call BuildPackage,libdb47xx)) +
openwrt-db47.diff.sig
Description: PGP signature
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel