diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2004-03-11 19:10:27 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2004-03-11 19:10:27 +0000 |
commit | 854c161f24920c7bdacb72f371a6fa7b8406a283 (patch) | |
tree | ab3ba91192e0f26f289aa19399ecc44da969a865 /databases/hk_classes/Makefile | |
parent | 626a25b669b1238b2e56533dd189f73cbad5f65c (diff) | |
download | ports-854c161f24920c7bdacb72f371a6fa7b8406a283.tar.gz ports-854c161f24920c7bdacb72f371a6fa7b8406a283.zip |
Notes
Diffstat (limited to 'databases/hk_classes/Makefile')
-rw-r--r-- | databases/hk_classes/Makefile | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/databases/hk_classes/Makefile b/databases/hk_classes/Makefile index ad4ee855f0c3..6af51f19c779 100644 --- a/databases/hk_classes/Makefile +++ b/databases/hk_classes/Makefile @@ -5,46 +5,64 @@ # $FreeBSD$ PORTNAME= hk_classes -PORTVERSION= 0.6.1 -PORTREVISION= 2 +PORTVERSION= 0.6.2 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= hk-classes -MAINTAINER= ports@FreeBSD.org -COMMENT= "C++ Library for rapid development of database applications" +MAINTAINER= sem@ciam.ru +COMMENT= C++ Library for rapid development of database applications LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv -.if !defined(WITHOUT_MYSQL) || defined(WITH_MYSQL) +USE_PYTHON= yes +CONFIGURE_ENV+= LIBPYTHON="-l${PYTHON_VERSION} ${PTHREAD_LIBS}" +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes +USE_LIBTOOL= yes +LDCONFIG_DIRS+= ${PREFIX}/lib/hk_classes/ + +OPTIONS= MYSQL "Build MySQL driver" on \ + POSTGRESQL "Build PostrgreSQL driver" off \ + ODBC "Build unixODBC driver" off +WITH_MYSQL?= yes + +.include <bsd.port.pre.mk> + +.if defined(WITH_MYSQL) USE_MYSQL= yes -CONFIGURE_ARGS+= -with-mysql-dir=${LOCALBASE} \ - --with-mysql-incdir=${LOCALBASE}/include/mysql +CONFIGURE_ARGS+= --with-mysql-dir=${LOCALBASE} \ + --with-mysql-incdir=${LOCALBASE}/include/mysql \ + --with-mysql-libdir=${LOCALBASE}/lib/mysql CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql" PLIST_SUB+= MYSQL="" .else +CONFIGURE_ARGS+= --without-mysql PLIST_SUB+= MYSQL="@comment " .endif .if defined(WITH_POSTGRESQL) POSTGRESQL_PORT?= databases/postgresql7 -LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} +LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} CONFIGURE_ARGS+= --with-postgres-incdir=${LOCALBASE}/include/ \ --with-postgres-libdir=${LOCALBASE}/lib CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib" PLIST_SUB+= POSTGRESQL="" .else +CONFIGURE_ARGS+= --without-postgres PLIST_SUB+= POSTGRESQL="@comment " .endif -USE_PYTHON= yes -CONFIGURE_ENV+= LIBPYTHON="-l${PYTHON_VERSION} ${PTHREAD_LIBS}" -CONFIGURE_TARGET= -CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -GNU_CONFIGURE= yes -INSTALLS_SHLIB= yes -USE_LIBTOOL= yes -LDCONFIG_DIRS+= %%PREFIX%%/lib/hk_classes/ +.if defined(WITH_ODBC) +LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC +CONFIGURE_ARGS+= --with-odbc-incdir=${LOCALBASE}/include/\ + --with-odbc-libdir=${LOCALBASE}/lib +PLIST_SUB+= ODBC="" +.else +CONFIGURE_ARGS+= --without-odbc +PLIST_SUB+= ODBC="@comment " +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |