def build(): autotools.make( 'CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC"' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS())) autotools.make( 'CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" -f Makefile-libbz2_so' % get.CFLAGS())
def build(): shelltools.export("CC", get.CC()) shelltools.export("CXX", get.CXX()) shelltools.export("RANLIB", get.RANLIB()) shelltools.export("AR", get.AR()) autotools.make('OPT="%s"' % get.CFLAGS())
def setup(): shelltools.export("CC", get.CC()) shelltools.export("CXX", get.CXX()) shelltools.export("RANLIB", get.RANLIB()) shelltools.export("AR", get.AR()) # enable-debug is bogus, it should stay here options = "--with-x \ --enable-opengl-player \ --disable-gtk-player \ --enable-mmx \ --disable-assertions \ --disable-static \ --enable-debug" if get.buildTYPE() == "emul32": options += " --prefix=/emul32 \ --libdir=/usr/lib32 \ --bindir=/emul32/bin \ --includedir=/emul32/include \ --mandir=/emul32/man \ --disable-sdltest \ --disable-gtktest" shelltools.export("CC", "%s -m32" % get.CC()) shelltools.export("CXX", "%s -m32" % get.CXX()) shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) autotools.configure(options)
def build(): shelltools.cd("PORT/linux") shelltools.export("CC", get.CC()) shelltools.export("AR", get.AR()) shelltools.export("RANLIB", get.RANLIB()) autotools.make("OORG=\"%s\" prefix=/usr" % get.CFLAGS())
def setup(): shelltools.export("CC", get.CC()) shelltools.export("CXX", get.CXX()) shelltools.export("RANLIB", get.RANLIB()) shelltools.export("AR", get.AR()) autotools.configure("--with-x \ --enable-opengl-player \ --disable-gtk-player \ --enable-mmx \ --enable-debug")
def setup(): shelltools.export("CC", get.CC()) shelltools.export("CXX", get.CXX()) shelltools.export("RANLIB", get.RANLIB()) shelltools.export("AR", get.AR()) #Â enable-debug is bogus, it should stay here autotools.configure("--with-x \ --enable-opengl-player \ --disable-gtk-player \ --enable-mmx \ --disable-assertions \ --disable-static \ --enable-debug")
def setup(): shelltools.export("CC", get.CC()) shelltools.export("CXX", get.CXX()) shelltools.export("RANLIB", get.RANLIB()) shelltools.export("AR", get.AR()) shelltools.move("configure.guess", "config.guess") shelltools.move("configure.sub", "config.sub") shelltools.export("CFLAGS", "%s -I%s/interface" % (get.CFLAGS(), get.curDIR())) shelltools.export("CXXLAGS", "%s -I%s/interface" % (get.CXXFLAGS(), get.curDIR())) autotools.autoconf() libtools.gnuconfig_update() autotools.configure()
def setup(): shelltools.export("CC", get.CC()) shelltools.export("CXX", get.CXX()) shelltools.export("RANLIB", get.RANLIB()) shelltools.export("AR", get.AR()) # enable-debug is bogus, it should stay here options = "--with-x \ --enable-opengl-player \ --disable-gtk-player \ --enable-mmx \ --disable-assertions \ --disable-static \ --enable-debug" if get.buildTYPE() == "emul32": options += " --prefix=/emul32 \ --libdir=/usr/lib32 \ --bindir=/emul32/bin \ --includedir=/emul32/include \ --mandir=/emul32/man \ --disable-sdltest \ --disable-gtktest" shelltools.export("CC", "%s -m32" % get.CC()) shelltools.export("CXX", "%s -m32" % get.CXX()) shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS()) shelltools.system("rm -rf acinclude/lt*.m4 acinclude/libtool.m4") neededfilelist = ["NEWS", "ChangeLog", "AUTHORS"] for i in neededfilelist: shelltools.touch(i) autotools.autoreconf("-fi -Iacinclude") autotools.configure(options)
def build(): autotools.make("CC=%s AR=%s RANLIB=%s" % (get.CC(), get.AR(), get.RANLIB()))
def build(): autotools.make("-j2 CC=%s AR=%s RANLIB=%s" % (get.CC(), get.AR(), get.RANLIB())) autotools.make("-f Makefile-libbz2_so")
def setup(): shelltools.system("echo -e '\033[0;36mBuilding Bzip2\033[0m' ") shelltools.makedirs("%s/temp/lib" %get.workDIR()) shelltools.cd("bzip2-1.0.8") autotools.make('CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" libbz2.a' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS())) shelltools.system("cp libbz2.a %s/temp/lib/libbz2.a" % get.workDIR()) shelltools.cd("..") pisitools.cflags.add("-fwrapv") # no rpath pisitools.dosed("configure.ac", "-rpath \$\(LIBDIR\) ") pisitools.dosed("Lib/cgi.py", r"/usr/local/bin/", r"/usr/bin/") pisitools.dosed("setup.py", "SQLITE_OMIT_LOAD_EXTENSION", deleteLine=True) pisitools.dosed("setup.py","ndbm_libs =.*","ndbm_libs = ['gdbm', 'gdbm_compat']") for dir in ["expat","zlib","_ctypes/libffi_arm_wince","_ctypes/libffi_msvc", "_ctypes/libffi_osx","_ctypes/libffi","_ctypes/darwin"]: shelltools.unlinkDir("Modules/%s" % dir) shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR()) shelltools.export("LDFLAGS", "-L%s/temp/lib -lbz2 -lpthread -ldl" %get.workDIR()) autotools.autoreconf("-vif") # disable bsddb pisitools.dosed("setup.py", "^(disabled_module_list = \[)\]", r"\1'_bsddb', 'dbm']") # no rpath pisitools.dosed("Lib/distutils/command/build_ext.py", "self.rpath.append\(user_lib\)", "pass") autotools.configure("--with-fpectl \ --enable-shared \ --enable-ipv6 \ --with-threads \ --with-libc='' \ --enable-unicode=ucs4 \ --with-wctype-functions \ --with-system-expat \ --with-system-ffi \ --with-dbmliborder=gdbm \ ")
def setup(): shelltools.system("echo -e '\033[0;36mBuilding Bzip2\033[0m' ") shelltools.makedirs("%s/temp/lib" %get.workDIR()) shelltools.cd("bzip2-1.0.8") autotools.make('CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" libbz2.a' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS())) shelltools.system("cp libbz2.a %s/temp/lib/libbz2.a" % get.workDIR()) shelltools.cd("..") pisitools.flags.add("-fwrapv") pisitools.dosed("Lib/cgi.py","^#.* /usr/local/bin/python","#!/usr/bin/python") shelltools.unlinkDir("Modules/expat") #shelltools.unlinkDir("Modules/zlib") shelltools.unlinkDir("Modules/_ctypes/darwin") #shelltools.unlinkDir("Modules/_ctypes/libffi") #shelltools.unlinkDir("Modules/_ctypes/libffi_msvc") shelltools.unlinkDir("Modules/_ctypes/libffi_osx") #shelltools.unlinkDir("Modules/_decimal/libmpdec") shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR()) shelltools.export("LDFLAGS", "-L%s/temp/lib -lbz2 -lpthread -ldl" %get.workDIR()) autotools.rawConfigure("\ --prefix=/usr \ --enable-shared \ --with-threads \ --with-computed-gotos \ --enable-ipv6 \ --with-system-expat \ --with-dbmliborder=gdbm:ndbm \ --with-system-ffi \ --with-system-libmpdec \ --enable-loadable-sqlite-extensions \ --without-ensurepip")
def build(): autotools.make('CC="%s" AR="%s" RANLIB="%s" LD="%s" CFLAGS="%s"' % (get.CC(), get.AR(), get.RANLIB(), get.LD(), get.CFLAGS()))