summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-11-06 04:09:25 +0000
committerjlam <jlam@pkgsrc.org>2001-11-06 04:09:25 +0000
commitbc0ea5f67dea918566492128e3bd9e8f9f3c0832 (patch)
tree34008ac9f8156ac8eb53752192002895a7b809b1
parent9586b5668779cc3696503a80cb8b5fe3c3aaeed1 (diff)
downloadpkgsrc-bc0ea5f67dea918566492128e3bd9e8f9f3c0832.tar.gz
databases/unixodbc-ODBCConfig - GUI tool for unixODBC driver configuration
The ODBC Config program is a graphical program used to make configuration of ODBC Data Sources extremely easy. It has been designed to be user- compatible with the Microsoft(R) ODBC Administrator.
-rw-r--r--databases/unixodbc-ODBCConfig/DESCR3
-rw-r--r--databases/unixodbc-ODBCConfig/Makefile45
-rw-r--r--databases/unixodbc-ODBCConfig/PLIST2
-rw-r--r--databases/unixodbc-ODBCConfig/distinfo5
-rw-r--r--databases/unixodbc-ODBCConfig/patches/patch-aa25
5 files changed, 80 insertions, 0 deletions
diff --git a/databases/unixodbc-ODBCConfig/DESCR b/databases/unixodbc-ODBCConfig/DESCR
new file mode 100644
index 00000000000..0732ab9acd1
--- /dev/null
+++ b/databases/unixodbc-ODBCConfig/DESCR
@@ -0,0 +1,3 @@
+The ODBC Config program is a graphical program used to make configuration
+of ODBC Data Sources extremely easy. It has been designed to be user-
+compatible with the Microsoft(R) ODBC Administrator.
diff --git a/databases/unixodbc-ODBCConfig/Makefile b/databases/unixodbc-ODBCConfig/Makefile
new file mode 100644
index 00000000000..8240766326a
--- /dev/null
+++ b/databases/unixodbc-ODBCConfig/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/11/06 04:09:25 jlam Exp $
+
+PKGNAME= unixodbc-ODBCConfig-${ODBC_VERS}
+ODBC_PKG_VERS= # empty
+COMMENT= GUI tool for unixODBC driver configuration
+
+USE_BUILDLINK_ONLY= YES
+
+.include "../../databases/unixodbc/Makefile.common"
+
+CONFIGURE_ARGS+= --enable-gui
+CONFIGURE_ARGS+= --with-qt-dir="${BUILDLINK_QTDIR}"
+CONFIGURE_ARGS+= --with-extra-includes="${_EXTRA_INCLUDES}"
+CONFIGURE_ARGS+= --with-extra-libs="${_EXTRA_LIBS}"
+CONFIGURE_ARGS+= --disable-rpath
+
+CONFIGURE_ENV+= UIC="${QTDIR}/bin/uic"
+CONFIGURE_ENV+= USER_LDFLAGS="${LDFLAGS}"
+CONFIGURE_ENV+= ac_cv_have_x="${_AC_CV_HAVE_X}"
+CONFIGURE_ENV+= ac_cv_have_qt="${_AC_CV_HAVE_QT}"
+
+MAKE_FLAGS+= ODBCConfig_DEPENDENCIES=""
+
+_EXTRA_INCLUDES?= ${BUILDLINK_DIR}/include:${BUILDLINK_X11_DIR}/include
+_EXTRA_LIBS?= ${BUILDLINK_DIR}/lib:${BUILDLINK_X11_DIR}/lib
+_AC_CV_HAVE_X?= have_x=yes \
+ kde_x_includes=${BUILDLINK_DIR}/include \
+ ac_x_libraries=${BUILDLINK_DIR}/lib
+_AC_CV_HAVE_QT?= have_qt=yes \
+ ac_qt_includes=${BUILDLINK_QTDIR}/include \
+ ac_qt_libraries=${BUILDLINK_QTDIR}/lib
+
+post-patch: fix-driver-installation
+
+do-build:
+ cd ${WRKSRC}/ODBCConfig; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
+ ${MAKE_FLAGS} -f ${MAKEFILE} ${ALL_TARGET}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ODBCConfig/ODBCConfig ${PREFIX}/bin
+
+.include "../../databases/unixodbc/buildlink.mk"
+.include "../../x11/qt2-libs/buildlink.mk"
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/unixodbc-ODBCConfig/PLIST b/databases/unixodbc-ODBCConfig/PLIST
new file mode 100644
index 00000000000..e04d9b95164
--- /dev/null
+++ b/databases/unixodbc-ODBCConfig/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/11/06 04:09:25 jlam Exp $
+bin/ODBCConfig
diff --git a/databases/unixodbc-ODBCConfig/distinfo b/databases/unixodbc-ODBCConfig/distinfo
new file mode 100644
index 00000000000..702de2200a2
--- /dev/null
+++ b/databases/unixodbc-ODBCConfig/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/11/06 04:09:25 jlam Exp $
+
+SHA1 (unixODBC-2.0.11.tar.gz) = 8bfc4d03b8284ada319c5203352ec42c862cd34c
+Size (unixODBC-2.0.11.tar.gz) = 1734287 bytes
+SHA1 (patch-aa) = 6764c8e0988d2a3e9eaa70f377a72b70cef8e109
diff --git a/databases/unixodbc-ODBCConfig/patches/patch-aa b/databases/unixodbc-ODBCConfig/patches/patch-aa
new file mode 100644
index 00000000000..caf221e53ee
--- /dev/null
+++ b/databases/unixodbc-ODBCConfig/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/11/06 04:09:25 jlam Exp $
+
+--- ODBCConfig/Makefile.in.orig Sat Oct 20 13:54:02 2001
++++ ODBCConfig/Makefile.in
+@@ -26,7 +26,7 @@
+ sysconfdir = @sysconfdir@
+ sharedstatedir = @sharedstatedir@
+ localstatedir = @localstatedir@
+-libdir = @libdir@
++libdir = /usr/pkg/lib/ODBCConfig
+ infodir = @infodir@
+ mandir = @mandir@
+ includedir = @includedir@
+@@ -185,9 +185,9 @@
+
+ @QT_TRUE@bin_PROGRAMS = ODBCConfig
+
+-@QT_TRUE@INCLUDES = -I../include @QT_INCLUDES@ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" -DDEFLIB_PATH=\"@libdir@\" $(INCLTDL)
++@QT_TRUE@INCLUDES = -I../include @QT_INCLUDES@ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" -DDEFLIB_PATH=\"$(libdir)\" $(INCLTDL)
+
+-@QT_TRUE@ODBCConfig_LDADD = @X_LDFLAGS@ @QT_LDFLAGS@ @USER_LDFLAGS@ @LIB_QT@ ../odbcinst/libodbcinst.la ../extras/libodbcextraslc.la ../DriverManager/libodbc.la
++@QT_TRUE@ODBCConfig_LDADD = $(X_LDFLAGS) $(QT_LDFLAGS) $(USER_LDFLAGS) $(LIB_QT) -lodbcinst -lodbcextras -lodbc $(PTH_LIBS) $(LIBLTDL)
+
+ @QT_TRUE@ODBCConfig_DEPENDANCIES = ../odbcinst/libodbcinst.la ../extras/libodbcextraslc.la ../DriverManager/libodbc.la
+