from gub import target class Pixman_new (target.AutoBuild): source = 'https://www.cairographics.org/releases/pixman-0.40.0.tar.gz' dependencies = ['libtool'] dependencies = ['tools::libtool', 'libpng-devel' ] configure_flags = (target.AutoBuild.configure_flags ) def get_conflict_dict (self): return {'': ['pixman'], 'doc': ['pixman-doc'], 'devel': ['pixman-devel']} class Pixman_new__linux (Pixman_new): configure_flags = (Pixman_new.configure_flags + 'LDFLAGS="-dy"' ) # LDFLAGS: see e.g. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39888 class Pixman_new__darwin__x86 (Pixman_new): configure_flags = (Pixman_new.configure_flags + 'LDFLAGS=-lgcc_eh' ) class Pixman_new__mingw (Pixman_new): dependencies = (Pixman_new.dependencies # + ['mingw-w64-runtime'] ) configure_flags = (Pixman_new.configure_flags )