Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= librcc |
4 |
PORTNAME= librcc |
5 |
PORTVERSION= 0.2.12 |
5 |
PORTVERSION= 0.2.12 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= devel |
7 |
CATEGORIES= devel |
7 |
MASTER_SITES= http://dside.dyndns.org/files/rusxmms/ \ |
8 |
MASTER_SITES= http://dside.dyndns.org/files/rusxmms/ \ |
8 |
LOCAL/fluffy |
9 |
LOCAL/fluffy |
Lines 16-79
LIB_DEPENDS= librcd.so:${PORTSDIR}/devel
Link Here
|
16 |
|
17 |
|
17 |
USE_BZIP2= yes |
18 |
USE_BZIP2= yes |
18 |
GNU_CONFIGURE= yes |
19 |
GNU_CONFIGURE= yes |
19 |
USE_GNOME= lthack libxml2 |
20 |
USE_GNOME= libxml2 |
20 |
USES= gmake iconv pathfix pkgconfig |
21 |
USES= gmake iconv libtool:oldver pathfix pkgconfig |
21 |
USE_LDCONFIG= yes |
22 |
USE_LDCONFIG= yes |
22 |
USE_AUTOTOOLS= autoheader |
|
|
23 |
|
23 |
|
24 |
CPPFLAGS+= -I${LOCALBASE}/include |
24 |
CPPFLAGS+= -I${LOCALBASE}/include |
25 |
LIBS= -L${LOCALBASE}/lib |
25 |
LDFLAGS+= -L${LOCALBASE}/lib |
26 |
|
|
|
27 |
CONFIGURE_ENV= LIBS="${LIBS}" |
28 |
|
26 |
|
29 |
OPTIONS_DEFINE= BDB TRANSLATE TOOLS GTK1 GTK2 GTK3 |
27 |
OPTIONS_DEFINE= BDB TRANSLATE TOOLS GTK1 GTK2 GTK3 |
30 |
BDB_DESC= Translation database support |
28 |
OPTIONS_DEFAULT=TOOLS GTK2 |
31 |
TRANSLATE_DESC= Online translation support |
29 |
OPTIONS_SUB= yes |
32 |
TOOLS_DESC= Recode configuration utility |
|
|
33 |
|
30 |
|
34 |
OPTIONS_DEFAULT= TOOLS GTK2 |
31 |
BDB_DESC= Translation database support |
|
|
32 |
BDB_CONFIGURE_ENABLE= bdb |
33 |
BDB_CPPFLAGS= -I${BDB_INCLUDE_DIR} |
34 |
BDB_LDFLAGS= -L${BDB_LIB_DIR} |
35 |
BDB_USE= BDB=41+ |
35 |
|
36 |
|
36 |
#NO_STAGE= yes |
37 |
TRANSLATE_DESC= Online translation support |
37 |
.include <bsd.port.options.mk> |
38 |
TRANSLATE_CONFIGURE_ENABLE= libtranslate |
|
|
39 |
TRANSLATE_LIB_DEPENDS= libtranslate.so:${PORTSDIR}/textproc/libtranslate |
38 |
|
40 |
|
39 |
.if ${PORT_OPTIONS:MBDB} |
41 |
TOOLS_DESC= Recode configuration utility |
40 |
USE_BDB= 41+ |
42 |
TOOLS_EXTRA_PATCHES= ${FILESDIR}/extrapatch-rcc-config |
41 |
CPPFLAGS+= -I${BDB_INCLUDE_DIR} |
|
|
42 |
LIBS+= -L${BDB_LIB_DIR} |
43 |
CONFIGURE_ARGS+=--enable-bdb |
44 |
.else |
45 |
CONFIGURE_ARGS+=--disable-bdb |
46 |
.endif |
47 |
|
43 |
|
48 |
.if ${PORT_OPTIONS:MTRANSLATE} |
44 |
GTK1_CONFIGURE_ENABLE= gtk1 |
49 |
LIB_DEPENDS+= translate.0:${PORTSDIR}/textproc/libtranslate |
45 |
GTK1_USE= GNOME=glib12,gtk12 |
50 |
CONFIGURE_ARGS+=--enable-libtranslate |
|
|
51 |
.else |
52 |
CONFIGURE_ARGS+=--disable-libtranslate |
53 |
.endif |
54 |
|
46 |
|
55 |
.if ${PORT_OPTIONS:MGTK1} |
47 |
GTK2_CONFIGURE_ENABLE= gtk2 |
56 |
USE_GNOME+= glib12 gtk12 |
48 |
GTK2_USE= GNOME=gtk20 |
57 |
PLIST_SUB+= WITH_GTK1="" |
|
|
58 |
.else |
59 |
CONFIGURE_ENV+= ac_cv_path_GTK_CONFIG=no GTK_CONFIG=no |
60 |
PLIST_SUB+= WITH_GTK1="@comment " |
61 |
.endif |
62 |
|
49 |
|
63 |
.if ${PORT_OPTIONS:MGTK2} |
50 |
GTK3_CONFIGURE_ENABLE= gtk3 |
64 |
USE_GNOME+= gtk20 |
51 |
GTK3_USE= GNOME=gtk30 |
65 |
PLIST_SUB+= WITH_GTK2="" |
|
|
66 |
.else |
67 |
CONFIGURE_ARGS+=--disable-gtk2 |
68 |
PLIST_SUB+= WITH_GTK2="@comment " |
69 |
.endif |
70 |
|
52 |
|
71 |
.if ${PORT_OPTIONS:MGTK3} |
53 |
.include <bsd.port.pre.mk> |
72 |
USE_GNOME+= gtk30 |
54 |
|
73 |
PLIST_SUB+= WITH_GTK3="" |
55 |
.if empty(ICONV_LIB) |
74 |
.else |
56 |
CONFIGURE_ARGS+=--enable-force-system-iconv |
75 |
CONFIGURE_ARGS+=--disable-gtk3 |
|
|
76 |
PLIST_SUB+= WITH_GTK3="@comment " |
77 |
.endif |
57 |
.endif |
78 |
|
58 |
|
79 |
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK3} |
59 |
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK3} |
Lines 84-96
CONFIGURE_ARGS+=--disable-glib2
Link Here
|
84 |
PLIST_SUB+= WITH_GLIB2="@comment " |
64 |
PLIST_SUB+= WITH_GLIB2="@comment " |
85 |
.endif |
65 |
.endif |
86 |
|
66 |
|
87 |
.if ${PORT_OPTIONS:MTOOLS} |
|
|
88 |
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-rcc-config |
89 |
PLIST_SUB+= TOOLS="" |
90 |
.else |
91 |
PLIST_SUB+= TOOLS="@comment " |
92 |
.endif |
93 |
|
94 |
pre-everything:: |
67 |
pre-everything:: |
95 |
.if ${ARCH} == "i386" |
68 |
.if ${ARCH} == "i386" |
96 |
.if ${PORT_OPTIONS:MBDB} || ${PORT_OPTIONS:MTRANSLATE} |
69 |
.if ${PORT_OPTIONS:MBDB} || ${PORT_OPTIONS:MTRANSLATE} |
Lines 103-106
post-patch:
Link Here
|
103 |
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \ |
76 |
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \ |
104 |
${WRKSRC}/external/rccexternal.c |
77 |
${WRKSRC}/external/rccexternal.c |
105 |
|
78 |
|
106 |
.include <bsd.port.mk> |
79 |
.include <bsd.port.post.mk> |