aboutsummaryrefslogtreecommitdiff
path: root/textproc/stardict3/Makefile
blob: a0fa04135a78feb7664e399757b849bec9ccd628 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: eric
# $FreeBSD$

PORTNAME=	stardict
PORTVERSION=	3.0.4
PORTREVISION=	2
CATEGORIES=	textproc
MASTER_SITES=	GOOGLE_CODE
DIST_SUBDIR=	stardict

MAINTAINER=	makc@FreeBSD.org
COMMENT=	Dictionary lookup program written in Gtk2

BROKEN=		Unfetchable (google code has gone away)

LIB_DEPENDS=	libsigc-2.0.so:devel/libsigc++20 \
		libenchant.so:textproc/enchant
RUN_DEPENDS=	xdg-open:devel/xdg-utils

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-festival \
		--disable-gucharmap \
		--disable-espeak \
		--disable-tools \
		--disable-updateinfo
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
USES=		gettext gmake libtool pathfix pkgconfig tar:bzip2
USE_GNOME=	intltool

PROJECTHOST=	stardict-3

OPTIONS_DEFINE=	GNOME
OPTIONS_SUB=	yes

GNOME_USE=	GNOME=gnomeprefix,gnomedocutils,libgnomeui
GNOME_USE_OFF=	GNOME=gtk20
GNOME_CONFIGURE_ENABLE=	gnome-support schemas-install scrollkeeper

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGNOME}
GCONF_SCHEMAS=	stardict.schemas
INSTALLS_OMF=	yes
.endif

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

post-patch-GNOME-off:
	${REINPLACE_CMD} -e '/^SUBDIRS/s,help,,' ${WRKSRC}/dict/Makefile.in

.include <bsd.port.mk>