2003-10-31 13:38:30 +01:00
|
|
|
# New ports collection makefile for: hk_classes
|
|
|
|
# Date created: 25 July 2002
|
|
|
|
# Whom: arved
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hk_classes
|
2004-04-11 03:23:14 +02:00
|
|
|
PORTVERSION= 0.6.3
|
2003-10-31 13:38:30 +01:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= hk-classes
|
|
|
|
|
2004-03-11 20:10:27 +01:00
|
|
|
MAINTAINER= sem@ciam.ru
|
|
|
|
COMMENT= C++ Library for rapid development of database applications
|
2003-10-31 13:38:30 +01:00
|
|
|
|
2004-04-11 03:23:14 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone
|
|
|
|
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_BZIP2= yes
|
2004-03-30 21:20:22 +02:00
|
|
|
USE_ICONV= yes
|
2004-03-11 20:10:27 +01:00
|
|
|
USE_PYTHON= yes
|
2004-04-11 03:23:14 +02:00
|
|
|
CXXFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
CONFIGURE_ENV+= LIBPYTHON="-l${PYTHON_VERSION} ${PTHREAD_LIBS}" \
|
|
|
|
LDFLAGS="${PTHREAD_LIBS} -largp -L${LOCALBASE}/lib"
|
2004-03-11 20:10:27 +01:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2004-03-14 07:17:56 +01:00
|
|
|
USE_LIBTOOL_VER= 13
|
2004-03-11 20:10:27 +01:00
|
|
|
LDCONFIG_DIRS+= ${PREFIX}/lib/hk_classes/
|
|
|
|
|
|
|
|
OPTIONS= MYSQL "Build MySQL driver" on \
|
|
|
|
POSTGRESQL "Build PostrgreSQL driver" off \
|
|
|
|
ODBC "Build unixODBC driver" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-03-25 08:38:47 +01:00
|
|
|
.if !defined(WITHOUT_MYSQL)
|
2003-10-31 14:28:15 +01:00
|
|
|
USE_MYSQL= yes
|
2004-03-11 20:10:27 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mysql-dir=${LOCALBASE} \
|
|
|
|
--with-mysql-incdir=${LOCALBASE}/include/mysql \
|
|
|
|
--with-mysql-libdir=${LOCALBASE}/lib/mysql
|
2003-10-31 13:38:30 +01:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql"
|
2003-11-01 01:48:30 +01:00
|
|
|
PLIST_SUB+= MYSQL=""
|
|
|
|
.else
|
2004-03-11 20:10:27 +01:00
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
2003-11-01 01:48:30 +01:00
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_POSTGRESQL)
|
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
2004-03-11 20:10:27 +01:00
|
|
|
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
2003-11-01 01:48:30 +01:00
|
|
|
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
|
2004-03-11 20:10:27 +01:00
|
|
|
CONFIGURE_ARGS+= --without-postgres
|
2003-11-01 01:48:30 +01:00
|
|
|
PLIST_SUB+= POSTGRESQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-03-11 20:10:27 +01:00
|
|
|
.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
|
2003-10-31 13:38:30 +01:00
|
|
|
|
2004-03-11 20:10:27 +01:00
|
|
|
.include <bsd.port.post.mk>
|