blob: 499c7df7d20ed95b23b0970110d2af206426d9ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
PORTNAME= stardict
PORTVERSION= 3.0.6
PORTREVISION= 7
CATEGORIES= textproc
MASTER_SITES= SF/stardict-4/${PORTVERSION}
DIST_SUBDIR= stardict
MAINTAINER= makc@FreeBSD.org
COMMENT= Dictionary lookup program written in Gtk2
WWW= http://www.stardict.org
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libsigc-2.0.so:devel/libsigc++20 \
libenchant.so:textproc/enchant
RUN_DEPENDS= xdg-open:devel/xdg-utils
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
CONFIGURE_ARGS= --disable-festival \
--disable-gucharmap \
--disable-espeak \
--disable-tools \
--disable-updateinfo \
--disable-advertisement \
--disable-gnome-support \
--disable-schemas-install \
--disable-scrollkeeper
USES= compiler:c++11-lang gettext gmake gnome libtool localbase \
pathfix pkgconfig tar:bzip2
USE_CXXSTD= c++11
USE_GNOME= intltool gtk20
post-patch:
@${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,g' \
${WRKSRC}/dict/src/conf.cpp
@${REINPLACE_CMD} \
-e '/as_fn_error.*gnome-doc-utils/d' \
-e '/DEP_MODULES=/s/"$$/ gmodule-2.0"/' \
${WRKSRC}/dict/configure
${REINPLACE_CMD} -e '/^SUBDIRS/s,help,,' ${WRKSRC}/dict/Makefile.in
.include <bsd.port.mk>
|