source: trunk/dports/textproc/stardict/Portfile

Last change on this file was 141231, checked in by jeremyhu@…, 2 years ago

stardict: Fix build failure with recent compilers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 141231 2015-10-13 06:42:15Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            stardict
6version         3.0.4
7revision        1
8categories      textproc
9maintainers     gmail.com:alexandernx
10platforms       darwin
11license         GPL-3+
12
13description     A full featured gtk2 dictionary
14long_description \
15        Very nice gnome dictionary. \
16        Can handle both local and web dictionaries. \
17        Though it needs a handful of gnome libraries for \
18        installation.
19
20homepage        http://code.google.com/p/stardict-3/
21master_sites    googlecode:stardict-3
22use_bzip2       yes
23
24checksums       rmd160  78f20b2092006951f35497b804b176b9c2a15195 \
25                sha256  c38b9d953fe0b2380a8aed4c98cb121ad83aff91a32af3c665198d8268b1dce8
26
27depends_build   port:pkgconfig \
28                port:intltool \
29                port:gnome-doc-utils
30
31depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
32                port:gtk2 \
33                port:gconf \
34                port:libsigcxx2 \
35                port:popt
36
37patchfiles      patch-zlib-1.2.6.diff atoi.patch
38
39# update dict/m4/intltool.m4 and autoreconf
40
41pre-configure {
42    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/dict/m4/intltool.m4
43}
44
45
46# autoreconf to reconfigure with our intltool.m4
47
48use_autoreconf      yes
49autoreconf.args     -fvi
50
51# t_lookupdata.cpp:41:30: error: variable length array of non-POD element type 'std::vector<gchar *>'
52# http://code.google.com/p/stardict-3/issues/detail?id=58
53compiler.blacklist *clang*
54
55configure.args  --disable-gnome-support \
56                --disable-spell \
57                --disable-gucharmap \
58                --disable-festival \
59                --disable-espeak \
60                --disable-tools
61
62# Undefined symbols "_g_module_close", "_g_module_open", "_g_module_symbol"
63configure.libs  -lgmodule-2.0
64
65variant gnome description {Add Gnome support} {
66#Should be more stable slower and with gnome deps.
67configure.args-delete   --disable-gnome-support
68depends_lib-append      port:libgnome port:libgnomeui
69}
70
71platform darwin {
72        configure.args-append --enable-darwin-support
73}
Note: See TracBrowser for help on using the repository browser.