[Midnightbsd-cvs] CVS Commit: mports/databases: add libiodbc.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Aug 10 14:16:01 EDT 2007


Log Message:
-----------
add libiodbc.

Modified Files:
--------------
    mports/databases:
        Makefile (r1.44 -> r1.45)

Added Files:
-----------
    mports/databases/libiodbc:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/databases/libiodbc/files:
        patch-include::sqltypes.h (r1.1)
        patch-iodbc__trace__trace.c (r1.1)
        patch-iodbcinst__unicode.c (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/databases/Makefile,v
retrieving revision 1.44
retrieving revision 1.45
diff -Ldatabases/Makefile -Ldatabases/Makefile -u -r1.44 -r1.45
--- databases/Makefile
+++ databases/Makefile
@@ -22,6 +22,7 @@
     SUBDIR += gdbm
     SUBDIR += gdl2
     SUBDIR += gnats4
+    SUBDIR += libiodbc
     SUBDIR += mysql-connector-java
     SUBDIR += mysql41-client
     SUBDIR += mysql41-scripts
--- /dev/null
+++ databases/libiodbc/pkg-descr
@@ -0,0 +1,13 @@
+iODBC (intrinsic Open Database Connectivity) is an ODBC driver manager that
+is compatible with the ODBC 2.x and 3.x specifications.  It performs the
+standard tasks of a driver manager, i.e. driver loading, parameter and
+function sequence checking, driver function invocation, etc.
+
+Applications linked with the iODBC driver manager will be able - through ODBC
+function calls - to access simultaneously different types of data sources
+within one process through suitable ODBC drivers. 
+		
+iODBC is freely redistributable under either the GNU Library General Public
+Licence (LGPL) or the BSD licence.
+
+WWW:     http://www.iodbc.org/
--- /dev/null
+++ databases/libiodbc/pkg-plist
@@ -0,0 +1,43 @@
+bin/iodbc-config
+%%GUI%%bin/iodbcadm-gtk
+etc/libiodbc/odbc.ini.sample
+etc/libiodbc/odbcinst.ini.sample
+include/iodbcext.h
+include/iodbcinst.h
+include/iodbcunix.h
+include/isql.h
+include/isqlext.h
+include/isqltypes.h
+include/odbcinst.h
+include/sql.h
+include/sqlext.h
+include/sqltypes.h
+include/sqlucode.h
+%%GUI%%lib/libdrvproxy.a
+%%GUI%%lib/libdrvproxy.la
+%%GUI%%lib/libdrvproxy.so
+%%GUI%%lib/libdrvproxy.so.3
+lib/libiodbc.a
+lib/libiodbc.la
+lib/libiodbc.so
+lib/libiodbc.so.3
+%%GUI%%lib/libiodbcadm.a
+%%GUI%%lib/libiodbcadm.la
+%%GUI%%lib/libiodbcadm.so
+%%GUI%%lib/libiodbcadm.so.3
+lib/libiodbcinst.a
+lib/libiodbcinst.la
+lib/libiodbcinst.so
+lib/libiodbcinst.so.3
+lib/libodbc.a
+lib/libodbc.so
+libdata/pkgconfig/libiodbc.pc
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%EXAMPLESDIR%%/Makefile
+%%PORTDOCS%%%%EXAMPLESDIR%%/iodbctest.c
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+ at dirrmtry etc/libiodbc
--- /dev/null
+++ databases/libiodbc/Makefile
@@ -0,0 +1,70 @@
+# New ports collection makefile for:	libiodbc
+# Date created:				24 Mar 2000
+# Whom:					erikhb at bgnett.no
+#
+# $MidnightBSD: mports/databases/libiodbc/Makefile,v 1.1 2007/08/10 18:15:59 laffer1 Exp $
+# $FreeBSD: ports/databases/libiodbc/Makefile,v 1.28 2007/01/17 17:18:11 itetcu Exp $
+#
+# Note:  The location of ${INIDIR} and the installed name of the "odbctest"
+#        binary were chosen such that this port does not conflict with
+#        databases/unixODBC.
+
+PORTNAME=	libiodbc
+PORTVERSION=	3.52.5
+CATEGORIES=	databases
+MASTER_SITES=	http://www.iodbc.org/downloads/iODBC/ \
+		${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=	iodbc
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	An ODBC 3.x driver manager, for universal data source access
+
+LICENSE=	lgpl
+
+CONFLICTS=	unixODBC-[0-9]*
+
+USE_GNOME=	gnomehack gnometarget pkgconfig
+USE_GMAKE=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS=	--with-iodbc-inidir=${INIDIR}
+USE_LDCONFIG=	yes
+
+MAN1=		iodbc-config.1 iodbctest.1 iodbctestw.1
+
+CPPFLAGS=	${PTHREAD_CFLAGS} -D_BSD_WCHAR_T_DEFINED_
+LDFLAGS=	${PTHREAD_LIBS}
+INIDIR=		${PREFIX}/etc/${PORTNAME}
+
+.if defined(WITH_GUI)
+USE_GNOME+=	gtk12
+MAN1+=		iodbcadm-gtk.1
+PLIST_SUB+=	GUI=""
+.else
+CONFIGURE_ARGS+=	--disable-gui
+PLIST_SUB+=	GUI="@comment "
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|$$CFLAGS -pthread|$$CFLAGS|g' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e \
+		'/^SUBDIRS/s|samples||' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e \
+		's|-ldl||g' ${WRKSRC}/admin/libiodbc.pc.in
+
+post-install:
+	@${MKDIR} ${INIDIR}
+	${INSTALL_DATA} ${WRKSRC}/etc/odbc*.ini.sample ${INIDIR}
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for f in AUTHORS ChangeLog NEWS README
+	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+	@${MKDIR} ${EXAMPLESDIR}
+.for f in Makefile iodbctest.c
+	${INSTALL_DATA} ${WRKSRC}/samples/${f} ${EXAMPLESDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
--- /dev/null
+++ databases/libiodbc/distinfo
@@ -0,0 +1,3 @@
+MD5 (libiodbc-3.52.5.tar.gz) = 550234c4f9fbaf45e6e5d74c460dff0d
+SHA256 (libiodbc-3.52.5.tar.gz) = 368b0ae7ae08d487dd53be399868530f767af9c91affd5da4cbfa89ff440d9b3
+SIZE (libiodbc-3.52.5.tar.gz) = 752941
--- /dev/null
+++ databases/libiodbc/files/patch-iodbc__trace__trace.c
@@ -0,0 +1,22 @@
+--- iodbc/trace/trace.c.orig	Wed Jan  3 23:21:46 2007
++++ iodbc/trace/trace.c	Wed Jan 10 16:04:57 2007
+@@ -670,6 +670,10 @@
+   extern char *odbcapi_symtab[];
+   char *ptr = "invalid retcode";
+ 
++#ifdef HAVE_GETTIMEOFDAY
++  struct timeval tv;
++#endif
++
+   /*
+    * Guard against tracefile getting too big
+    */
+@@ -684,8 +688,6 @@
+    * Calculate timestamp
+    */
+ #ifdef HAVE_GETTIMEOFDAY
+-  struct timeval tv;
+-
+   gettimeofday (&tv, NULL);
+   tv.tv_sec -= starttime.tv_sec;
+   tv.tv_usec -= starttime.tv_usec;
--- /dev/null
+++ databases/libiodbc/files/patch-include::sqltypes.h
@@ -0,0 +1,10 @@
+--- include/sqltypes.h.orig	Thu Jan 26 18:50:59 2006
++++ include/sqltypes.h	Tue Jan 31 13:45:45 2006
+@@ -398,6 +398,7 @@
+       defined(_WCHAR_T)			|| \
+       defined(_WCHAR_T_DEFINED)		|| \
+       defined(_WCHAR_T_DECLARED)        || \
++      defined(__FreeBSD__)              || \
+       defined(_BSD_WCHAR_T_DEFINED_)    || \
+       defined(_BSD_WCHAR_T_)
+ typedef wchar_t SQLWCHAR;
--- /dev/null
+++ databases/libiodbc/files/patch-iodbcinst__unicode.c
@@ -0,0 +1,18 @@
+--- iodbcinst/unicode.c.orig	Mon Jan 23 19:30:26 2006
++++ iodbcinst/unicode.c	Tue Jan 31 13:51:36 2006
+@@ -197,6 +197,7 @@
+ #if !defined(HAVE_TOWLOWER)
+ #if (defined(__APPLE__) && !defined (_LP64)) || defined (macintosh)
+ #include <Carbon/Carbon.h>
++#endif
+ wchar_t towlower(wchar_t wc)
+ {
+ #if defined (__APPLE__) && !defined (NO_FRAMEWORKS)
+@@ -218,7 +219,6 @@
+   return wc;
+ #endif
+ }
+-#endif
+ #endif
+ 
+ #if !defined(HAVE_WCSNCASECMP)


More information about the Midnightbsd-cvs mailing list