diff options
author | schnoebe <schnoebe@pkgsrc.org> | 2011-02-06 06:02:52 +0000 |
---|---|---|
committer | schnoebe <schnoebe@pkgsrc.org> | 2011-02-06 06:02:52 +0000 |
commit | 4c7196735775f96248025d7c582e9e262646e429 (patch) | |
tree | 8f101d21287ba425cbb586bf130cd674b0a33826 /databases | |
parent | 862a5e30f4f8960e1580cba5b99d3bb1a3d13b4d (diff) | |
download | pkgsrc-4c7196735775f96248025d7c582e9e262646e429.tar.gz |
Import the Poco 1.4.0 ODBC database accessors.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/poco-data-odbc/DESCR | 1 | ||||
-rw-r--r-- | databases/poco-data-odbc/Makefile | 43 | ||||
-rw-r--r-- | databases/poco-data-odbc/PLIST | 22 | ||||
-rw-r--r-- | databases/poco-data-odbc/buildlink3.mk | 16 |
4 files changed, 82 insertions, 0 deletions
diff --git a/databases/poco-data-odbc/DESCR b/databases/poco-data-odbc/DESCR new file mode 100644 index 00000000000..26f4909017f --- /dev/null +++ b/databases/poco-data-odbc/DESCR @@ -0,0 +1 @@ +The Data/ODBC module for POCO. diff --git a/databases/poco-data-odbc/Makefile b/databases/poco-data-odbc/Makefile new file mode 100644 index 00000000000..dc52b4fd006 --- /dev/null +++ b/databases/poco-data-odbc/Makefile @@ -0,0 +1,43 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/02/06 06:02:52 schnoebe Exp $ +# + +PKGNAME= poco-data-odbc-${POCO_VERSION} +CATEGORIES= databases + +COMMENT= POCO C++ ODBC RDBMS Accessor libraries + +.include "../../wip/poco/Makefile.common" + +CONFIGURE_ARGS+= --prefix=${PREFIX} +CONFIGURE_ARGS+= --omit=Data/MySQL,Data/SQLite,Zip,XML +CONFIGURE_ARGS+= --omit=Foundation,Net,NetSSL_OpenSSL +CONFIGURE_ARGS+= --no-tests +CONFIGURE_ARGS+= --no-samples + +USE_TOOLS+= pax + +INSTALLATION_DIRS= include/Poco/Data/ODBC lib + +do-build: + cd ${WRKSRC} && ${TOOLS_GMAKE} POCO_BASE=${WRKSRC} -C Data/ODBC + +do-install: + # using the same logic as Poco's Makefile install target. + cd ${WRKSRC} && find lib -name 'libPoco*' -type f -exec cp -f {} \ + ${DESTDIR}${PREFIX}/lib \; + cd ${WRKSRC} && find lib -name 'libPoco*' -type l -exec cp -Rf {} \ + ${DESTDIR}${PREFIX}/lib \; + cd ${WRKSRC}/Data/ODBC && \ + ${PAX} -rw -v -pp include ${DESTDIR}${PREFIX} + +SUBST_CLASSES+= paths +SUBST_MESSAGE.paths= pkgsrc-izing paths +SUBST_STAGE.paths= post-patch +SUBST_FILES.paths= Data/ODBC/Makefile +SUBST_SED.paths= -e 's,@ODBCLIBDIR@,${BUILDLINK_DIR}/${BUILDLINK_LIBDIRS.unixodbc},g' +SUBST_SED.paths+= -e 's,@ODBCINCDIR@,${BUILDLINK_DIR}/${BUILDLINK_INCDIRS.unixodbc},g' + +# should make which odbc we use an option.. but.. :D +.include "../../databases/unixodbc/buildlink3.mk" +.include "../../wip/poco-data/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/poco-data-odbc/PLIST b/databases/poco-data-odbc/PLIST new file mode 100644 index 00000000000..1f67977aff9 --- /dev/null +++ b/databases/poco-data-odbc/PLIST @@ -0,0 +1,22 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/06 06:02:52 schnoebe Exp $ +include/Poco/Data/ODBC/Binder.h +include/Poco/Data/ODBC/ConnectionHandle.h +include/Poco/Data/ODBC/Connector.h +include/Poco/Data/ODBC/DataTypes.h +include/Poco/Data/ODBC/Diagnostics.h +include/Poco/Data/ODBC/EnvironmentHandle.h +include/Poco/Data/ODBC/Error.h +include/Poco/Data/ODBC/Extractor.h +include/Poco/Data/ODBC/Handle.h +include/Poco/Data/ODBC/ODBC.h +include/Poco/Data/ODBC/ODBCColumn.h +include/Poco/Data/ODBC/ODBCException.h +include/Poco/Data/ODBC/ODBCStatementImpl.h +include/Poco/Data/ODBC/Parameter.h +include/Poco/Data/ODBC/Preparation.h +include/Poco/Data/ODBC/SessionImpl.h +include/Poco/Data/ODBC/Utility.h +lib/libPocoODBC.so +lib/libPocoODBC.so.10 +lib/libPocoODBCd.so +lib/libPocoODBCd.so.10 diff --git a/databases/poco-data-odbc/buildlink3.mk b/databases/poco-data-odbc/buildlink3.mk new file mode 100644 index 00000000000..38d39c6f0b9 --- /dev/null +++ b/databases/poco-data-odbc/buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/02/06 06:02:52 schnoebe Exp $ + +BUILDLINK_TREE+= poco-data-odbc + +.if !defined(POCO_DATA_ODBC_BUILDLINK3_MK) +POCO_DATA_ODBC_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.poco-data-odbc+= poco-data-odbc>=1.3.5 +BUILDLINK_ABI_DEPENDS.poco-data-odbc?= poco-data-odbc>=1.3.5nb1 +BUILDLINK_PKGSRCDIR.poco-data-odbc?= ../../wip/poco-data-odbc + +.include "../../databases/unixodbc/buildlink3.mk" +.include "../../wip/poco-data/buildlink3.mk" +.endif # POCO_DATA_ODBC_BUILDLINK3_MK + +BUILDLINK_TREE+= -poco-data-odbc |