aboutsummaryrefslogtreecommitdiffstats
path: root/databases/hk_classes
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2004-11-07 01:38:23 +0800
committersem <sem@FreeBSD.org>2004-11-07 01:38:23 +0800
commit6d402a61ab5824d7cd1cffa606684f6bed3c0742 (patch)
treee72f96103fcf629d427c5e2dd1aaa1881fc8a736 /databases/hk_classes
parent96ba4b4462bfd3a9d0c41a7a74ade379882d091c (diff)
downloadfreebsd-ports-gnome-6d402a61ab5824d7cd1cffa606684f6bed3c0742.tar.gz
freebsd-ports-gnome-6d402a61ab5824d7cd1cffa606684f6bed3c0742.tar.zst
freebsd-ports-gnome-6d402a61ab5824d7cd1cffa606684f6bed3c0742.zip
- Update to 0.7.1
- Add SQLite2 support - add startup file to run ldconfig
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