Permalink
Switch branches/tags
release/0.0.3 gub-release-lilypond-2.17.0-1 gub-release-lilypond-2.17.0-1-actual gub-release-lilypond-2.16.0-1 gub-release-lilypond-2.15.95-1 gub-release-lilypond-2.15.42-1 gub-release-lilypond-2.15.41-1 gub-release-lilypond-2.15.40-1 gub-release-lilypond-2.15.39-1 gub-release-lilypond-2.15.38-1 gub-release-lilypond-2.15.37-1 gub-release-lilypond-2.15.36-1 gub-release-lilypond-2.15.35-1 gub-release-lilypond-2.15.34-1 gub-release-lilypond-2.15.33-1 gub-release-lilypond-2.15.32-1 gub-release-lilypond-2.15.31-1 gub-release-lilypond-2.15.30-1 gub-release-lilypond-2.15.16-1 gub-release-lilypond-2.15.15-1 gub-release-lilypond-2.15.14-1 gub-release-lilypond-2.15.13-1 gub-release-lilypond-2.15.12-1 gub-release-lilypond-2.15.11-1 gub-release-lilypond-2.15.10-1 gub-release-lilypond-2.15.9-1 gub-release-lilypond-2.15.8-1 gub-release-lilypond-2.15.7-1 gub-release-lilypond-2.15.6-1 gub-release-lilypond-2.15.5-1 gub-release-lilypond-2.15.4-1 gub-release-lilypond-2.15.3-1 gub-release-lilypond-2.15.2-1 gub-release-lilypond-2.15.1-1 gub-release-lilypond-2.15.0-1 gub-release-lilypond-2.14.2-1 gub-release-lilypond-2.14.1-1 gub-release-lilypond-2.14.0-1 gub-release-lilypond-2.13.63-1 gub-release-lilypond-2.13.62-1 gub-release-lilypond-2.13.61-1 gub-release-lilypond-2.13.60-1 gub-release-lilypond-2.13.59-1 gub-release-lilypond-2.13.58-1 gub-release-lilypond-2.13.57-1 gub-release-lilypond-2.13.56-1 gub-release-lilypond-2.13.55-1 gub-release-lilypond-2.13.54-1 gub-release-lilypond-2.13.53-1 gub-release-lilypond-2.13.52-1 gub-release-lilypond-2.13.51-1 gub-release-lilypond-2.13.50-1 gub-release-lilypond-2.13.49-1 gub-release-lilypond-2.13.48-1 gub-release-lilypond-2.13.47-1 gub-release-lilypond-2.13.46-1 gub-release-lilypond-2.13.45-1 gub-release-lilypond-2.13.44-1 gub-release-lilypond-2.13.43-1 gub-release-lilypond-2.13.42-1 gub-release-lilypond-2.13.41-1 gub-release-lilypond-2.13.40-1 gub-release-lilypond-2.13.39-1 gub-release-lilypond-2.13.38-1 gub-release-lilypond-2.13.37-1 gub-release-lilypond-2.13.36-1 gub-release-lilypond-2.13.35-1 gub-release-lilypond-2.13.34-1 gub-release-lilypond-2.13.33-1 gub-release-lilypond-2.13.32-1 gub-release-lilypond-2.13.31-1 gub-release-lilypond-2.13.30-1 gub-release-lilypond-2.13.29-1 gub-release-lilypond-2.13.28-1 gub-release-lilypond-2.13.27-2 gub-release-lilypond-2.13.27-1 gub-release-lilypond-2.13.26-1 gub-release-lilypond-2.13.25-1 gub-release-lilypond-2.13.24-1 gub-release-lilypond-2.13.23-1 gub-release-lilypond-2.13.22-1 gub-release-lilypond-2.13.21-1 gub-release-lilypond-2.13.20-1 gub-release-lilypond-2.13.19-1 gub-release-lilypond-2.13.18-1 gub-release-lilypond-2.13.17-1 gub-release-lilypond-2.13.16-1 gub-release-lilypond-2.13.15-1 gub-release-lilypond-2.13.14-1 gub-release-lilypond-2.13.13-1 gub-release-lilypond-2.13.12-1 gub-release-lilypond-2.13.11-1 gub-release-lilypond-2.13.10-1 gub-release-lilypond-2.13.9-1 gub-release-lilypond-2.13.8-1 gub-release-lilypond-2.13.7-1 gub-release-lilypond-2.13.7-0 gub-release-lilypond-2.13.6-1 gub-release-lilypond-2.13.5-0 gub-release-lilypond-2.13.4-1
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
118 lines (112 sloc) 3.65 KB
from gub import build
from gub import context
from gub import misc
from gub import target
class Inkscape (target.AutoBuild):
source = 'svn:https://inkscape.svn.sourceforge.net/svnroot/inkscape&module=inkscape&branch=trunk&revision=22714'
branch = 'trunk'
dependencies = [
'cross/gcc-c++-runtime',
'tools::automake',
'tools::gettext',
'tools::intltool',
'tools::pkg-config',
'boost-devel',
'glibmm-devel',
'gtkmm-devel',
'gtk+-devel',
'gsl-devel',
'lcms-devel',
'poppler-devel',
'popt-devel',
'libgc-devel',
'libpng-devel',
'librsvg-devel',
'libsig++-devel',
'libxml2-devel',
'libxslt-devel',
]
configure_flags = (target.AutoBuild.configure_flags
+ ' --enable-lcms'
+ ' --enable-binreloc=yes'
)
configure_variables = (target.AutoBuild.configure_variables
+ ' CXXFLAGS=-fpermissive'
)
def __init__ (self, settings, source):
target.AutoBuild.__init__ (self, settings, source)
build.add_dict (self,
{'ACLOCAL_FLAGS': ' -I '.join ([''] + self.aclocal_path ()), })
source.is_tracking = misc.bind_method (lambda x: True, source)
def patch (self):
target.AutoBuild.patch (self)
self.file_sub ([('AC_PATH_PROG\(PKG_CONFIG,',
'AC_PATH_PROG(ARE_YOU_FREAKING_MAD__OVERRIDING_PKG_CONFIG,')],
'%(srcdir)s/configure.ac')
class Inkscape__mingw (Inkscape):
parallel_build_broken = True # linking breaks: two simultaneous
# inkscape.exe linking processes!?
patches = [
'inkscape-mingw.patch',
'inkscape-mingw-DATADIR.h.patch',
]
dependencies = [x for x in Inkscape.dependencies
if 'poppler' not in x]
configure_flags = (Inkscape.configure_flags
+ ' --disable-poppler-cairo')
class Inkscape__freebsd (Inkscape):
configure_variables = (Inkscape.configure_variables
+ ' CFLAGS=-pthread'
+ ' CXXFLAGS="-fpermissive -pthread"')
dependencies = Inkscape.dependencies + ['cross/gcc-runtime']
class Inkscape__freebsd__x86 (Inkscape__freebsd):
patches = [
'inkscape-isfinite.patch',
'inkscape-wstring.patch',
#'inkscape-round.patch',
'inkscape-round-2.patch',
]
def patch (self):
Inkscape__freebsd.patch (self)
self.file_sub ([
('wchar_t', 'char'),
('WCHAR_T', 'CHAR'),
],
'%(srcdir)s/src/util/ucompose.hpp')
def configure (self):
Inkscape__freebsd.configure (self)
self.file_sub ([
('(/[*] config.h. Generated)', r'''
#ifndef C99_ROUND
#define C99_ROUND
#ifdef __cplusplus
extern "C" {
#endif
double floor (double);
int sscanf(const char *str, const char *format, ...);
#ifdef __cplusplus
}
#endif
static inline double
round (double x)
{
return (floor (x - 0.5) + 1.0);
}
static inline long long
atoll (char const *s)
{
long long _l = 0LL;
sscanf(s, "%%lld", &_l);
return _l;
}
#define fmin(x,y) (x<y? x : y)
#define fmax(x,y) (x>y? x : y)
#define INFINITY (__builtin_inff())
#endif /* C99_ROUND */
\1'''),],
'%(builddir)s/config.h')
class Inkscape__darwin (Inkscape):
dependencies = [x for x in Inkscape.dependencies
if x.replace ('-devel', '') not in [
'libxml2', # Included in darwin-sdk, hmm?
]]