aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/dict
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-01-26 22:42:54 +0800
committermat <mat@FreeBSD.org>2014-01-26 22:42:54 +0800
commitbaeff25b27d62bc1350a3009e9bd819ca12662c6 (patch)
treeae371cacbf07b30fe516accdfbfac5296e9c87a1 /textproc/dict
parent44d7f783588e7a8f2de742b55d28006d4c694f10 (diff)
downloadfreebsd-ports-gnome-baeff25b27d62bc1350a3009e9bd819ca12662c6.tar.gz
freebsd-ports-gnome-baeff25b27d62bc1350a3009e9bd819ca12662c6.tar.zst
freebsd-ports-gnome-baeff25b27d62bc1350a3009e9bd819ca12662c6.zip
- Convert to staging
- Use new LIB_DEPENDS - Add license Sponsored by: Absolight
Diffstat (limited to 'textproc/dict')
-rw-r--r--textproc/dict/Makefile14
-rw-r--r--textproc/dict/pkg-plist3
2 files changed, 8 insertions, 9 deletions
diff --git a/textproc/dict/Makefile b/textproc/dict/Makefile
index 8ce9afb4eba6..63c8449ae24e 100644
--- a/textproc/dict/Makefile
+++ b/textproc/dict/Makefile
@@ -10,21 +10,20 @@ DISTNAME= ${PORTNAME}d-${PORTVERSION}
MAINTAINER= clsung@FreeBSD.org
COMMENT= Dictionary Server Protocol (RFC2229) client
-LIB_DEPENDS= maa.3:${PORTSDIR}/devel/libmaa
+LICENSE= GPLv2
-USES= bison
+LIB_DEPENDS= libmaa.so:${PORTSDIR}/devel/libmaa
+
+USES= bison gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-local-zlib --with-cflags="${CFLAGS}" \
--with-etcdir=${PREFIX}/etc
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-USE_GMAKE= yes
USE_AUTOTOOLS= libtool
ALL_TARGET= dict
INSTALL_TARGET= install.dict
-MAN1= dict.1 dictl.1 dict_lookup.1
-NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/dict.1.in
@@ -32,9 +31,6 @@ post-configure:
${REINPLACE_CMD} -e 's|^ mkdir| mkdir|g' ${WRKSRC}/Makefile
post-install:
- ${INSTALL_DATA} ${FILESDIR}/dict.conf ${PREFIX}/etc/dict.conf.sample
- if [ ! -f ${PREFIX}/etc/dict.conf ]; then \
- ${CP} -p ${PREFIX}/etc/dict.conf.sample ${PREFIX}/etc/dict.conf; \
- fi
+ ${INSTALL_DATA} ${FILESDIR}/dict.conf ${STAGEDIR}${PREFIX}/etc/dict.conf.sample
.include <bsd.port.mk>
diff --git a/textproc/dict/pkg-plist b/textproc/dict/pkg-plist
index 231af9bb3ba6..b32cc794f117 100644
--- a/textproc/dict/pkg-plist
+++ b/textproc/dict/pkg-plist
@@ -1,6 +1,9 @@
bin/dict
bin/dict_lookup
bin/dictl
+man/man1/dict.1.gz
+man/man1/dictl.1.gz
+man/man1/dict_lookup.1.gz
@unexec if cmp -s %D/etc/dict.conf.sample %D/etc/dict.conf; then rm -f %D/etc/dict.conf; fi
etc/dict.conf.sample
@exec [ -f %B/dict.conf ] || cp %B/%f %B/dict.conf