aboutsummaryrefslogtreecommitdiff
path: root/databases/hk_classes
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-11-06 17:38:23 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-11-06 17:38:23 +0000
commite3ea92b34366438f5a3eb26807ce7ad1a6ab92a5 (patch)
tree1b6c6f695810a1e9e465552bbc2589f48e6a2ccd /databases/hk_classes
parent55272fe62f8330c47c83bd75f357b30de6af0a32 (diff)
downloadports-e3ea92b34366438f5a3eb26807ce7ad1a6ab92a5.tar.gz
ports-e3ea92b34366438f5a3eb26807ce7ad1a6ab92a5.zip
Notes
Diffstat (limited to 'databases/hk_classes')
-rw-r--r--databases/hk_classes/Makefile20
-rw-r--r--databases/hk_classes/distinfo4
-rw-r--r--databases/hk_classes/files/hk_classes.sh15
-rw-r--r--databases/hk_classes/pkg-plist5
4 files changed, 40 insertions, 4 deletions
diff --git a/databases/hk_classes/Makefile b/databases/hk_classes/Makefile
index 117fd0a3b197..3b8b8ce9b788 100644
--- a/databases/hk_classes/Makefile
+++ b/databases/hk_classes/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= hk_classes
-PORTVERSION= 0.7
+PORTVERSION= 0.7.1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= hk-classes
@@ -30,7 +30,8 @@ LDCONFIG_DIRS+= ${PREFIX}/lib/hk_classes/
OPTIONS= MYSQL "Build MySQL driver" on \
POSTGRESQL "Build PostrgreSQL driver" off \
- ODBC "Build unixODBC driver" off
+ ODBC "Build unixODBC driver" off \
+ SQLITE "Build with sqlite2 driver" off
MAN1= hk_report.1man hk_actionquery.1man hk_exportxml.1man \
hk_exporthtml.1man hk_exportcsv.1man hk_importcsv.1man
@@ -72,4 +73,19 @@ CONFIGURE_ARGS+= --without-odbc
PLIST_SUB+= ODBC="@comment "
.endif
+.if defined(WITH_SQLITE)
+LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2
+CONFIGURE_ARGS+= --with-sqlite-incdir=${LOCALBASE}/include/\
+ --with-sqlite-libdir=${LOCALBASE}/lib
+PLIST_SUB+= SQLITE=""
+.else
+CONFIGURE_ARGS+= --without-sqlite
+PLIST_SUB+= SQLITE="@comment "
+.endif
+
+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
+
.include <bsd.port.post.mk>
diff --git a/databases/hk_classes/distinfo b/databases/hk_classes/distinfo
index d6b0ca871d07..820ba6861b4c 100644
--- a/databases/hk_classes/distinfo
+++ b/databases/hk_classes/distinfo
@@ -1,2 +1,2 @@
-MD5 (hk_classes-0.7.tar.bz2) = 35c16e935947b0b41b31b8ce5f10d0f1
-SIZE (hk_classes-0.7.tar.bz2) = 514364
+MD5 (hk_classes-0.7.1.tar.bz2) = 7f114a568f695488cb6194bde66d31fb
+SIZE (hk_classes-0.7.1.tar.bz2) = 518136
diff --git a/databases/hk_classes/files/hk_classes.sh b/databases/hk_classes/files/hk_classes.sh
new file mode 100644
index 000000000000..708f8e699cea
--- /dev/null
+++ b/databases/hk_classes/files/hk_classes.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ /sbin/ldconfig -m %%PREFIX%%/lib/hk_classes
+ ;;
+ stop)
+ ;;
+ *)
+ echo ""
+ echo "Usage: `basename $0` { start | stop }"
+ echo ""
+ exit 64
+ ;;
+esac
diff --git a/databases/hk_classes/pkg-plist b/databases/hk_classes/pkg-plist
index b6c55d918686..f48fe5abe2ce 100644
--- a/databases/hk_classes/pkg-plist
+++ b/databases/hk_classes/pkg-plist
@@ -1,3 +1,4 @@
+etc/rc.d/hk_classes.sh
bin/hk_actionquery
bin/hk_exportcsv
bin/hk_exporthtml
@@ -45,6 +46,7 @@ include/hk_classes/hk_reportutils.h
include/hk_classes/hk_storagecolumn.h
include/hk_classes/hk_storagedatasource.h
include/hk_classes/hk_string.h
+include/hk_classes/hk_subform.h
include/hk_classes/hk_visible.h
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.la
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.so
@@ -55,6 +57,9 @@ include/hk_classes/hk_visible.h
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.la
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so.0
+%%SQLITE%%lib/hk_classes/drivers/libhk_sqlite2driver.la
+%%SQLITE%%lib/hk_classes/drivers/libhk_sqlite2driver.so
+%%SQLITE%%lib/hk_classes/drivers/libhk_sqlite2driver.so.0
%%PYTHON_SITELIBDIR%%/_hk_classes.so
%%PYTHON_SITELIBDIR%%/hk_classes.py
%%PYTHON_SITELIBDIR%%/hk_classes.pyc