You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libpqxx
  3. PKG_VERSION:=7.5.2
  4. PKG_RELEASE:=1
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=https://github.com/jtv/libpqxx
  7. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  8. PKG_MIRROR_HASH:=9f7fc055f16289e871f8ff59b7fe085f5eab34264503671f357ef71d5f1bbc02
  9. CMAKE_INSTALL:=1
  10. PKG_MAINTAINER:=Igor Bezzubchenko <garikello@gmail.com>
  11. include $(INCLUDE_DIR)/package.mk
  12. include $(INCLUDE_DIR)/cmake.mk
  13. define Package/libpqxx
  14. SECTION:=libs
  15. CATEGORY:=Libraries
  16. DEPENDS:=+libpq +libstdcpp
  17. TITLE:=PostgreSQL client library (C++ interface)
  18. URL:=http://pqxx.org/development/libpqxx
  19. SUBMENU:=Database
  20. endef
  21. define Package/libpqxx/config
  22. source "$(SOURCE)/Config.in"
  23. endef
  24. CMAKE_OPTIONS += \
  25. -DBUILD_DOC=OFF \
  26. -DBUILD_STATIC_LIBS=O$(if $(CONFIG_LIBPQXX_STATIC),N,FF) \
  27. -DBUILD_SHARED_LIBS=O$(if $(CONFIG_LIBPQXX_SHARED),N,FF) \
  28. $(if $(CONFIG_LIBPQXX_INSTALL_TEST),\
  29. -DINSTALL_TEST=ON -DSKIP_BUILD_TEST=OFF, \
  30. -DINSTALL_TEST=OFF -DSKIP_BUILD_TEST=ON \
  31. )
  32. define Package/libpqxx/install
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(if $(CONFIG_LIBPQXX_SHARED), \
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpqxx*.so $(1)/usr/lib/)
  37. $(if $(CONFIG_LIBPQXX_INSTALL_TEST), \
  38. $(CP) $(PKG_INSTALL_DIR)/usr/bin/libpqxx* $(1)/usr/bin/)
  39. endef
  40. $(eval $(call BuildPackage,libpqxx))