2011-09-16 04:48:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2011/09/16 08:48:02 espie Exp $
|
2010-12-20 12:39:55 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= C++ database API
|
|
|
|
|
2011-03-14 14:30:33 -04:00
|
|
|
DISTNAME= deepfryed-dbicpp-g466860f
|
|
|
|
PKGNAME= dbic++-0.5.6
|
2010-12-20 12:39:55 -05:00
|
|
|
CATEGORIES= databases
|
2011-03-14 14:30:33 -04:00
|
|
|
HOMEPAGE= https://github.com/deepfryed/dbicpp
|
2011-09-16 04:48:01 -04:00
|
|
|
REVISION = 0
|
2010-12-20 12:39:55 -05:00
|
|
|
|
2011-03-14 14:30:33 -04:00
|
|
|
SHARED_LIBS += dbdmysql 1.0 # 0.0
|
|
|
|
SHARED_LIBS += dbdpg 1.0 # 0.0
|
|
|
|
SHARED_LIBS += dbdsqlite3 0.0 # 0.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
|
|
|
|
|
|
|
BUILD_DEPENDS= devel/cmake \
|
|
|
|
shells/bash
|
|
|
|
LIB_DEPENDS= mysql-client->=5:databases/mysql \
|
|
|
|
postgresql-client->=8.4:databases/postgresql \
|
2011-03-14 14:30:33 -04:00
|
|
|
sqlite3->=3.7:databases/sqlite3 \
|
2010-12-20 12:39:55 -05:00
|
|
|
devel/pcre \
|
|
|
|
sysutils/e2fsprogs
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= none
|
2011-03-14 14:30:33 -04:00
|
|
|
WRKDIST= ${WRKDIR}/deepfryed-dbicpp-4fe45f7
|
2010-12-20 12:39:55 -05:00
|
|
|
|
2011-07-05 17:25:04 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2011-03-14 14:30:33 -04:00
|
|
|
pre-configure:
|
2011-07-05 17:25:04 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/{CMakeLists.txt,inc/dbic++.h,src/dbic++.cc,pkgconfig/dbic++.pc}
|
2010-12-20 12:39:55 -05:00
|
|
|
|
|
|
|
do-build:
|
2011-07-05 17:25:04 -04:00
|
|
|
cd ${WRKSRC} && ${SET_ENV} ${MAKE_ENV} ${LOCALBASE}/bin/bash build.sh
|
2010-12-20 12:39:55 -05:00
|
|
|
|
|
|
|
do-install:
|
2011-07-05 17:25:04 -04:00
|
|
|
cd ${WRKSRC} && ${SET_ENV} ${MAKE_ENV} \
|
2011-08-17 11:43:52 -04:00
|
|
|
${LOCALBASE}/bin/bash build.sh -i
|
2010-12-20 12:39:55 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|