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
|
2012-03-04 06:45:37 +01:00
|
|
|
PORTVERSION= 0.8.3
|
2003-10-31 13:38:30 +01:00
|
|
|
CATEGORIES= databases
|
2009-08-22 02:18:43 +02:00
|
|
|
MASTER_SITES= SF/hk-classes/${PORTNAME}/${PORTVERSION}
|
2003-10-31 13:38:30 +01:00
|
|
|
|
2007-12-14 16:26:42 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-03-11 20:10:27 +01:00
|
|
|
COMMENT= C++ Library for rapid development of database applications
|
2003-10-31 13:38:30 +01:00
|
|
|
|
2012-07-26 07:40:22 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone
|
2012-03-04 06:45:37 +01:00
|
|
|
LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
|
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
2004-04-11 03:23:14 +02:00
|
|
|
|
|
|
|
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
|
2006-07-23 15:28:50 +02:00
|
|
|
USE_GETTEXT= yes
|
2012-07-26 07:40:22 +02:00
|
|
|
USE_PKGCONFIG= yes
|
2004-04-11 03:23:14 +02:00
|
|
|
CXXFLAGS+= ${PTHREAD_CFLAGS}
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib -largp -lintl
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV+= PYTHON_VERSION=${PYTHON_VERSION:S/python//}
|
2006-07-23 15:28:50 +02:00
|
|
|
CONFIGURE_ARGS+=--with-python-libdir=${PYTHON_LIBDIR} \
|
|
|
|
--with-python-incdir=${PYTHON_INCLUDEDIR} \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
--with-fontconfig-incdir=${LOCALBASE}/include/fontconfig \
|
2009-06-13 17:52:42 +02:00
|
|
|
--with-fontconfig-libdir=${LOCALBASE}/lib \
|
|
|
|
--without-firebird
|
2008-04-23 10:06:18 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/hk_classes/
|
2004-03-11 20:10:27 +01:00
|
|
|
|
2007-07-30 11:42:28 +02:00
|
|
|
INSTALLS_EGGINFO= yes
|
|
|
|
PYDISTUTILS_PKGVERSION= 1.1
|
|
|
|
|
2006-06-06 11:01:20 +02:00
|
|
|
NOT_FOR_ARCHS= ia64
|
|
|
|
NOT_FOR_ARCHS_REASON_ia64= Does not build
|
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL ODBC PARADOX SQLITE2 SQLITE3 DBASE
|
|
|
|
OPTIONS_DEFAULT= MYSQL
|
|
|
|
SQLITE3_DESC= Enable SQLite 3 backend
|
|
|
|
SQLITE2_DESC= Enable SQLite 2 backend
|
|
|
|
PARADOX_DESC= Enable paradox backend
|
|
|
|
DBASE_DESC= Enable Dbase backend
|
2004-05-08 07:34:51 +02:00
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2004-03-11 20:10:27 +01:00
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
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
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
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
|
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.if ${PORT_OPTIONS:MDBASE}
|
|
|
|
PLIST_SUB+= DBASE=""
|
|
|
|
.else
|
2012-03-04 06:45:37 +01:00
|
|
|
CONFIGURE_ARGS+= --without-dbase
|
|
|
|
PLIST_SUB+= DBASE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.if ${PORT_OPTIONS:MPOSTGRESQL}
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= yes
|
2003-11-01 01:48:30 +01:00
|
|
|
CONFIGURE_ARGS+= --with-postgres-incdir=${LOCALBASE}/include/ \
|
|
|
|
--with-postgres-libdir=${LOCALBASE}/lib
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2003-11-01 01:48:30 +01:00
|
|
|
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
|
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.if ${PORT_OPTIONS:MODBC}
|
2012-02-06 13:25:50 +01:00
|
|
|
LIB_DEPENDS+= odbc.2:${PORTSDIR}/databases/unixODBC
|
2004-03-11 20:10:27 +01:00
|
|
|
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
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.if ${PORT_OPTIONS:MPARADOX}
|
2005-12-11 21:37:51 +01:00
|
|
|
LIB_DEPENDS+= px:${PORTSDIR}/databases/pxlib
|
|
|
|
CONFIGURE_ARGS+= --with-paradox-incdir=${LOCALBASE}/include/\
|
|
|
|
--with-paradox-libdir=${LOCALBASE}/lib
|
|
|
|
PLIST_SUB+= PARADOX=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-paradox
|
|
|
|
PLIST_SUB+= PARADOX="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# XXX does not work yet
|
2012-06-01 18:59:20 +02:00
|
|
|
.if ${PORT_OPTIONS:MMSACCESS}
|
2005-12-11 21:37:51 +01:00
|
|
|
LIB_DEPENDS+= mdb:${PORTSDIR}/databases/mdbtools
|
|
|
|
CONFIGURE_ARGS+= --with-mdb-incdir=${LOCALBASE}/include/\
|
|
|
|
--with-mdb-libdir=${LOCALBASE}/lib
|
|
|
|
PLIST_SUB+= MSACCESS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mdb
|
|
|
|
PLIST_SUB+= MSACCESS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# XXX does not work yet
|
|
|
|
CONFIGURE_ARGS+= --without-xbase
|
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.if ${PORT_OPTIONS:MSQLITE2}
|
2004-11-06 18:38:23 +01:00
|
|
|
LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2
|
|
|
|
CONFIGURE_ARGS+= --with-sqlite-incdir=${LOCALBASE}/include/\
|
|
|
|
--with-sqlite-libdir=${LOCALBASE}/lib
|
2004-12-03 18:05:23 +01:00
|
|
|
PLIST_SUB+= SQLITE2=""
|
2004-11-06 18:38:23 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sqlite
|
2004-12-03 18:05:23 +01:00
|
|
|
PLIST_SUB+= SQLITE2="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.if ${PORT_OPTIONS:MSQLITE3}
|
2004-12-03 18:05:23 +01:00
|
|
|
LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3
|
|
|
|
CONFIGURE_ARGS+= --with-sqlite-incdir3=${LOCALBASE}/include/\
|
|
|
|
--with-sqlite-libdir3=${LOCALBASE}/lib
|
|
|
|
PLIST_SUB+= SQLITE3=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sqlite3
|
|
|
|
PLIST_SUB+= SQLITE3="@comment "
|
2004-11-06 18:38:23 +01:00
|
|
|
.endif
|
|
|
|
|
2012-03-04 06:45:37 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e "s|INCLUDES = -I../hk_classes \
|
|
|
|
-I./pxlib|INCLUDES = -I../hk_classes -I./pxlib \
|
|
|
|
-I${LOCALBASE}/include|g" \
|
|
|
|
${WRKSRC}/hk_paradoxclasses/Makefile.in
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e "s| -I|','|g" ${WRKSRC}/python/setup.py
|
|
|
|
|
2004-11-06 18:38:23 +01:00
|
|
|
post-install:
|
|
|
|
@${SED} -e 's#%%PREFIX%%#${PREFIX}#' ${FILESDIR}/hk_classes.sh > \
|
|
|
|
${PREFIX}/etc/rc.d/hk_classes.sh; \
|
|
|
|
${CHMOD} a+x ${PREFIX}/etc/rc.d/hk_classes.sh
|
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.include <bsd.port.mk>
|