summaryrefslogtreecommitdiff
path: root/databases/poco-data-mysql
diff options
context:
space:
mode:
authorschnoebe <schnoebe@pkgsrc.org>2011-02-06 06:02:02 +0000
committerschnoebe <schnoebe@pkgsrc.org>2011-02-06 06:02:02 +0000
commit862a5e30f4f8960e1580cba5b99d3bb1a3d13b4d (patch)
treee13a0ce296d4c49aa373e917f2b2457fe3b9a781 /databases/poco-data-mysql
parent7c0de2fe963fa0812c58ed0d574e5fe729bdaaa1 (diff)
downloadpkgsrc-862a5e30f4f8960e1580cba5b99d3bb1a3d13b4d.tar.gz
Import the MySQL accessors for the Poco 1.4.0 Data classes.
Diffstat (limited to 'databases/poco-data-mysql')
-rw-r--r--databases/poco-data-mysql/DESCR1
-rw-r--r--databases/poco-data-mysql/Makefile42
-rw-r--r--databases/poco-data-mysql/PLIST15
-rw-r--r--databases/poco-data-mysql/buildlink3.mk16
4 files changed, 74 insertions, 0 deletions
diff --git a/databases/poco-data-mysql/DESCR b/databases/poco-data-mysql/DESCR
new file mode 100644
index 00000000000..b54d9b73345
--- /dev/null
+++ b/databases/poco-data-mysql/DESCR
@@ -0,0 +1 @@
+The Data/MySQL module for POCO.
diff --git a/databases/poco-data-mysql/Makefile b/databases/poco-data-mysql/Makefile
new file mode 100644
index 00000000000..d4efcabb75d
--- /dev/null
+++ b/databases/poco-data-mysql/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/02/06 06:02:02 schnoebe Exp $
+#
+
+PKGNAME= poco-data-mysql-${POCO_VERSION}
+CATEGORIES= databases
+
+COMMENT= POCO C++ MySQL RDBMS Accessor libraries
+
+.include "../../wip/poco/Makefile.common"
+
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --omit=Data/SQLite,Data/ODBC,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/MySQL lib
+
+do-build:
+ cd ${WRKSRC} && ${TOOLS_GMAKE} POCO_BASE=${WRKSRC} -C Data/MySQL
+
+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/MySQL && \
+ ${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/MySQL/Makefile
+SUBST_SED.paths= -e 's,@MYSQLLIBDIR@,${BUILDLINK_DIR}/${BUILDLINK_LIBDIRS.mysql-client},g'
+SUBST_SED.paths+= -e 's,@MYSQLINCDIR@,${BUILDLINK_DIR}/${BUILDLINK_INCDIRS.mysql-client},g'
+
+.include "../../databases/mysql5-client/buildlink3.mk"
+.include "../../wip/poco-data/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/poco-data-mysql/PLIST b/databases/poco-data-mysql/PLIST
new file mode 100644
index 00000000000..801141adb51
--- /dev/null
+++ b/databases/poco-data-mysql/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/06 06:02:02 schnoebe Exp $
+include/Poco/Data/MySQL/MySQLException.h
+include/Poco/Data/MySQL/Connector.h
+include/Poco/Data/MySQL/Binder.h
+include/Poco/Data/MySQL/ResultMetadata.h
+include/Poco/Data/MySQL/Extractor.h
+include/Poco/Data/MySQL/MySQL.h
+include/Poco/Data/MySQL/MySQLStatementImpl.h
+include/Poco/Data/MySQL/SessionHandle.h
+include/Poco/Data/MySQL/SessionImpl.h
+include/Poco/Data/MySQL/StatementExecutor.h
+lib/libPocoMySQLd.so.10
+lib/libPocoMySQL.so.10
+lib/libPocoMySQLd.so
+lib/libPocoMySQL.so
diff --git a/databases/poco-data-mysql/buildlink3.mk b/databases/poco-data-mysql/buildlink3.mk
new file mode 100644
index 00000000000..a3735ceb0e4
--- /dev/null
+++ b/databases/poco-data-mysql/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/02/06 06:02:02 schnoebe Exp $
+
+BUILDLINK_TREE+= poco-data-mysql
+
+.if !defined(POCO_DATA_MYSQL_BUILDLINK3_MK)
+POCO_DATA_MYSQL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.poco-data-mysql+= poco-data-mysql>=1.3.5
+BUILDLINK_ABI_DEPENDS.poco-data-mysql?= poco-data-mysql>=1.3.5nb1
+BUILDLINK_PKGSRCDIR.poco-data-mysql?= ../../wip/poco-data-mysql
+
+.include "../../databases/mysql5-client/buildlink3.mk"
+.include "../../wip/poco-data/buildlink3.mk"
+.endif # POCO_DATA_MYSQL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -poco-data-mysql