summaryrefslogtreecommitdiff
path: root/textproc/kbedic
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2002-07-26 11:45:03 +0000
committerPeter Pentchev <roam@FreeBSD.org>2002-07-26 11:45:03 +0000
commit198289c971e69af8371f485d4432e56f13c91db4 (patch)
tree3fc42785dda79517b7bc7f0976e874bbbf9464ce /textproc/kbedic
parentUpdate to 1.1.12 (diff)
Make this a master port and allow for the soon-to-come textproc/cbedic
version to override the relevant settings. Approved by: maintainer
Notes
Notes: svn path=/head/; revision=63592
Diffstat (limited to 'textproc/kbedic')
-rw-r--r--textproc/kbedic/Makefile35
-rw-r--r--textproc/kbedic/distinfo3
-rw-r--r--textproc/kbedic/pkg-plist2
-rw-r--r--textproc/kbedic/pkg-plist.console1
4 files changed, 33 insertions, 8 deletions
diff --git a/textproc/kbedic/Makefile b/textproc/kbedic/Makefile
index 89d4bfdbeac1..c6b52f1e1c6e 100644
--- a/textproc/kbedic/Makefile
+++ b/textproc/kbedic/Makefile
@@ -5,19 +5,44 @@
# $FreeBSD$
#
-PORTNAME= kbedic
-PORTVERSION= 2.1
+PORTNAME?= kbedic
+PORTVERSION?= 2.1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://kbedic.search.bg/download/
MASTER_SITE_SUBDIR=kbedic
+DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= todorov_bg@gmx.net
-USE_QT_VER= 2
-USE_X_PREFIX= yes
+RUN_DEPENDS= ${DICT_DIR}/${DICT_CHECK}:${PORTSDIR}/textproc/bedic-data
+
+DICT_CHECK?= buleng.dat
+DICT_DIR?= ${LOCALBASE}/share
+
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-x
+CONFIGURE_ARGS= --datadir=${DICT_DIR}
+
+.if !defined(CONSOLE_VER)
+USE_QT_VER= 2
+USE_X_PREFIX= yes
+CONFIGURE_ARGS+= --with-x
+.else
+PLIST= ${PKGDIR}/pkg-plist.console
+.endif
+
+pre-fetch:
+ @${ECHO_MSG} " --- Dictionaries setup information ---"
+ @${ECHO_MSG} "This port uses dictionaries provided by the textproc/bedic-data port."
+ @${ECHO_MSG} "You may set the following variables to help the system locate"
+ @${ECHO_MSG} "the dictionaries that you have installed:"
+ @${ECHO_MSG} " DICT_DIR the directory where the dictionaries"
+ @${ECHO_MSG} " are located; currently ${DICT_DIR}"
+ @${ECHO_MSG} " DICT_CHECK a filename of an installed dictionary"
+ @${ECHO_MSG} " to check for; currently ${DICT_CHECK}"
+ @${ECHO_MSG} "If no dictionaries are installed yet, you may set the DICTIONARIES variable"
+ @${ECHO_MSG} "to the names of the dictionaries that the textproc/bedic-data port"
+ @${ECHO_MSG} "will install; refer to that port for more information."
.include <bsd.port.mk>
diff --git a/textproc/kbedic/distinfo b/textproc/kbedic/distinfo
index 2c6a3662e348..95087461aa54 100644
--- a/textproc/kbedic/distinfo
+++ b/textproc/kbedic/distinfo
@@ -1 +1,2 @@
-MD5 (kbedic-2.1.tar.gz) = 216f900be275a79285919d68c8694b65
+MD5 (kbedic-src-2.1.tar.gz) = eba8547ca714ecbe0441b569ec2f7e9b
+MD5 (cbedic-src-1.2.tar.gz) = 88c36588114c614fac79c55f437d625c
diff --git a/textproc/kbedic/pkg-plist b/textproc/kbedic/pkg-plist
index 5e7a4895ec08..9ec9a214c5a1 100644
--- a/textproc/kbedic/pkg-plist
+++ b/textproc/kbedic/pkg-plist
@@ -1,3 +1 @@
bin/kbedic
-share/engbul.dat
-share/buleng.dat
diff --git a/textproc/kbedic/pkg-plist.console b/textproc/kbedic/pkg-plist.console
new file mode 100644
index 000000000000..c6a02ca5ccd5
--- /dev/null
+++ b/textproc/kbedic/pkg-plist.console
@@ -0,0 +1 @@
+bin/cbedic