From: Mirko Vogt Date: Mon, 26 Mar 2012 15:24:59 +0000 (+0000) Subject: [packages/qt4] package support for qt4-pgsql - thanks to obsy (fixes ticket 9146) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4c24772ae9b7a3c1be080d9fcb29d5095cd98937;p=openwrt%2Fsvn-archive%2Farchive.git [packages/qt4] package support for qt4-pgsql - thanks to obsy (fixes ticket 9146) SVN-Revision: 31078 --- diff --git a/xorg/lib/qt4/Makefile b/xorg/lib/qt4/Makefile index 87bb309b07..4735386f11 100644 --- a/xorg/lib/qt4/Makefile +++ b/xorg/lib/qt4/Makefile @@ -33,6 +33,7 @@ PKG_CONFIG_DEPENDS:= \ CONFIG_PACKAGE_qt4-phonon \ CONFIG_PACKAGE_qt4-sqlite \ CONFIG_PACKAGE_qt4-mysql \ + CONFIG_PACKAGE_qt4-pgsql \ CONFIG_PACKAGE_qt4-webkit \ CONFIG_PACKAGE_qt4-script \ CONFIG_PACKAGE_qt4-scriptools \ @@ -110,6 +111,18 @@ define Package/qt4-mysql DEPENDS+=+libmysqlclient endef +define Package/qt4-pgsql + $(call Package/qt4/Default) + TITLE+=(pgsql) + DEPENDS+=+libpq +endef + +define Package/qt4-pgsql + $(call Package/qt4/Default) + TITLE+=(pgsql) + DEPENDS+=+libpq +endef + define Package/qt4-openssl $(call Package/qt4/Default) TITLE+=(openssl) @@ -341,6 +354,7 @@ define Build/Configure -system-sqlite \ $(if $(CONFIG_PACKAGE_qt4-sqlite),-plugin-sql-sqlite) \ $(if $(CONFIG_PACKAGE_qt4-mysql),-plugin-sql-mysql) \ + $(if $(CONFIG_PACKAGE_qt4-pgsql),-plugin-sql-psql) \ -no-decoration-styled \ -no-decoration-windows \ -no-decoration-default \ @@ -575,6 +589,19 @@ define Package/qt4-mysql/install $(1)/usr/lib/Qt/plugins/sqldrivers/ endef +define Package/qt4-pgsql/install + $(INSTALL_DIR) \ + $(1)/usr/lib/Qt/plugins/sqldrivers + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libQtSql.so* \ + $(1)/usr/lib/ + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/sqldrivers/libqsqlpsql.so \ + $(1)/usr/lib/Qt/plugins/sqldrivers/ +endef + #define Package/qt4-multimedia/install # $(INSTALL_DIR) \ # $(1)/usr/bin @@ -761,6 +788,7 @@ $(eval $(call BuildPackage,qt4-examples)) $(eval $(call BuildPackage,qt4-network)) $(eval $(call BuildPackage,qt4-sqlite)) $(eval $(call BuildPackage,qt4-mysql)) +$(eval $(call BuildPackage,qt4-pgsql)) $(eval $(call BuildPackage,qt4-openssl)) #$(eval $(call BuildPackage,qt4-multimedia)) #$(eval $(call BuildPackage,qt4-audio-backend))