Prune www/mod_log_config-st
[dports.git] / textproc / stardict3 / Makefile
1 # Created by: eric
2 # $FreeBSD$
3
4 PORTNAME=       stardict
5 PORTVERSION=    3.0.6
6 CATEGORIES=     textproc
7 MASTER_SITES=   SF/stardict-4/${PORTVERSION}
8 DIST_SUBDIR=    stardict
9
10 MAINTAINER=     makc@FreeBSD.org
11 COMMENT=        Dictionary lookup program written in Gtk2
12
13 LIB_DEPENDS=    libsigc-2.0.so:devel/libsigc++20 \
14                 libenchant.so:textproc/enchant
15 RUN_DEPENDS=    xdg-open:devel/xdg-utils
16
17 GNU_CONFIGURE=  yes
18 CONFIGURE_ARGS= --disable-festival \
19                 --disable-gucharmap \
20                 --disable-espeak \
21                 --disable-tools \
22                 --disable-updateinfo \
23                 --disable-advertisement
24
25 USES=           compiler:c++11-lang gettext gmake libtool localbase pathfix \
26                 pkgconfig tar:bzip2
27 USE_CXXSTD=     c++11
28 USE_GNOME=      intltool
29
30 OPTIONS_DEFINE= GNOME
31 OPTIONS_SUB=    yes
32
33 GNOME_USE=      GNOME=gnomeprefix,gnomedocutils,libgnomeui
34 GNOME_USE_OFF=  GNOME=gtk20
35 GNOME_CONFIGURE_ENABLE= gnome-support schemas-install scrollkeeper
36 GNOME_VARS=     GCONF_SCHEMAS=stardict.schemas \
37                 INSTALLS_OMF=yes
38
39 post-patch:
40         @${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,g' \
41                 ${WRKSRC}/dict/src/conf.cpp
42         @${REINPLACE_CMD} \
43                 -e '/as_fn_error.*gnome-doc-utils/d' \
44                 -e '/DEP_MODULES=/s/"$$/ gmodule-2.0"/' \
45                 ${WRKSRC}/dict/configure
46
47 post-patch-GNOME-off:
48         ${REINPLACE_CMD} -e '/^SUBDIRS/s,help,,' ${WRKSRC}/dict/Makefile.in
49
50 .include <bsd.port.mk>