def configure(parameters = ''): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' # Set clang as compiler if supported if get.canClang(): export ("CC", "clang") export ("CXX", "clang++") if can_access_file('configure'): gnuconfig_update() prefix = get.emul32prefixDIR() if get.buildTYPE() == "emul32" else get.defaultprefixDIR() args = './configure \ --prefix=/%s \ --build=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ --libexecdir=/%s \ %s' % (prefix, \ get.HOST(), get.manDIR(), \ get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters) if get.buildTYPE() == "emul32": args += " --libdir=/usr/lib32" if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def install(): shelltools.cd(NCURSESW) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) LIB = "/usr/lib32" if get.buildTYPE() == "_emul32" else "/usr/lib" print LIB for lib in ["ncurses", "form", "panel", "menu"]: shelltools.echo("lib%s.so" % lib, "INPUT(-l%sw)" % lib) pisitools.dolib_so("lib%s.so" % lib, destinationDirectory = LIB) pisitools.dosym("lib%sw.a" % lib, "%s/lib%s.a" % (LIB, lib)) pisitools.dosym("libncurses++w.a", "%s/libncurses++.a" % LIB) for lib in ["ncurses", "ncurses++", "form", "panel", "menu"]: pisitools.dosym("%sw.pc" % lib, "%s/pkgconfig/%s.pc" % (LIB, lib)) shelltools.echo("libcursesw.so", "INPUT(-lncursesw)") pisitools.dolib_so("libcursesw.so", destinationDirectory = LIB) pisitools.dosym("libncurses.so", "%s/libcurses.so" % LIB) pisitools.dosym("libncursesw.a", "%s/libcursesw.a" % LIB) pisitools.dosym("libncurses.a", "%s/libcurses.a" % LIB) shelltools.cd("../%s" % NCURSES) for lib in ["ncurses", "form", "panel", "menu"]: pisitools.dolib_so("lib/lib%s.so.%s" % (lib, get.srcVERSION()), destinationDirectory = LIB) pisitools.dosym("lib%s.so.%s" % (lib, get.srcVERSION()), "%s/lib%s.so.5" % (LIB, lib)) if get.buildTYPE() == "_emul32": pisitools.removeDir("/_emul32") return shelltools.cd(WORKDIR) shelltools.system("grep -B 100 '$Id' README > license.txt") pisitools.dodoc("ANNOUNCE", "NEWS", "README*", "TO-DO", "license.txt")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE() == "emul32": libbasedir = "lib32" else: libbasedir = "lib" # Handle static libs in /usr/%libdir/static pisitools.dodir("/usr/%s/static" % libbasedir) for i in shelltools.ls("%s/usr/%s/*.a" % (get.installDIR(), libbasedir)): pisitools.domove("/usr/%s/%s" % (libbasedir, shelltools.baseName(i)), "/usr/%s/static/" % libbasedir) linknonwide("/usr/%s/static" % libbasedir) linknonwide("/usr/%s" % libbasedir) if get.buildTYPE() == "emul32": pisitools.removeDir("/emul32") return # We need the basic terminfo files in /etc terminfo = ["ansi", "console", "dumb", "linux", "rxvt", "screen", "sun", \ "vt52", "vt100", "vt102", "vt200", "vt220", "xterm", "xterm-color", "xterm-xfree86"] for f in terminfo: termfile = f[0] + "/" + f if shelltools.can_access_file("/usr/share/terminfo/%s" % termfile): pisitools.dodir("/etc/terminfo/%s" % f[0]) pisitools.domove("/usr/share/terminfo/%s" % termfile, "/etc/terminfo/%s" % f[0]) pisitools.dosym("../../../../etc/terminfo/%s/%s" % (f[0], f), "/usr/share/terminfo/%s/%s" % (f[0], f)) pisitools.dodoc("ANNOUNCE", "NEWS", "README*", "TO-DO")
def install(): if get.buildTYPE() != "emul32": pisitools.dolib_so("libmikmod/.libs/libmikmod.so.2.0.4") pisitools.dosym("/usr/lib/libmikmod.so.2.0.4", "/usr/lib/libmikmod.so.2") if get.buildTYPE() == "emul32": pisitools.dolib_so("libmikmod/.libs/libmikmod.so.2.0.4", "/usr/lib32") pisitools.dosym("/usr/lib32/libmikmod.so.2.0.4", "/usr/lib32/libmikmod.so.2")
def setup(): if get.buildTYPE() != "emul32": if not shelltools.can_access_directory("tools/clang"): shelltools.system("tar xf ../cfe-%s.src.tar.xz -C tools" % get.srcVERSION()) shelltools.move("tools/cfe-%s.src" % get.srcVERSION(), "tools/clang") shelltools.system("tar xf ../clang-tools-extra-%s.src.tar.xz -C tools" % get.srcVERSION()) shelltools.move("tools/clang-tools-extra-*", "tools/clang/extra") shelltools.system("tar xf ../lldb-%s.src.tar.xz -C tools" % get.srcVERSION()) shelltools.move("tools/lldb-*", "tools/lldb") if not shelltools.can_access_directory("projects/compiler-rt"): shelltools.system("tar xf ../compiler-rt-%s.src.tar.xz -C projects" % get.srcVERSION()) shelltools.move("projects/compiler-rt-%s.src" % get.srcVERSION(), "projects/compiler-rt") shelltools.export("CC", "gcc") shelltools.export("CXX", "g++") if get.buildTYPE() == "emul32": shelltools.export("CC", "gcc -m32") shelltools.export("CXX", "g++ -m32") shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig") shelltools.makedirs("build") shelltools.cd("build") if get.buildTYPE() != "emul32": options = "-DCMAKE_C_FLAGS:STRING=-m64 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_CXX_FLAGS:STRING=-m64 \ -DLLVM_TARGET_ARCH:STRING=x86_64 \ -DLLVM_DEFAULT_TARGET_TRIPLE=%s " % get.HOST() if get.buildTYPE() == "emul32": options = " -DCMAKE_C_FLAGS:STRING=-m32 \ -DCMAKE_INSTALL_PREFIX=/emul32 \ -DLLVM_TARGET_ARCH:STRING=i686 \ -DLLVM_LIBDIR_SUFFIX=32 \ -DLLVM_DEFAULT_TARGET_TRIPLE='i686-pc-linux-gnu' \ -DCMAKE_CXX_FLAGS:STRING=-m32" cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \ %s \ -DLLVM_ENABLE_FFI=ON \ -DLLVM_BUILD_DOCS=OFF \ -DBUILD_SHARED_LIBS=ON \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_INCLUDEDIR=/usr/include \ -DLLVM_ENABLE_ASSERTIONS=OFF \ -DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include \ -DENABLE_SHARED=ON" % options, sourceDir=".." )
def install(): if get.buildTYPE() != "emul32": autotools.rawInstall("DESTDIR=%s USRLIBDIR=/usr/lib" % get.installDIR()) if get.buildTYPE() == "emul32": autotools.rawInstall("DESTDIR=%s USRLIBDIR=/usr/lib32 BINDIR=/emul32" % get.installDIR()) shelltools.chmod("%s/usr/include/audio/*" % get.installDIR(), 0644) pisitools.dodoc("FAQ", "HISTORY", "README", "RELEASE", "TODO")
def setup(): if get.buildTYPE()=="emul32": pisitools.dosed("pango/modules.c", "(pango\.modules)", r"\1-32") autotools.autoreconf("-fiv") autotools.configure("--disable-static \ --sysconfdir=/etc \ --with-included-modules=basic-fc \ --%sable-introspection" % ("dis" if get.buildTYPE()=="emul32" else "en")) pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def setup(): options = "--disable-static" if get.buildTYPE() == "emul32": options += " --libdir=/usr/lib32" shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) autotools.configure(options) if get.buildTYPE() == "emul32": pisitools.dosed("Makefile","/usr/lib32","${exec_prefix}/lib32") pisitools.dosed("src/Makefile","/usr/lib32","${exec_prefix}/lib32")
def install(): if get.buildTYPE() != "emul32": pisitools.dolib_so("libcrypto.so.0.9.8") pisitools.dolib_so("libssl.so.0.9.8") if get.buildTYPE() == "emul32": pisitools.dolib_so("libcrypto.so.0.9.8", "/usr/lib32") pisitools.dolib_so("libssl.so.0.9.8", "/usr/lib32") pisitools.dohtml("doc/*") pisitools.dodoc("ACKNOWLEDGMENTS", "CHANGES*", "FAQ", "LICENSE", "NEWS", "README", "doc/*.txt")
def install(): autotools.rawInstall('DESTDIR=%s -j1 MWMRCDIR="/etc/X11/mwm"' % get.installDIR()) # these are just demos if not get.buildTYPE() == "emul32": pisitools.removeDir("/usr/share/Xm") pisitools.dodoc("ChangeLog", "README*", "BUGREPORT", "RELEASE", "RELNOTES", "TODO") if get.buildTYPE() == "emul32": pisitools.removeDir("/emul32")
def setup(): filteredCFLAGS = get.CFLAGS().replace("-g3", "-g") filteredCXXFLAGS = get.CXXFLAGS().replace("-g3", "-g") vars = {"PISILINUX_CC" : get.CC() + (" -m32" if get.buildTYPE() == "emul32" else ""), "PISILINUX_CXX": get.CXX() + (" -m32" if get.buildTYPE() == "emul32" else ""), "PISILINUX_CFLAGS": filteredCFLAGS + (" -m32" if get.buildTYPE() == "emul32" else ""), "PISILINUX_LDFLAGS": get.LDFLAGS() + (" -m32" if get.buildTYPE() == "emul32" else "")} for k, v in vars.items(): pisitools.dosed("mkspecs/common/g++-base.conf", k, v) #pisitools.dosed("mkspecs/common/g++-unix.conf", k, v) shelltools.export("CFLAGS", filteredCFLAGS) shelltools.export("CXXFLAGS", filteredCXXFLAGS) #check that dosed commands without releated patches pisitools.dosed("mkspecs/common/gcc-base-unix.conf", "\-Wl,\-rpath,") pisitools.dosed("mkspecs/common/gcc-base.conf", "\-O2", filteredCFLAGS) pisitools.dosed("mkspecs/common/gcc-base.conf", "^(QMAKE_LFLAGS\s+\+=)", r"\1 %s" % get.LDFLAGS()) shelltools.system('sed -i "s|-O2|${CXXFLAGS}|" mkspecs/common/{g++,gcc}-base.conf') shelltools.system('sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" mkspecs/common/gcc-base-unix.conf') shelltools.system('sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" mkspecs/common/gcc-base.conf') pisitools.dosed("mkspecs/linux-g++-64/qmake.conf", "-m64", "-m32") shelltools.export("LDFLAGS", "-m32 %s" % get.LDFLAGS()) autotools.rawConfigure("-v \ -confirm-license \ -opensource \ -no-pch \ -prefix /usr \ -datadir /usr/share/qt5 \ -libdir /usr/lib32/ \ -plugindir /usr/lib32/qt5/plugins \ -importdir /usr/lib32/qt5/imports \ -qt-zlib \ -qt-libjpeg \ -qt-libpng \ -qt-harfbuzz \ -system-sqlite \ -nomake tests \ -openssl-linked \ -nomake examples \ -nomake tools \ -optimized-qmake \ -no-rpath \ -no-strip \ -dbus-linked \ -no-openvg \ -no-sse2 \ -reduce-relocations \ -no-warnings-are-errors \ -no-use-gold-linker")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("ChangeLog*", "LICENSE", "README*") # Remove duplicated header files if get.buildTYPE() == "emul32": pisitools.removeDir("/usr/lib32/%s" % get.srcDIR()) # Fix emul32 includedir if get.buildTYPE() == "emul32": pisitools.dosym("/usr/lib/%s/include" % get.srcDIR(), "/usr/lib32/%s/include" % get.srcDIR())
def install(): shelltools.touch("%s/etc/ld.so.conf" % get.installDIR()) pisitools.dodir("/etc/ld.so.conf.d") shelltools.cd("build") autotools.rawInstall("install_root=%s" % get.installDIR()) if get.buildTYPE() != "emul32": #Install locales once. autotools.rawInstall("install_root=%s localedata/install-locales" % get.installDIR()) # Remove our options section from crt stuff removePisiLinuxSection("%s/usr/lib/" % get.installDIR()) if get.buildTYPE() == "emul32": pisitools.dosym("/lib32/ld-linux.so.2", "/lib/ld-linux.so.2") shelltools.echo("%s/etc/ld.so.conf.d/60-glibc-32bit.conf" % get.installDIR(), ldconf32bit) # Remove our options section from crt stuff removePisiLinuxSection("%s/usr/lib32/" % get.installDIR()) pisitools.removeDir("/tmp32") # We'll take care of the cache ourselves if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()): pisitools.remove("/etc/ld.so.cache") if shelltools.isFile("%s/etc/ld.so.conf" % get.installDIR()): pisitools.remove("/etc/ld.so.conf") # Prevent overwriting of the /etc/localtime symlink if shelltools.isFile("%s/etc/localtime" % get.installDIR()): pisitools.remove("/etc/localtime") # Nscd needs this to work pisitools.dodir("/var/run/nscd") pisitools.dodir("/var/db/nscd") # remove zoneinfo files since they are coming from timezone packages # we disable timezone build with a patch, keeping these lines for easier maintenance if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()): pisitools.removeDir("/usr/share/zoneinfo") #while bootstrapping whole system zic should not be removed. timezone package does not build without it. # 2013 #for i in ["zdump","zic"]: #if shelltools.isFile("%s/usr/sbin/%s" % (get.installDIR(), i)): #pisitools.remove("/usr/sbin/%s" % i) shelltools.cd("..") pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS", "PROJECTS", "README*", "LICENSES")
def install(): set_variables() pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS", "PROJECTS", "README*", "LICENSES") shelltools.cd("build") libdir = "lib" if get.buildTYPE() != "emul32" else "lib32" installdir = get.installDIR() if get.buildTYPE() != "emul32" else get.installDIR() + "/emul32" autotools.rawInstall("install_root=%s" % installdir) if get.buildTYPE() != "emul32": autotools.rawInstall("install_root=%s localedata/install-locales" % installdir) pisitools.dosym("libbsd-compat.a", "/usr/%s/libbsd.a" % libdir) if get.buildTYPE() == "emul32": pisitools.dosym("../lib32/ld-linux.so.2", "/lib/ld-linux.so.2") removePardusSection("%s/usr/%s/" % (installdir, libdir)) # It previously has 0755 perms which was killing things shelltools.chmod("%s/usr/%s/misc/pt_chown" % (installdir, libdir), 04711) if shelltools.isFile("%s/etc/ld.so.cache" % installdir): pisitools.remove("/etc/ld.so.cache") # Prevent overwriting of the /etc/localtime symlink if shelltools.isFile("%s/etc/localtime" % installdir): pisitools.remove("/etc/localtime") # Nscd needs this to work pisitools.dodir("/var/run/nscd") pisitools.dodir("/var/db/nscd") # remove zoneinfo files since they are coming from timezone packages # we disable timezone build with a patch, keeping these lines for easier maintenance if shelltools.isDirectory("%s/usr/share/zoneinfo" % installdir): pisitools.removeDir("/usr/share/zoneinfo") for i in ["zdump", "zic"]: if shelltools.isFile("%s/usr/sbin/%s" % (installdir, i)): shelltools.unlink("%s/usr/sbin/%s" % (installdir, i)) if get.buildTYPE() == "emul32": shelltools.move("%s/lib32" % installdir, "%s" % get.installDIR()) shelltools.move("%s/usr/lib32/*" % installdir, "%s/usr/lib32" % get.installDIR()) shelltools.move("%s/usr/include/gnu/stubs-32.h" % installdir, "%s/usr/include/" % get.installDIR()) pisitools.dobin("%s/usr/bin/lddlibc4" % installdir) pisitools.dosym("/usr/lib/locale", "/usr/lib32/locale") pisitools.removeDir("emul32")
def install(): if get.buildTYPE() == "emul32": # SERVERBIN is hardcoded to /usr/lib/cups, thus it overwrites 64 bit libraries autotools.rawInstall( "BUILDROOT=%s SERVERBIN=%s/usr/serverbin32 install-libs" % (get.installDIR(), get.installDIR()) ) pisitools.domove("/usr/bin32/cups-config", "/usr/bin", "cups-config-32bit") pisitools.removeDir("/usr/bin32") pisitools.removeDir("/usr/sbin32") pisitools.removeDir("/usr/serverbin32") # remove files now part of cups-filters # pisitools.remove("/usr/share/cups/data/testprint") pisitools.removeDir("/usr/share/cups/banners") pisitools.dodir("/usr/share/cups/banners") return autotools.rawInstall("BUILDROOT=%s install-headers install-libs install-data install-exec" % get.installDIR()) shelltools.chmod("%s/run/cups/certs" % get.installDIR(), 0755) pisitools.dodir("/usr/share/cups/profiles") # Serial backend needs to run as root # shelltools.chmod("%s/usr/lib/cups/backend/serial" % get.installDIR(), 0700) pisitools.dodoc("CHANGES.txt", "CREDITS.txt", "LICENSE.txt", "README.txt")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README") if get.buildTYPE() == "emul32": pisitools.removeDir("/usr/lib32/X11")
def install(): if get.buildTYPE() == "emul32": autotools.rawInstall("-C src \ lib_LTLIBRARIES=\"%s\" \ DESTDIR=%s" % (emul32_libs, get.installDIR()), "install-libLTLIBRARIES") autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-pkgconfigDATA") return autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # Disable autospawn by default shelltools.system("sed -e '/autospawn/iautospawn=no' -i '%s/etc/pulse/client.conf'" % get.installDIR()) # Speed up pulseaudio shutdown # Lower resample quality, saves CPU shelltools.system("sed -e '/exit-idle-time/iexit-idle-time=0' \ -e '/resample-method/iresample-method=speex-float-0' \ -i '%s/etc/pulse/daemon.conf'" % get.installDIR()) # Needed for service.py pisitools.dodir("/run/pulse") pisitools.dodir("/var/lib/pulse") # HAL is no longer supported by default pisitools.removeDir("/etc/dbus-1") pisitools.dodoc("README", "LICENSE", "GPL", "LGPL") pisitools.dohtml("doxygen/html/*")
def setup(): shelltools.export("AUTOPOINT", "true") autotools.autoreconf("-vfi") options = '--with-package-name="GStreamer for PisiLinux" \ --with-package-origin="http://www.pisilinux.org" \ --enable-nls \ --disable-dependency-tracking \ --disable-examples \ --enable-introspection \ --disable-static \ --disable-rpath \ --disable-valgrind \ --disable-gtk-doc' if get.buildTYPE() == "emul32": options += " --bindir=/usr/bin32 \ --libexecdir=/usr/libexec32 \ --disable-introspection" shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") autotools.configure(options) pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def setup(): # For 32bit machines: # * It get compiled with the normal options below. The emul32 are ignored # on 32bit machines. Nothing is added to options variable. # # For 64bit machines: # * First we compile for 64bit with the option --enable-win64. These build # files are stored in the normal "work" dir # * In the second run (for emul32 buildType), the 32bit part is compiled # with the spesific libdir and the --with-wine64 options that is pointing # to the 64bit files that was compiled in the first step (files in the work) # # More info can be obtained here: http://wiki.winehq.org/Wine64 autotools.autoreconf("-vif") options = "--without-capi \ --with-curses \ --without-esd \ --with-opengl \ --with-pulse \ --with-x" if get.buildTYPE() == "emul32": options += ( "--libdir=/usr/lib32 \ --with-wine64=%s/work/%s" % (get.pkgDIR(), get.srcDIR()) ) elif get.ARCH() == "x86_64": options += " --enable-win64" autotools.configure(options)
def setup(): shelltools.makedirs(NCURSES) shelltools.makedirs(NCURSESW) shelltools.cd(NCURSESW) global CONFIGPARAMS if get.buildTYPE() == "_emul32": pisitools.flags.add("-m32") pisitools.ldflags.add("-m32") CONFIGPARAMS += " --prefix=/_emul32 \ --libdir=/usr/lib32 \ --libexecdir=/_emul32/lib \ --bindir=/_emul32/bin \ --sbindir=/_emul32/sbin \ --mandir=/_emul32/share/man" else: CONFIGPARAMS += " --prefix=/usr \ --libdir=/usr/lib \ --libexecdir=/usr/lib \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --mandir=/usr/share/man" shelltools.system("%s/configure --enable-widec --enable-pc-files %s" % (WORKDIR, CONFIGPARAMS))
def setup(): options = "--with-gdktarget=x11 \ --enable-xinerama \ --with-xinput=yes \ --enable-xkb \ --enable-demos \ --enable-shm \ --enable-silent-rules \ --enable-introspection \ --enable-gtk2-dependency \ --disable-papi" shelltools.export("CFLAGS", get.CFLAGS().replace("-fomit-frame-pointer", "")) if get.buildTYPE() == "_emul32": options += " --libdir=/usr/lib32 \ --bindir=/_emul32/bin \ --sbindir=/_emul32/sbin \ --disable-cups" shelltools.export("CC", "%s -m32" % get.CC()) shelltools.export("CXX", "%s -m32" % get.CC()) shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS().replace("-fomit-frame-pointer", "")) shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) # shelltools.system("./autogen.sh") autotools.configure(options) pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE() == "emul32": return pisitools.dodoc("COPYING", "TODO", "README")
def build(): shelltools.echo("Makefile.extra", "BUILT_SOURCES: $(BUILT_SOURCES)") autotools.make("-f Makefile -f Makefile.extra") targets = " systemd-udevd \ udevadm \ libudev.la \ libsystemd-daemon.la \ ata_id \ cdrom_id \ collect \ scsi_id \ v4l_id \ accelerometer \ mtd_probe \ libgudev-1.0.la" targets += "\ man/sd_is_fifo.3 \ man/sd_notify.3 \ man/sd_listen_fds.3 \ man/sd-daemon.3 \ man/udev.7 \ man/udevadm.8 \ man/systemd-udevd.8 \ " if not get.buildTYPE() == "emul32" else "" autotools.make(targets) autotools.make("-C docs/libudev") autotools.make("-C docs/gudev")
def setup(): autotools.autoreconf("-fvi") options = "--disable-static \ --with-system-data-files \ --bindir=%s" % (demos_dir_emul32 if get.buildTYPE() == "emul32" else demos_dir) autotools.configure(options)
def setup(): shelltools.system("install=wine.keyring") # For 32bit machines: # * It get compiled with the normal options below. The emul32 are ignored # on 32bit machines. Nothing is added to options variable. # # For 64bit machines: # * First we compile for 64bit with the option --enable-win64. These build # files are stored in the normal "work" dir # * In the second run (for emul32 buildType), the 32bit part is compiled # with the spesific libdir and the --with-wine64 options that is pointing # to the 64bit files that was compiled in the first step (files in the work) # # More info can be obtained here: http://wiki.winehq.org/Wine64 # shelltools.export("CPPFLAGS", "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0") autotools.autoreconf("-vif") options = "--without-capi \ --with-curses \ --without-hal \ --without-gstreamer \ --with-dbus \ --with-opengl \ --with-alsa \ --with-x" if get.buildTYPE() == "emul32": options += " --with-wine64=%s/work/wine-%s" % (get.pkgDIR(), get.srcVERSION()) elif get.ARCH() == "x86_64": options += " --enable-win64" autotools.configure(options)
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("AUTHORS", "ChangeLog", "FAQ", "NEWS", "README", "THANKS", "TODO") if get.buildTYPE() == "emul32": pisitools.removeDir("/emul32")
def setup(): shelltools.export("AUTOPOINT", "true") autotools.autoreconf("-vfi") #shelltools.system("./autogen.sh --disable-gtk-doc --disable-docbook") options = '--with-package-name="GStreamer package for PisiLinux" \ --with-package-origin="http://www.pisilinux.org" \ --enable-nls \ --disable-dependency-tracking \ --disable-examples \ --disable-tests \ --disable-failing-tests \ --enable-introspection \ --disable-static \ --disable-rpath \ --disable-valgrind \ --disable-gtk-doc' if get.buildTYPE() == "emul32": options += " --bindir=/usr/bin32 \ --libexecdir=/usr/libexec32 \ --disable-introspection" shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") autotools.configure(options)
def setup(): shelltools.export("CFLAGS", "%s -fPIC -O3" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -fPIC -O3" % get.CXXFLAGS()) # for libtool version matching #shelltools.copy("/usr/share/aclocal/ltversion.m4", "acinclude/") shelltools.system("./autogen.sh") #libtools.libtoolize("--force --copy") options = "--enable-sdl-dlopen \ --disable-arts \ --disable-esd \ --disable-nas \ --enable-pulseaudio-shared \ --enable-alsa \ --disable-rpath" if get.buildTYPE() == "emul32": options += " --libdir=/usr/lib32 \ --bindir=/emul32/bin \ --mandir=/emul32/man \ " shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") shelltools.export("CFLAGS", "%s -fPIC -O3 -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -fPIC -O3 -m32" % get.CXXFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) autotools.configure(options)
def install(): autotools.rawInstall("INSTALL_PREFIX=%s MANDIR=/usr/share/man" % get.installDIR()) # Rename conflicting manpages pisitools.rename("/usr/share/man/man1/passwd.1", "ssl-passwd.1") pisitools.rename("/usr/share/man/man3/rand.3", "ssl-rand.3") pisitools.rename("/usr/share/man/man3/err.3", "ssl-err.3") if get.buildTYPE() == "_emul32": from distutils.dir_util import copy_tree copy_tree("%s/_emul32/lib32/" % get.installDIR(), "%s/usr/lib32" % get.installDIR()) pisitools.removeDir("/_emul32") pisitools.remove("/usr/lib32/*.a") path = "%s/usr/lib32/pkgconfig" % get.installDIR() for f in shelltools.ls(path): pisitools.dosed("%s/%s" % (path, f), "^(prefix=\/)_emul32", r"\1usr") return # Move engines to /usr/lib/openssl/engines pisitools.dodir("/usr/lib/openssl") pisitools.domove("/usr/lib/engines", "/usr/lib/openssl") # Certificate stuff pisitools.dobin("tools/c_rehash") pisitools.dosym("/etc/pki/tls/certs/ca-bundle.crt","/etc/pki/tls/cert.pem") # Create CA dirs for cadir in ["CA", "CA/private", "CA/certs", "CA/crl", "CA/newcerts"]: pisitools.dodir("/etc/pki/%s" % cadir) # No static libs pisitools.remove("/usr/lib/*.a") pisitools.dohtml("doc/*") pisitools.dodoc("CHANGES*", "FAQ", "LICENSE", "NEWS", "README", "doc/*.txt")
def setup(): options = "--disable-dependency-tracking \ --disable-static \ --disable-rpath \ --disable-jack \ --disable-solaris \ --disable-adrian-aec \ --enable-largefile \ --with-system-user=pulse \ --with-system-group=pulse \ --with-access-group=pulse-access \ --with-database=tdb" if get.buildTYPE() == "emul32": options += " --libdir=/usr/lib32 \ --libexecdir=/usr/lib32 \ --disable-gconf \ --disable-gtk2 \ --disable-jack \ --disable-bluez \ --disable-asyncns \ --disable-lirc \ --disable-x11 \ --disable-oss-output \ --disable-oss-wrapper \ --disable-solaris \ --disable-manpages \ --disable-samplerate \ --disable-default-build-tests" shelltools.echo(".tarball-version", get.srcVERSION()) #shelltools.system("NOCONFIGURE=1 ./bootstrap.sh") autotools.configure(options) pisitools.dosed("libtool", "CC(\s-shared\s)", r"CC -Wl,-O1,--as-needed\1")
def setup(): shelltools.export("SETUP_NOCHECK", "1") shelltools.system("sh amd-driver-installer-*-x86.x86_64.run --extract .") if get.buildTYPE() == "emul32": return # Needed during kernel module compiling shelltools.sym( "../../../../../arch/%s/lib/modules/fglrx/build_mod/libfglrx_ip.a" % Target, "%s/libfglrx_ip.a" % BuildDir) pisitools.dosed("%s/make.sh" % BuildDir, r"^linuxincludes=.*", "linuxincludes=/lib/modules/%s/build/include" % KDIR) pisitools.dosed("%s/make.sh" % BuildDir, r"^uname_r=.*", "uname_r=%s" % KDIR) pisitools.dosed("common/etc/ati/authatieventsd.sh", "/var/lib/xdm/authdir/authfiles", "/var/run/xauth") shelltools.system("patch -p1 < do_mmap.patch") shelltools.system("patch -p1 < desktop-files.patch") shelltools.system("patch -p1 < ati-powermode.patch")
def install(): if get.buildTYPE() == "emul32": autotools.rawInstall("DESTDIR=%s bindir=/emul32 libdir=/usr/lib32" % get.installDIR()) pisitools.removeDir("/emul32") pisitools.remove("/usr/lib32/libgsm.a") return else: autotools.rawInstall("DESTDIR=%s bindir=/usr/bin" % get.installDIR()) for bin in ["tcat", "untoast"]: pisitools.remove("/usr/bin/%s" % bin) pisitools.dosym("toast", "/usr/bin/%s" % bin) # Move gsm.h out of gsm subdir # pisitools.insinto("/usr/include","inc/gsm.h") # pisitools.removeDir("/usr/include/gsm") # No static libs pisitools.remove("/usr/lib/libgsm.a") pisitools.dodoc("ChangeLog", "COPYRIGHT", "MACHINES", "MANIFEST", "README")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE() == "emul32": pisitools.rename("/usr/lib32/xorg/modules/dri/swrastg_dri.so", "swrast_dri.so") return # Use llvmpipe instead of classic swrast driver pisitools.rename("/usr/lib/xorg/modules/dri/swrastg_dri.so", "swrast_dri.so") # Don't install unused headers #for header in ("[a-fh-wyz]*.h", "glf*.h"): for header in ("[a-fh-wyz]*.h", "glf*.h", "*glut*.h"): pisitools.remove("/usr/include/GL/%s" % header) # Moving libGL for dynamic switching pisitools.domove("/usr/lib/libGL.so.1.2", "/usr/lib/mesa") pisitools.dodoc("docs/COPYING") pisitools.dohtml("docs/*")
def setup(): options = "--exec-prefix=\"\" \ --sbindir=/sbin \ --with-systemdsystemunitdir=/lib/systemd/system \ --libdir=/usr/lib \ --libexecdir=/lib/udev \ --disable-introspection \ --enable-logging" if get.buildTYPE() == "emul32": shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) options += " --prefix=/emul32 \ --libdir=/usr/lib32 \ --libexecdir=/emul32/lib/udev \ --with-systemdsystemunitdir=/emul32/lib/systemd/system \ --datadir=/emul32/share \ --bindir=/emul32/bin \ --sbindir=/emul32/sbin \ --disable-extras" autotools.autoreconf("-fi") autotools.configure(options)
def install(): if get.buildTYPE() == "emul32": autotools.rawInstall( "-C src \ lib_LTLIBRARIES=\"%s\" \ DESTDIR=%s" % (emul32_libs, get.installDIR()), "install-libLTLIBRARIES") autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-pkgconfigDATA") return autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # Needed for service.py pisitools.dodir("/run/pulse") pisitools.dodir("/var/lib/pulse") # HAL is no longer supported by default pisitools.removeDir("/etc/dbus-1") pisitools.dodoc("README", "LICENSE", "GPL", "LGPL") pisitools.dohtml("doxygen/html/*")
def setup(): pisitools.dosed("timidity/config.h", "/usr/local/lib/timidity", "/usr/share/timidity") options = "--disable-dependency-tracking \ --disable-static \ --enable-music-midi \ --enable-music-timidity-midi \ --enable-music-mod \ --enable-music-mp3 \ --enable-music-ogg" if get.buildTYPE() == "emul32": options += " --includedir=/usr/include \ --libdir=/usr/lib32" shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) autotools.configure(options)
def install(): autotools.rawInstall("-j1 DESTDIR=%s%s" % (get.installDIR(), suffix)) if get.buildTYPE() == "emul32": shelltools.move("%s%s/lib%s" % (get.installDIR(), suffix, suffix), "%s/lib%s" % (get.installDIR(), suffix)) shelltools.move("%s%s/usr/lib%s" % (get.installDIR(), suffix, suffix), "%s/usr/lib%s" % (get.installDIR(), suffix)) for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()): pisitools.dosed( "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32", "usr") return # Create vol_id and scsi_id symlinks in /sbin probably needed by multipath-tools pisitools.dosym("/lib/udev/scsi_id", "/sbin/scsi_id") # Create /etc/udev/rules.d for backward compatibility pisitools.dodir("/etc/udev/rules.d") pisitools.dodir("/run/udev") pisitools.dodoc("README")
def setup(): # Remove local copies for system libs for directory in [ "cups/libs", "jpeg", "lcms2mt", "libpng", "openjpeg", "tiff", "zlib" ]: shelltools.unlinkDir(directory) #pisitools.flags.add("-fno-strict-aliasing") autotools.autoreconf("-fi") options = "--disable-compile-inits \ --disable-gtk \ --enable-dynamic \ --with-system-libtiff \ --with-ijs \ --with-drivers=ALL \ --with-libpaper \ --with-jbig2dec \ --enable-fontconfig \ --enable-freetype \ --without-luratech \ --without-omni \ --with-x \ --with-fontpath=/usr/share/fonts:/usr/share/fonts/default/ghostscript:/usr/share/cups/fonts:/usr/share/fonts/TTF:/usr/share/fonts/Type1:/usr/share/poppler/cMap/*" options += " --disable-cups --includedir=/usr/include --libdir=/usr/lib32" if get.buildTYPE( ) == "emul32" else " --enable-cups" autotools.configure(options) shelltools.cd("ijs/") pisitools.dosed("configure.ac", "AM_PROG_CC_STDC", "AC_PROG_CC") shelltools.system("./autogen.sh \ --prefix=/usr \ --mandir=/usr/share/man \ --disable-static \ --enable-shared")
def setup(): shelltools.echo("docs/gtk-doc.make", "EXTRA_DIST=") autotools.autoreconf("-fi") libtools.libtoolize("--force") options = " ac_cv_header_sys_capability_h=yes \ --bindir=/sbin%s \ --sbindir=/sbin%s \ --docdir=/usr/share/doc/udev \ --libdir=/usr/lib%s \ --libexecdir=/lib%s/udev \ --with-distro=other \ --with-firmware-path=/lib%s/firmware/updates:/lib%s/firmware \ --with-html-dir=/usr/share/doc/udev/html \ --with-rootlibdir=/lib%s \ --with-rootprefix= \ --disable-audit \ --disable-coredump \ --disable-hostnamed \ --disable-ima \ --disable-libcryptsetup \ --disable-localed \ --disable-logind \ --disable-myhostname \ --disable-nls \ --disable-pam \ --disable-quotacheck \ --disable-readahead \ --enable-split-usr \ --disable-tcpwrap \ --disable-timedated \ --disable-xz \ --enable-gudev \ --disable-selinux \ --disable-static \ --disable-introspection" % ((suffix, ) * 7) options += " --disable-acl \ --disable-qrencode \ --without-python" if get.buildTYPE() == "emul32" else "" autotools.configure(options)
def setup(): shelltools.sym("makefiles/configure.in", "configure.in") shelltools.sym("makefiles/Makefile.am", "Makefile.am") shelltools.sym("makefiles/makefile.linux", "Makefile") #shelltools.sym("contrib/gcc/sdl-mngplay/acinclude.m4", "acinclude.m4") shelltools.system("sed -i -e 's/unroll-loops/& -fPIC/' Makefile ") autotools.autoreconf("-fiv") autotools.configure("--with-jpeg \ --with-lcms \ --disable-static \ --disable-dependency-tracking") if get.buildTYPE() == "emul32": options = " --libdir=/usr/lib32 \ --with-jpeg \ --disable-static \ --disable-dependency-tracking" shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) autotools.configure(options)
def install(): autotools.rawInstall("-j1 DESTDIR=%s%s" % (get.installDIR(), suffix)) #autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # emul32 stop here if get.buildTYPE() == "emul32": shelltools.move("%s%s/lib" % (get.installDIR(), suffix), "%s/lib%s" % (get.installDIR(), suffix)) shelltools.move("%s%s/usr/lib" % (get.installDIR(), suffix), "%s/usr/lib%s" % (get.installDIR(), suffix)) #for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()): # pisitools.dosed("%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32", "usr") #shelltools.unlinkDir("%s%s" % (get.installDIR(), suffix)) shelltools.unlink("%s/usr/lib%s/libudev.so" % (get.installDIR(), suffix)) pisitools.dosym("/lib%s/libudev.so.1.6.0" % suffix, "/usr/lib%s/libudev.so" % suffix) shelltools.unlinkDir("%s/usr/lib%s/pkgconfig" % (get.installDIR(), suffix)) shelltools.unlinkDir("%s/lib%s/udev" % (get.installDIR(), suffix)) return #add link pisitools.dosym("/sbin/udevadm", "/bin/udevadm") # Create vol_id and scsi_id symlinks in /sbin probably needed by multipath-tools pisitools.dosym("/lib/udev/scsi_id", "/sbin/scsi_id") # Create /sbin/systemd-udevd -> /sbin/udevd sysmlink, we need it for MUDUR, do not touch this sysmlink. # pisitools.dosym("/lib/systemd/systemd-udevd", "/sbin/systemd-udevd") # Create /etc/udev/rules.d for backward compatibility pisitools.dodir("/etc/udev/rules.d") pisitools.dodir("/run/udev") # Add man files pisitools.doman("man/*.5", "man/*.7", "man/*.8") pisitools.dodoc("README*", "NOTES")
def setup(): options = "--disable-static \ --disable-poppler-qt \ --disable-gtk-doc-html \ --disable-zlib \ --disable-gtk-test \ --enable-poppler-qt4 \ --enable-poppler-qt5 \ --enable-cairo-output \ --enable-xpdf-headers \ --enable-libjpeg \ --enable-libopenjpeg" if get.buildTYPE() == "emul32": options += " --libdir=/usr/lib32 \ --disable-utils \ --disable-gtk-test \ --disable-poppler-cpp \ --disable-poppler-qt4 \ --disable-poppler-qt5" autotools.configure(options)
def setup(): pisitools.dosed( "configure.ac", '(AS_AC_EXPAND\(EXPANDED_LOCALSTATEDIR, )"\$localstatedir"\)', r'\1 "")') for f in ["bus/Makefile.am", "bus/Makefile.in"]: pisitools.dosed(f, "\$\(localstatedir\)(\/run\/dbus)", "\\1") options = "\ --disable-selinux \ --disable-static \ --disable-tests \ --disable-asserts \ --disable-checks \ --disable-embedded-tests \ --disable-modular-tests \ --disable-doxygen-docs \ --disable-libaudit \ --disable-silent-rules \ --enable-inotify \ --enable-user-session \ --with-xml=expat \ --with-system-pid-file=/run/dbus/pid \ --with-system-socket=/run/dbus/system_bus_socket \ --with-console-auth-dir=/run/console/ \ --with-session-socket-dir=/tmp \ --with-dbus-user=dbus \ --enable-abstract-sockets=auto \ --disable-xml-docs" if get.buildTYPE() == "emul32": options += "\ --disable-xml-docs \ --disable-doxygen-docs" # Build only libdbus pisitools.dosed("Makefile.am", "(.*SUBDIRS=dbus) .*", "\\1") autotools.autoreconf("-vif") autotools.configure(options)
def setup(): options = "--with-xml=expat \ --with-system-pid-file=/var/run/dbus/pid \ --with-system-socket=/var/run/dbus/system_bus_socket \ --with-systemdsystemunitdir=/lib/systemd/system \ --with-session-socket-dir=/tmp \ --with-dbus-user=dbus \ --disable-selinux \ --disable-static \ --disable-tests \ --disable-asserts \ --disable-doxygen-docs \ --disable-xml-docs" if get.buildTYPE() == "emul32": options += " --libdir=/usr/lib32" shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) # Build only libdbus pisitools.dosed("Makefile.am", "(.*SUBDIRS=dbus) .*", "\\1") autotools.autoreconf("-vif") autotools.configure(options)
def setup(): options = "-Ddocs=false \ " if get.buildTYPE() == "_emul32": options += " --libdir=/usr/lib32 \ --bindir=/usr/lib32/bin \ --sbindir=/usr/lib32/sbin \ --datadir=/usr/lib32/share \ --libexecdir=/usr/lib32/libexec \ --localedir=/usr/lib32/share/locale \ -Dintrospection=false \ " shelltools.export("CC", "%s -m32" % get.CC()) shelltools.export("CXX", "%s -m32" % get.CXX()) shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") else: options += "-Dintrospection=true \ " mesontools.configure(options)
def build(): shelltools.cd("build") if get.buildTYPE() == "emul32": shelltools.echo("configparms","build-programs=no") shelltools.echo("configparms", "slibdir=/lib32") shelltools.echo("configparms", "rtlddir=/lib32") shelltools.echo("configparms", "bindir=/tmp32") shelltools.echo("configparms", "sbindir=/tmp32") shelltools.echo("configparms", "rootsbindir=/tmp32") shelltools.echo("configparms", "datarootdir=/tmp32/share") autotools.make() pisitools.dosed("configparms", "=no", "=yes") shelltools.echo("configparms", "CC += -fstack-protector-strong -D_FORTIFY_SOURCE=2") shelltools.echo("configparms", "CXX += -fstack-protector-strong -D_FORTIFY_SOURCE=2") else: shelltools.echo("configparms", "slibdir=/lib") shelltools.echo("configparms", "rtlddir=/lib") autotools.make()
def setup(): shelltools.export("CFLAGS", "%s -DNDEBUG" % get.CFLAGS()) shelltools.system("./autogen.sh") autotools.autoreconf("-vif") # gallium-lvm is enabled by default by commit a86fc719d6402eb482657707741890e69e81700f options = "--enable-pic \ --disable-xcb \ --enable-glx-tls \ --disable-gl-osmesa \ --enable-egl \ --enable-gles2 \ --disable-glw \ --disable-glut \ --enable-gallium-llvm \ --disable-gallium-egl \ --enable-shared-glapi \ --with-gallium-drivers=i915,i965,nouveau,r300,r600,svga,swrast \ --with-driver=dri \ --with-egl-platforms=x11,wayland,drm \ --with-dri-driverdir=/usr/lib/xorg/modules/dri \ --with-dri-drivers=i810,i915,i965,mach64,nouveau,r128,r200,r600,radeon,sis,tdfx" if get.buildTYPE() == "emul32": # compile with llvm doesn't work for now, test it later options += " --libdir=/usr/lib32 \ --with-dri-driverdir=/usr/lib32/xorg/modules/dri \ --disable-gallium-llvm \ --enable-32-bit" shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) autotools.configure(options) pisitools.dosed("configs/autoconf", "(PYTHON_FLAGS) = .*", r"\1 = -t")
def install(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE() == "emul32": pisitools.domove("/emul32/lib32/", "/usr/") pisitools.insinto( "/usr/include/llvm/Config/", "%s/emul32/include/llvm/Config/llvm-config.h" % get.installDIR(), "llvm-config-32.h") pisitools.insinto("/usr/bin/", "%s/emul32/bin/llvm-config" % get.installDIR(), "llvm-config-32") pisitools.removeDir("/emul32") pisitools.remove("/usr/lib/python2.7/site-packages/six.py") shelltools.cd("..") pisitools.dodoc("CREDITS.TXT", "LICENSE.TXT", "README.txt")
def install(): if get.buildTYPE() == "emul32": autotools.rawInstall("GLEW_DEST=%s/usr/ \ INCDIR=%s/emul32 \ BINDIR=%s/emul32 \ LIBDIR=%s/usr/lib32 \ PKGDIR=%s/usr/lib32/pkgconfig" % (get.installDIR() , get.installDIR(), get.installDIR(), get.installDIR(), get.installDIR())) pisitools.remove("/usr/lib32/libGLEW.a") #pisitools.dosed("%s/usr/lib32/pkgconfig/glew.pc" % get.installDIR(), "/usr/lib", "/usr/lib32") return autotools.rawInstall("GLEW_DEST=%s/usr/ \ INCDIR=%s/usr/include/GL \ BINDIR=%s/usr/bin \ LIBDIR=%s/usr/lib" % (get.installDIR() , get.installDIR(), get.installDIR(), get.installDIR())) pisitools.dobin("bin/glewinfo") pisitools.dobin("bin/visualinfo") pisitools.dohtml("doc/*") pisitools.dodoc("README.md", "doc/*.txt", "LICENSE.txt")
def setup(): # add X.Org vendor string to aliases for virtual bindings shelltools.echo("bindings/xmbind.alias", '"The X.Org Foundation"\t\t\t\t\tpc') # libXp will be deprecated pisitools.dosed("lib/Xm/Makefile.am", " -lXp ", " -ldeprecatedXp ") shelltools.export("LANG", "C") # guess why this is here... shelltools.export("LC_ALL", "C") # guess why this is here... shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -fno-strict-aliasing" % get.CXXFLAGS()) shelltools.export("AT_M4DIR", ".") for f in ["NEWS", "AUTHORS"]: shelltools.touch(f) autotools.autoreconf("-vfi") options = "--with-x \ --disable-static \ --enable-utf8 \ --enable-xft \ --enable-jpeg \ --enable-png" if get.buildTYPE() == "emul32": options += " --prefix=/emul32 \ --libdir=/usr/lib32 \ --bindir=/emul32/bin \ --mandir=/emul32/man" shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") shelltools.export("CFLAGS", "%s -I/usr/include/freetype2 -fno-strict-aliasing -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -I/usr/include/freetype2 -fno-strict-aliasing -m32" % get.CXXFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) autotools.configure(options)
def setup(): # Disable as-needed for now as it doesn't compile # Lennart has introduced a circular dep in the libraries. libpulse requires # libpulsecommon but libpulsecommon requires libpulse. shelltools.export("LDFLAGS", "%s -Wl,--no-as-needed" % get.LDFLAGS()) autotools.autoreconf("-fi") libtools.libtoolize() options = "--disable-dependency-tracking \ --disable-static \ --disable-rpath \ --disable-hal \ --disable-jack \ --with-system-user=pulse \ --with-system-group=pulse \ --with-access-group=pulse-access" if get.buildTYPE() == "emul32": options += " --libdir=/usr/lib32 \ --libexecdir=/usr/lib32 \ --disable-gconf \ --disable-gtk2 \ --disable-jack \ --disable-bluez \ --disable-asyncns \ --disable-lirc \ --disable-x11 \ --disable-oss-output \ --disable-oss-wrapper \ --disable-solaris \ --disable-manpages \ --disable-samplerate \ --disable-default-build-tests" shelltools.export("CC", "%s -m32" % get.CC()) autotools.configure(options)
def install(): autotools.rawInstall("INSTALL_PREFIX=%s MANDIR=/usr/share/man" % get.installDIR()) # Rename conflicting manpages pisitools.rename("/usr/share/man/man1/passwd.1", "ssl-passwd.1") pisitools.rename("/usr/share/man/man3/rand.3", "ssl-rand.3") pisitools.rename("/usr/share/man/man3/err.3", "ssl-err.3") if get.buildTYPE() == "_emul32": #from distutils.dir_util import copy_tree shelltools.copytree("%s/_emul32/lib32/" % get.installDIR(), "%s/usr/lib32" % get.installDIR()) pisitools.removeDir("/_emul32") pisitools.remove("/usr/lib32/*.a") path = "%s/usr/lib32/pkgconfig" % get.installDIR() for f in shelltools.ls(path): pisitools.dosed("%s/%s" % (path, f), "^(prefix=\/)_emul32", r"\1usr") return # Move engines to /usr/lib/openssl/engines pisitools.dodir("/usr/lib/openssl") pisitools.domove("/usr/lib/engines", "/usr/lib/openssl") # Certificate stuff pisitools.dobin("tools/c_rehash") # Create needed dirs for cadir in ["misc", "private"]: pisitools.dodir("/etc/ssl/%s" % cadir) # No static libs pisitools.remove("/usr/lib/*.a") pisitools.dohtml("doc/*") pisitools.dodoc("CHANGES*", "FAQ", "LICENSE", "NEWS", "README", "doc/*.txt")
def setup(): # autotools.autoreconf("-fi") # libtools.libtoolize() options = "--disable-dependency-tracking \ --disable-static \ --disable-rpath \ --disable-jack \ --disable-solaris \ --disable-adrian-aec \ --disable-hal-compat \ --enable-largefile \ --with-system-user=pulse \ --with-system-group=pulse \ --with-access-group=pulse-access \ --with-database=tdb" if get.buildTYPE() == "emul32": options += " --libdir=/usr/lib32 \ --libexecdir=/usr/lib32 \ --disable-hal-compat \ --disable-gconf \ --disable-gtk2 \ --disable-jack \ --disable-bluez \ --disable-asyncns \ --disable-lirc \ --disable-x11 \ --disable-oss-output \ --disable-oss-wrapper \ --disable-solaris \ --disable-manpages \ --disable-samplerate \ --disable-default-build-tests" shelltools.export("CC", "%s -m32" % get.CC()) autotools.configure(options) pisitools.dosed("libtool", "CC(\s-shared\s)", r"CC -Wl,-O1,--as-needed\1")
def setup(): shelltools.makedirs("build") shelltools.cd("build") options = "meson --prefix=/usr \ -Dinternal_pcre=false \ -Dlibmount=false \ -Dgtk_doc=false \ -Dfam=false \ -Dsystemtap=false \ -Dinstalled_tests=false \ -Dselinux=false" if get.buildTYPE() == "_emul32": shelltools.export("CC", "%s -m32" % get.CC()) shelltools.export("CXX", "%s -m32" % get.CXX()) shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") options += " --libdir=lib32 \ --bindir=/usr/_emul32/bin \ --sbindir=/usr/_emul32/sbin \ -Ddtrace=false .." shelltools.system(options)
def install(): #shelltools.cd("build") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE() == "emul32": pisitools.insinto("/usr/bin/", "%s/usr/emul32/opj_compress" % get.installDIR(), "opj_compress_32") pisitools.insinto("/usr/bin/", "%s/usr/emul32/opj_decompress" % get.installDIR(), "opj_decompress_32") pisitools.insinto("/usr/bin/", "%s/usr/emul32/opj_dump" % get.installDIR(), "opj_dump_32") pisitools.dosed( "%s/usr/lib32/pkgconfig/libopenjp2.pc" % get.installDIR(), "emul32", "bin") pisitools.dosed( "%s/usr/lib32/openjpeg-2.3/OpenJPEGTargets-relwithdebinfo.cmake" % get.installDIR(), "emul32", "bin") pisitools.removeDir("/usr/emul32") pisitools.dodoc("AUTHORS*", "CHANGELOG*", "NEWS*", "README*")
def setup(): options = "--disable-gtk-doc \ --with-pcre=system \ --disable-fam \ --disable-static \ --enable-shared \ --enable-man \ --enable-systemtap" if get.buildTYPE() == "_emul32": options += " --libdir=/usr/lib32 \ --bindir=/_emul32/bin \ --sbindir=/_emul32/sbin \ --disable-dtrace" shelltools.export("CC", "%s -m32" % get.CC()) shelltools.export("CXX", "%s -m32" % get.CXX()) shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") autotools.autoreconf("-vif") autotools.configure(options) pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
def install(): # We need especially specify libdir and dlldir prefixes. Otherwise the # 32bit parts overwrite the 64bit files under /usr/lib shelltools.cd("build-wine") if get.buildTYPE() == "emul32": autotools.install( "UPDATE_DESKTOP_DATABASE=/bin/true libdir=%s/usr/lib32 dlldir=%s/usr/lib32/wine" % (get.installDIR(), get.installDIR())) else: autotools.install( "UPDATE_DESKTOP_DATABASE=/bin/true libdir=%s/usr/lib dlldir=%s/usr/lib/wine" % (get.installDIR(), get.installDIR())) shelltools.cd("..") pisitools.dodoc("ANNOUNCE", "AUTHORS", "COPYING.LIB", "LICENSE*", "README", "documentation/README.*") pisitools.insinto("/usr/share/wine/mono/", "wine-mono-4.5.6.msi") pisitools.insinto("/usr/share/wine/gecko/", "wine_gecko-2.40-x86.msi") pisitools.insinto("/usr/share/wine/gecko/", "wine_gecko-2.40-x86_64.msi")
def setup(): shelltools.export("AT_M4DIR", "%s/m4" % get.curDIR()) libtools.gnuconfig_update() options = "--disable-esd \ --disable-af \ --enable-alsa \ --enable-oss \ --disable-static" if get.buildTYPE() == "emul32": options += " --prefix=/emul32 \ --libdir=/usr/lib32 \ --bindir=/emul32/bin" 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 setup(): shelltools.copy("INSTALL/make.inc.gfortran", "make.inc") if get.ARCH() == "x86_64": pisitools.dosed("make.inc", "-O2", "%s -fPIC -m64 -funroll-all-loops" % get.CFLAGS()) pisitools.dosed("make.inc", "NOOPT =", "NOOPT =-m64 -fPIC ") else: pisitools.dosed("make.inc", "-O2", "%s -fPIC -funroll-all-loops" % get.CFLAGS()) shelltools.makedirs("build") shelltools.cd("build") options = "-DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF" if get.buildTYPE() == "static": options = "-DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=OFF \ -DBUILD_TESTING=OFF" cmaketools.configure(options, sourceDir="..")
def setup(): options = "\ --disable-static \ --disable-silent-rules \ --with-libjasper \ --with-x11 \ --with-included-loaders=png \ " options += "\ --bindir=/_emul32/bin \ --disable-introspection \ " if get.buildTYPE() == "emul32" else \ "\ --enable-introspection \ " autotools.configure(options) pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""') pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE") pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")