psqlodbc: add package
add official PostgreSQL ODBC driver Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
1ae46e7de2
commit
e80d4041cf
1 changed files with 71 additions and 0 deletions
71
libs/psqlodbc/Makefile
Normal file
71
libs/psqlodbc/Makefile
Normal file
|
@ -0,0 +1,71 @@
|
|||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=psqlodbc
|
||||
PKG_RELEASE:=1
|
||||
PKG_VERSION:=09.06.0310
|
||||
PKG_HASH:=6c42078af094d61baca2c8bd1dc4d137a77377198ef94e4eda5989bdce3474c3
|
||||
|
||||
PKG_SOURCE_URL:=https://ftp.postgresql.org/pub/odbc/versions/src/
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
|
||||
PKG_LICENSE:=LGPL-2.0+
|
||||
PKG_LICENSE_FILES:=license.txt
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/psqlodbc/Default
|
||||
SUBMENU:=database
|
||||
URL:=https://odbc.postgresql.org/
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Postgresql driver for ODBC
|
||||
DEPENDS:=+unixodbc +libpq
|
||||
endef
|
||||
|
||||
define Package/psqlodbca
|
||||
$(call Package/psqlodbc/Default)
|
||||
TITLE:=psqlODBC - PostgreSQL ODBC driver (ASCII)
|
||||
endef
|
||||
|
||||
define Package/psqlodbcw
|
||||
$(call Package/psqlodbc/Default)
|
||||
TITLE:=psqlODBC - PostgreSQL ODBC driver (UTF-8)
|
||||
endef
|
||||
|
||||
define Package/psqlodbca/description
|
||||
psqlODBC is the official PostgreSQL ODBC Driver.
|
||||
It is released under the Library General Public Licence, or LGPL.
|
||||
endef
|
||||
|
||||
define Package/psqlodbcw/description
|
||||
$(call Package/psqlodbca/description)
|
||||
(UTF-8 version)
|
||||
endef
|
||||
|
||||
define Package/psqlodbca/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/psqlodbca.so* $(1)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/etc/odbcinst.ini.d
|
||||
echo "[PostgreSQL ANSI]" > $(1)/etc/odbcinst.ini.d/psqlodbca.ini
|
||||
echo "Description = PostgreSQL ODBC driver (ANSI version)" >> $(1)/etc/odbcinst.ini.d/psqlodbca.ini
|
||||
echo "Driver = /usr/lib/psqlodbca.so" >> $(1)/etc/odbcinst.ini.d/psqlodbca.ini
|
||||
|
||||
endef
|
||||
|
||||
define Package/psqlodbcw/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/psqlodbcw.so* $(1)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/etc/odbcinst.ini.d
|
||||
echo "[PostgreSQL Unicode]" > $(1)/etc/odbcinst.ini.d/psqlodbcw.ini
|
||||
echo "Description = PostgreSQL ODBC driver (Unicode version)" >> $(1)/etc/odbcinst.ini.d/psqlodbcw.ini
|
||||
echo "Driver = /usr/lib/psqlodbcw.so" >> $(1)/etc/odbcinst.ini.d/psqlodbcw.ini
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,psqlodbca))
|
||||
$(eval $(call BuildPackage,psqlodbcw))
|
Loading…
Reference in a new issue