2012-09-28 03:52:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2012/09/28 07:52:14 dcoppa Exp $
|
2010-12-20 12:39:55 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= C++ database API
|
|
|
|
|
2012-04-06 15:25:23 -04:00
|
|
|
DISTNAME= deepfryed-dbicpp-v0.6.0
|
|
|
|
PKGNAME= dbic++-0.6.0
|
2012-09-28 03:52:14 -04:00
|
|
|
REVISION = 2
|
2010-12-20 12:39:55 -05:00
|
|
|
CATEGORIES= databases
|
2011-03-14 14:30:33 -04:00
|
|
|
HOMEPAGE= https://github.com/deepfryed/dbicpp
|
2010-12-20 12:39:55 -05:00
|
|
|
|
2012-04-06 15:25:23 -04:00
|
|
|
SHARED_LIBS += dbdmysql 2.0 # 1.0
|
|
|
|
SHARED_LIBS += dbdpg 2.0 # 1.0
|
|
|
|
SHARED_LIBS += dbdsqlite3 1.0 # 1.0
|
2010-12-20 12:39:55 -05:00
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
# port-lib-depends-check says that e2fs-uuid and pcrecpp are
|
|
|
|
# Extra, but they are used in a .a file that doesn't have a
|
|
|
|
# .so shared library equivalent.
|
2011-03-14 14:30:33 -04:00
|
|
|
WANTLIB = e2fs-uuid m mysqlclient pcrecpp pq stdc++ sqlite3
|
2010-12-20 12:39:55 -05:00
|
|
|
|
2011-04-02 12:56:42 -04:00
|
|
|
MASTER_SITES= http://distfiles.bsdfrog.org/
|
2010-12-20 12:39:55 -05:00
|
|
|
|
2012-09-27 03:23:55 -04:00
|
|
|
MODULES = devel/cmake
|
|
|
|
|
2010-12-20 12:39:55 -05:00
|
|
|
LIB_DEPENDS= mysql-client->=5:databases/mysql \
|
|
|
|
postgresql-client->=8.4:databases/postgresql \
|
|
|
|
devel/pcre \
|
|
|
|
sysutils/e2fsprogs
|
|
|
|
|
2012-09-27 03:23:55 -04:00
|
|
|
CONFIGURE_ARGS+= -DCMAKE_MYSQL_VERSION=${LIBdbdmysql_VERSION} \
|
|
|
|
-DCMAKE_PG_VERSION=${LIBdbdpg_VERSION} \
|
|
|
|
-DCMAKE_SQLITE3_VERSION=${LIBdbdsqlite3_VERSION}
|
|
|
|
|
2012-04-06 15:25:23 -04:00
|
|
|
WRKDIST= ${WRKDIR}/deepfryed-dbicpp
|
2010-12-20 12:39:55 -05:00
|
|
|
|
2011-07-05 17:25:04 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2012-04-06 15:25:23 -04:00
|
|
|
post-extract:
|
|
|
|
mv ${WRKDIR}/deepfryed-dbicpp-* ${WRKDIR}/deepfryed-dbicpp
|
|
|
|
|
2011-03-14 14:30:33 -04:00
|
|
|
pre-configure:
|
2012-09-27 03:23:55 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/{inc/dbic++.h,src/dbic++.cc,pkgconfig/dbic++.pc}
|
2010-12-20 12:39:55 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|