def setup(): pythonmodules.run('configure.py \ -b /usr/bin \ -d /usr/lib/%s/site-packages \ -e /usr/include/%s \ CFLAGS+="%s" CXXFLAGS+="%s"' % (py2dir, py2dir, get.CFLAGS(), get.CXXFLAGS()))
def setup(): autotools.configure('--enable-optimize="%s -Os"' % get.CXXFLAGS())
def setup(): pisitools.flags.add("-I/usr/include/gtk-2.0/gdk") #make sure we don't use them checkdeletepath = "%s/qtbase/src/3rdparty" % absoluteWorkDir for dir in ('libjpeg', 'freetype', 'libpng', 'zlib', "libtiff"): if os.path.exists(checkdeletepath + dir): shelltools.unlinkDir(checkdeletepath + dir) 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()) if not get.buildTYPE() == "emul32": #-no-pch makes build ccache-friendly options = "-no-pch \ -v \ -stl \ -fast \ -qdbus \ -qvfb \ -glib \ -no-sql-sqlite2 \ -system-sqlite \ -system-zlib \ -system-libpng \ -system-libjpeg \ -system-libtiff \ -system-libmng \ -no-sql-sqlite \ -no-sql-odbc \ -no-sql-psql \ -no-sql-ibase \ -release \ -no-separate-debug-info \ -phonon \ -no-phonon-backend \ -no-webkit \ -no-xinerama \ -no-rpath \ -openssl-linked \ -dbus-linked \ -xmlpatterns \ -opensource \ -nomake demos \ -nomake examples \ -nomake docs \ -reduce-relocations \ -prefix %s \ -bindir %s \ -libdir %s \ -plugindir %s \ -translationdir %s \ -sysconfdir %s \ -datadir %s \ -importdir %s \ -headerdir %s \ -confirm-license " % (qt4.prefix, bindirQt4, qt4.libdir, qt4.plugindir, qt4.translationdir, qt4.sysconfdir, qt4.datadir, qt4.importdir, qt4.includedir) else: pisitools.dosed("mkspecs/linux-g++-64/qmake.conf", "-m64", "-m32") shelltools.export("LDFLAGS", "-m32 %s" % get.LDFLAGS()) options = "-no-pch \ -v \ -prefix /usr \ -libdir /usr/lib32 \ -plugindir /usr/lib32/qt/plugins \ -importdir /usr/lib32/qt/imports \ -datadir /usr/share/qt \ -translationdir /usr/share/qt/translations \ -sysconfdir /etc \ -system-sqlite \ -no-phonon \ -no-phonon-backend \ -webkit \ -graphicssystem raster \ -openssl-linked \ -nomake demos \ -nomake examples \ -nomake docs \ -nomake tools \ -optimized-qmake \ -no-rpath \ -dbus-linked \ -reduce-relocations \ -no-openvg \ -confirm-license \ -opensource " autotools.rawConfigure(options)
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt import os import psutil from pisi.actionsapi import get from pisi.actionsapi import pisitools from pisi.actionsapi import autotools from pisi.actionsapi import shelltools pisitools.ldflags.add("-L/usr/lib/nss") pisitools.flags.remove("-pipe", "-Wall", "-g", "-fexceptions") shelltools.export("ARCH_FLAGS", get.CXXFLAGS()) shelltools.export("LINKFLAGSOPTIMIZE", get.LDFLAGS()) shelltools.export("PYTHON", get.curPYTHON()) shelltools.export("LC_ALL", "C") langpackdir = "%s-langpack-%s" % (get.srcNAME(), get.srcVERSION()) langpackpath = os.path.normpath("%s/../%s" % (get.installDIR(), langpackdir)) langs = "en-US af ar as bg bn br ca cs cy da de dz el es et eu fa fi fr ga gl gu he hr hu it ja ko kn lt lv mai ml mr nb nl nn nr nso or pa-IN pl pt pt-BR ro ru si sk sl sr ss st sv ta te th tn tr ts uk ve xh zh-CN zh-TW zu" ldirs = ("/usr/lib/libreoffice/help/%s", "/usr/lib/libreoffice/share/autotext/%s", "/usr/lib/libreoffice/share/config/soffice.cfg/cui/ui/res/%s", "/usr/lib/libreoffice/share/config/soffice.cfg/sfx/ui/res/%s", "/usr/lib/libreoffice/share/config/soffice.cfg/svt/ui/res/%s", "/usr/lib/libreoffice/share/config/soffice.cfg/svx/ui/res/%s", "/usr/lib/libreoffice/share/config/soffice.cfg/vcl/ui/res/%s", "/usr/lib/libreoffice/share/config/soffice.cfg/desktop/ui/res/%s",
def build(): shelltools.export("CXXFLAGS", get.CXXFLAGS()) shelltools.export("CFLAGS", get.CFLAGS()) autotools.make("PREFIX=/usr %s" % j)
def setup(): pisitools.dosed("make/linux/Makefile", "CXXFLAGS=", "CXXFLAGS+=") shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -fPIC" % get.CXXFLAGS())
def setup(): shelltools.export("LC_ALL", "C") shelltools.export( "CXXFLAGS", "%s -Wno-deprecated -fno-strict-aliasing -fpermissive" % get.CXXFLAGS()) autotools.configure()
def build(): autotools.make("CXXFLAGS='%s -fpie'" % get.CXXFLAGS())
def setup(): checkdeletepath="%s/qtbase/src/3rdparty" % absoluteWorkDir for dir in ('libjpeg', 'freetype', 'libpng', 'zlib', "xcb", "sqlite"): if os.path.exists(checkdeletepath+dir): shelltools.unlinkDir(checkdeletepath+dir) 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()) if not get.buildTYPE() == "emul32": #-no-pch makes build ccache-friendly options = "-v \ -no-pch \ -confirm-license \ -opensource \ -optimized-qmake \ -nomake tests \ -no-rpath \ -release \ -shared \ -accessibility \ -dbus-linked \ -fontconfig \ -glib \ -gtkstyle \ -icu \ -c++11 \ -system-harfbuzz \ -openssl-linked \ -system-libjpeg \ -system-libpng \ -system-sqlite \ -system-zlib \ -plugin-sql-sqlite \ -plugin-sql-odbc \ -plugin-sql-psql \ -plugin-sql-ibase \ -no-sql-tds \ -I/usr/include/firebird/ \ -I/usr/include/postgresql/server/ \ -no-separate-debug-info \ -no-strip \ -prefix %s \ -bindir %s \ -archdatadir %s\ -libdir %s \ -docdir %s \ -examplesdir %s \ -plugindir %s \ -translationdir %s \ -sysconfdir %s \ -datadir %s \ -importdir %s \ -headerdir %s \ -reduce-relocations" % (qt5.prefix, bindirQt5, qt5.archdatadir, qt5.libdir, qt5.docdir, qt5.examplesdir, qt5.plugindir, qt5.translationdir, qt5.sysconfdir, qt5.datadir, qt5.importdir, qt5.headerdir) else: pisitools.dosed("mkspecs/linux-g++-64/qmake.conf", "-m64", "-m32") shelltools.export("LDFLAGS", "-m32 %s" % get.LDFLAGS()) options = "-no-pch \ -v \ -platform linux-g++-32 \ -prefix /usr \ -libdir /usr/lib32 \ -plugindir /usr/lib32/qt5/plugins \ -importdir /usr/lib32/qt5/imports \ -datadir /usr/share/qt5 \ -translationdir /usr/share/qt5/translations \ -sysconfdir /etc \ -qt-zlib \ -qt-libjpeg \ -qt-libpng \ -qt-xcb \ -qt-xkbcommon \ -qt-freetype \ -qt-pcre \ -qt-harfbuzz \ -nomake tests \ -openssl-linked \ -nomake examples \ -nomake tools \ -optimized-qmake \ -no-rpath \ -no-strip \ -dbus-linked \ -no-openvg \ -no-sse2 \ -confirm-license \ -reduce-relocations \ -no-use-gold-linker \ -opensource " autotools.rawConfigure(options)
crosscompiling = ctx.config.values.build.crosscompiling if crosscompiling: ctx.ui.info(_("cross compiling")) export('QTDIR', "%s/usr/qt/4" % get.sysroot()) export('QMAKE_PLATFORM', "linux-g++") export('QMAKESPEC', "%s/usr/qt/4/mkspecs/linux-g++" % get.sysroot()) export('QMAKE_CC', get.CC()) export('QMAKE_AR', get.AR()) export('QMAKE_CXX', get.CXX()) export('QMAKE_LINK', get.CXX()) export('QMAKE_LINK_SHLIB', get.CXX()) export('QMAKE_CFLAGS', "%s %s -Wno-psabi -I%s/usr/qt/4/include" % (get.CPPFLAGS(), get.CFLAGS(), get.sysroot())) export('QMAKE_CXXFLAGS', "%s %s -Wno-psabi -fno-exceptions -fno-rtti -I%s/usr/qt/4/include" % (get.CPPFLAGS(), get.CXXFLAGS(), get.sysroot())) export('QMAKE_LDFLAGS', "%s" % get.LDFLAGS()) export('QMAKE_RPATH', "-Wl,-rpath-link,") export('QMAKE_INCDIR', "%s/usr/qt/4/include" % get.sysroot()) export('QMAKE_INCDIR_QT', "%s/usr/qt/4/include" % get.sysroot()) export('QMAKE_INCDIR_X11', "%s/usr/include/X11" % get.sysroot()) export('QMAKE_INCDIR_OPENGL', "%s/usr/include" % get.sysroot()) export('QMAKE_LIBS', "%s/usr/qt/4/lib" % get.sysroot()) export('QMAKE_LIBS_QT', "qt") # export('QMAKE_LIBS_X11', "") export('QMAKE_LIBS_OPENGL', "%s/usr/lib" % get.sysroot()) export('INCLUDEPATH', "%s/usr/qt/4/include" % get.sysroot()) export('INCLUDE', "%s/usr/qt/4/include" % get.sysroot()) export('LIB', "%s/usr/qt/4/lib" % get.sysroot())
def build(): shelltools.cd(src) autotools.make('CXXOPTFLAGS="%s -fomit-frame-pointer" -j1' % get.CXXFLAGS())
def setup(): shelltools.export("CXXFLAGS", get.CXXFLAGS().replace("-D_FORTIFY_SOURCE=2", "")) shelltools.system("sh autotools/bootstrap.sh") autotools.configure("--disable-static \ --with-browser-plugins-dir=/usr/lib/xulrunner-1.9/plugins \ --with-oem-brand=Pardus")
def setup(): shelltools.export("CXXFLAGS", "%s -D__STDC_CONSTANT_MACROS" % get.CXXFLAGS()) # For FFmpeg kde.configure()
def build(): shelltools.cd(mainsrcdir) autotools.make('sharedlib RPM_OPT_FLAGS="%s"' % get.CXXFLAGS())
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get WorkDir = "webkitgtk-1.11.1" shelltools.export("HOME", get.workDIR()) shelltools.export("XDG_DATA_HOME", get.workDIR()) shelltools.export("CXXFLAGS", get.CXXFLAGS().replace(" -ggdb3", "")) opt = " -fPIC" if get.ARCH() == "x86_64" else "" paths = ["JavaScriptCore", "WebCore", "WebKit"] docs = ["AUTHORS", "ChangeLog", "COPYING.LIB", "THANKS", \ "LICENSE-LGPL-2", "LICENSE-LGPL-2.1", "LICENSE"] def setup(): pisitools.dosed("configure", " -O2", opt) autotools.configure("--enable-dependency-tracking \ --with-gnu-ld \ --enable-introspection \ --enable-video \ --enable-filters \ --with-font-backend=pango \
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get flags = get.CXXFLAGS().replace("-fstack-protector", "").replace("-O2", "") def setup(): #FIXME: find who is to blame... shelltools.sym(".", ".libs") pisitools.dosed("Makefile", r"^(LDFLAGS=)(.+)$", r"\1%s \2" % get.LDFLAGS()) def build(): autotools.make('CXX="%s" \ OPTFLAGS="%s" \ DEBUG="" \ -j1' % (get.CXX(), flags)) def install(): pisitools.dobin("ttmkfdir")
def setup(): shelltools.export( "CFLAGS", "%s -fno-strict-aliasing -fno-force-addr -ffunction-sections -frename-registers -fomit-frame-pointer" % get.CFLAGS()) shelltools.export( "CXXFLAGS", "%s -fno-strict-aliasing -fno-force-addr -ffunction-sections -frename-registers -fomit-frame-pointer" % get.CXXFLAGS()) shelltools.export("CCASFLAGS", "-Wa,--noexecstack") # to get rid of cvs shelltools.export("AUTOPOINT", "true") #libtools.libtoolize("--force --copy") autotools.autoreconf("-vfi") autotools.configure(" \ --prefix=/usr \ --mandir=/usr/share/man \ --disable-altivec \ --disable-artstest \ --disable-dxr3 \ --disable-vidix \ --disable-vcd \ --disable-mpcdec \ --enable-aalib \ --enable-asf \ --enable-directfb \ --enable-faad \ --enable-fb \ --enable-ffmpeg-popular-codecs \ --enable-ffmpeg-uncommon-codecs \ --enable-ipv6 \ --enable-mmap \ --enable-modplug \ --enable-opengl \ --disable-samba \ --enable-xinerama \ --with-external-a52dec \ --with-external-ffmpeg \ --with-external-libmad \ --with-vorbis \ --with-x \ --with-xcb \ --with-xv-path=/usr/lib \ --with-freetype \ --with-fontconfig \ --without-esound \ --without-imagemagick \ --without-jack \ --disable-gdkpixbuf \ --disable-nls \ --disable-rpath \ --disable-syncfb \ --disable-optimizations \ --disable-dependency-tracking") # the world is not ready for this code, see bug #8267 # --enable-antialiasing \ #--enable-mng \ #--with-wavpack \ #--with-internal-vcdlibs \ pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
def build(): scons.make('CXX="%s" \ CXXFLAGS="%s" \ LDFLAGS="%s" ' % (get.CXX(), get.CXXFLAGS(), get.LDFLAGS()))
def build(): scons.make('PREFIX=/usr \ COMPILE_FLAGS="%s %s -lpthread" \ BUILD_TESTS=0' % (get.CXXFLAGS(), get.LDFLAGS()))
def build(): autotools.make('CC=%s CXXFLAGS="%s"' % (get.CC(), get.CXXFLAGS()))
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import shelltools from pisi.actionsapi import cmaketools from pisi.actionsapi import pisitools from pisi.actionsapi import get shelltools.export("CXXFLAGS", "%s -D__STDC_CONSTANT_MACROS" % get.CXXFLAGS()) def setup(): cmaketools.configure('-DLIB_POSTFIX="" \ -DCMAKE_RELWITHDEBINFO_POSTFIX=""') def build(): cmaketools.make() def install(): cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("AUTHORS.txt", "ChangeLog", "LICENSE.txt", "NEWS.txt")
# # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import libtools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get #~ WorkDir="%s-%s" % (get.srcNAME(), get.srcVERSION().replace("_", "-").upper()) BINDDIR="/var/named" CHROOT="%s/chroot" % BINDDIR shelltools.export("CPPFLAGS", "%s -DDIG_SIGCHASE" % get.CXXFLAGS()) def setup(): shelltools.makedirs("m4") # Fix PATHs in manpages pisitools.dosed("bin/named/named.8", "/etc/named.conf", "/etc/bind/named.conf") pisitools.dosed("bin/check/named-checkconf.8", "/etc/named.conf", "/etc/bind/named.conf") pisitools.dosed("bin/rndc/rndc.8", "/etc/rndc.conf", "/etc/bind/rndc.conf") pisitools.dosed("bin/rndc/rndc.8", "/etc/rndc.key", "/etc/bind/rndc.key") # Adjust version pisitools.dosed("version", "^RELEASEVER=.*$", "RELEASEVER=Pisi Linux-1.0") libtools.libtoolize("-cf") autotools.aclocal("-I m4") autotools.autoreconf("-vfi")
def setup(): flags = "-O2 \ -pipe \ -mno-sse \ -ffunction-sections" # shelltools.export("CFLAGS", "%s %s" % (get.CFLAGS(), flags)) # shelltools.export("CXXFLAGS", "%s %s" % (get.CXXFLAGS(), flags)) shelltools.export("CFLAGS", "%s -fno-strict-aliasing -fno-force-addr" % get.CFLAGS()) shelltools.export( "CXXFLAGS", "%s -fno-strict-aliasing -fno-force-addr" % get.CXXFLAGS()) shelltools.export("CCASFLAGS", "-Wa,--noexecstack") libtools.libtoolize("--force --copy") autotools.autoreconf("-fi") autotools.configure(" \ --prefix=/usr \ --mandir=/usr/share/man \ --disable-altivec \ --disable-artstest \ --disable-dxr3 \ --disable-gnome \ --disable-vidix \ --enable-aalib \ --enable-antialiasing \ --enable-asf \ --enable-directfb \ --enable-faad \ --enable-fb \ --enable-ffmpeg-popular-codecs \ --enable-ffmpeg-uncommon-codecs \ --enable-fpic \ --enable-ipv6 \ --enable-mmap \ --enable-mng \ --enable-modplug \ --enable-opengl \ --enable-samba \ --enable-xinerama \ --with-external-a52dec \ --with-external-ffmpeg \ --with-external-libmad \ --with-freetype \ --with-fontconfig \ --with-internal-vcdlibs \ --with-real-codecs-path=/usr/lib/essential \ --with-vorbis \ --with-wavpack \ --with-w32-path=/usr/lib/essential \ --with-x \ --with-xcb \ --with-xv-path=/usr/lib \ --without-esound \ --without-imagemagick \ --without-jack \ --disable-gdkpixbuf \ --disable-rpath \ --disable-syncfb \ --disable-optimizations \ --disable-dependency-tracking")