blob: b3c8bfe59092240d901c10021c9f4b9ea4f9a8fb (
plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Created by: Ulrich Spoerlein <uspoerlein@gmail.com>
# $FreeBSD$
PORTNAME= librcc
PORTVERSION= 0.2.12
PORTREVISION= 8
CATEGORIES= devel
MASTER_SITES= http://dside.dyndns.org/files/rusxmms/ \
LOCAL/fluffy
MAINTAINER= ports@FreeBSD.org
COMMENT= Library used by rusxmms for language autodetection
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= librcd.so:devel/librcd \
libenca.so:converters/enca \
libaspell.so:textproc/aspell
GNU_CONFIGURE= yes
USE_GNOME= libxml2
USES= gmake iconv libtool pathfix pkgconfig tar:bzip2
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= BDB TRANSLATE TOOLS GTK1 GTK2 GTK3
OPTIONS_DEFAULT=TOOLS GTK2
OPTIONS_SUB= yes
BDB_DESC= Translation database support
BDB_CONFIGURE_ENABLE= bdb
BDB_CPPFLAGS= -I${BDB_INCLUDE_DIR}
BDB_LDFLAGS= -L${BDB_LIB_DIR}
BDB_USES= bdb
TRANSLATE_DESC= Online translation support
TRANSLATE_CONFIGURE_ENABLE= libtranslate
TRANSLATE_LIB_DEPENDS= libtranslate.so:textproc/libtranslate
TOOLS_DESC= Recode configuration utility
TOOLS_EXTRA_PATCHES= ${FILESDIR}/extrapatch-rcc-config
GTK1_CONFIGURE_ENABLE= gtk1
GTK1_USE= GNOME=glib12,gtk12
GTK2_CONFIGURE_ENABLE= gtk2
GTK2_USE= GNOME=gtk20
GTK3_CONFIGURE_ENABLE= gtk3
GTK3_USE= GNOME=gtk30
.include <bsd.port.pre.mk>
.if empty(ICONV_LIB)
CONFIGURE_ARGS+=--enable-force-system-iconv
.endif
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK3}
CONFIGURE_ARGS+=--enable-glib2
PLIST_SUB+= WITH_GLIB2=""
.else
CONFIGURE_ARGS+=--disable-glib2
PLIST_SUB+= WITH_GLIB2="@comment "
.endif
pre-everything::
.if ${ARCH} == "i386"
.if ${PORT_OPTIONS:MBDB} || ${PORT_OPTIONS:MTRANSLATE}
@${ECHO} 'BDB/LibTranslate support may cause breakages in depended apps on ${ARCH}'
@${ECHO} 'Use it with caution'
.endif
.endif
post-patch:
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
${WRKSRC}/external/rccexternal.c
.include <bsd.port.post.mk>
|