Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (45 sloc) 1.962 kb
from gub import misc
from gub import tools
class Netpbm__tools (tools.AutoBuild):
# source='svn:https://svn.sourceforge.net/svnroot/netpbm/stable&revision=172'
source='http://lilypond.org/download/gub-sources/netpbm-patched/netpbm-patched-10.35.tar.bz2'
patches = ['netpbm-10.35-glibc-2.10.1-name-conflict.patch']
parallel_build_broken = True
dependencies = ['flex', 'libjpeg', 'libpng', 'libtiff', 'zlib'] #libxml2? libx11-dev
def configure (self):
self.shadow ()
self.dump ('\n'*3 + 'static\n' + '\n'*18, '%(builddir)s/answers')
self.system ('cd %(builddir)s && sh %(srcdir)s/configure < answers')
'''
libpbm3.c:116: note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts
libpbm3.c:116: fout: incompatible type for argument 1 of __builtin_ia32_pcmpeqb
'''
make_flags = misc.join_lines ('''
CC=gcc
CFLAGS='-O2 -fPIC -flax-vector-conversions'
LDFLAGS='%(rpath)s -L%(builddir)s/pbm -L%(builddir)s/pgm -L%(builddir)s/pnm -L%(builddir)s/ppm'
LADD='-lm -lz'
LINUXSVGALIB=NONE
XML2LD=NONE
XML2_LIBS=NONE
XML2_CFLAGS=NONE
X11LIB=NONE
''')
def install (self):
# Great. netpbm's install will not create any parent directories
self.system ('mkdir -p %(install_prefix)s')
# but demands that the toplevel install directory does not yet exist.
# It's a feature! :-)
self.system ('rmdir %(install_prefix)s')
self.system ('cd %(builddir)s && make package pkgdir=%(install_prefix)s %(make_flags)s')
# Huh, we strip stuff in installer.py, no? Hmm.
self.system ('''rm -rf %(install_prefix)s/misc
rm -rf %(install_prefix)s/README
rm -rf %(install_prefix)s/VERSION
rm -rf %(install_prefix)s/link
rm -rf %(install_prefix)s/misc
rm -rf %(install_prefix)s/man
rm -rf %(install_prefix)s/pkginfo
rm -rf %(install_prefix)s/config_template
''')
license_files = '%(srcdir)s/README'
Jump to Line
Something went wrong with that request. Please try again.