def setup(): #pisitools.dosed("storage/tokudb/ft-index/ft/ft-ops.cc", "LEAFENTRY leaf_entry;", "LEAFENTRY leaf_entry = 0;") shelltools.export("CFLAGS", get.CFLAGS()) shelltools.export("CXXFLAGS", get.CXXFLAGS()) cmaketools.configure("-DBUILD_CONFIG=mysql_release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSYSCONFDIR=/etc/mysql \ -DMYSQL_DATADIR=/var/lib/mysql \ -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \ -DDEFAULT_CHARSET=utf8 \ -DDEFAULT_COLLATION=utf8_general_ci \ -DENABLED_LOCAL_INFILE=ON \ -DINSTALL_INFODIR=share/mysql/docs \ -DINSTALL_MANDIR=share/man \ -DINSTALL_PLUGINDIR=lib/mysql/plugin \ -DINSTALL_SCRIPTDIR=bin \ -DINSTALL_INCLUDEDIR=include/mysql \ -DINSTALL_DOCREADMEDIR=share/mysql \ -DINSTALL_SUPPORTFILESDIR=share/mysql \ -DINSTALL_MYSQLSHAREDIR=share/mysql \ -DINSTALL_DOCDIR=share/mysql/docs \ -DINSTALL_SHAREDIR=share/mysql \ -DWITH_READLINE=ON \ -DWITH_ZLIB=system \ -DWITH_SSL=system \ -DWITH_LIBWRAP=OFF \ -DWITH_JEMALLOC=ON \ -DWITH_PCRE=system \ -DWITH_EXTRA_CHARSETS=complex \ -DWITH_EMBEDDED_SERVER=ON \ -DWITH_ARCHIVE_STORAGE_ENGINE=1 \ -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DWITH_PARTITION_STORAGE_ENGINE=1 \ -DWITHOUT_TOKUDB_STORAGE_ENGINE=1 \ -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \ -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 \ -DWITHOUT_PBXT_STORAGE_ENGINE=1 \ -DCMAKE_C_FLAGS='-fPIC %s -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer -fno-delete-null-pointer-checks' \ -DCMAKE_CXX_FLAGS='-fPIC %s -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-delete-null-pointer-checks' \ -DWITH_MYSQLD_LDFLAGS='-pie %s,-z,now'" % (get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS()))
def setup(): options = "--disable-static" if get.buildTYPE() == "emul32": # options += " --prefix=/emul32 \ # --libdir=/usr/lib32 \ # --libexecdir=/emul32/lib \ # --bindir=/emul32/bin \ # --sbindir=/emul32/sbin \ # --mandir=/emul32/usr/share/man" options += " --prefix=/emul32 \ --libdir=/usr/lib32" shelltools.export("CC", "%s -m32" % get.CC()) shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) autotools.autoreconf("-fiv") autotools.configure(options)
def setup(): autotools.configure('--bindir=/bin \ --with-tcsetpgrp \ --enable-maildir-support \ --enable-etcdir=/etc/zsh \ --enable-zshenv=/etc/zsh/zshenv \ --enable-zlogin=/etc/zsh/zlogin \ --enable-zlogout=/etc/zsh/zlogout \ --enable-zprofile=/etc/zsh/zprofile \ --enable-zshrc=/etc/zsh/zshrc \ --enable-fndir=/usr/share/zsh/functions \ --enable-scriptdir=/usr/share/zsh/scripts \ --enable-site-fndir=/usr/share/zsh/site-functions \ --enable-function-subdirs \ --enable-pcre \ --enable-cap \ --enable-multibyte \ --enable-cflags="%s" \ --enable-ldflags="%s"' % (get.CFLAGS(), get.LDFLAGS()))
def setup(): shelltools.export("CXXFLAGS", get.CXXFLAGS()) shelltools.export("CFLAGS", get.CFLAGS()) shelltools.export("LDFLAGS", "%s -lopus -lopusfile -logg -lvorbis" % get.LDFLAGS()) cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr/lib \ -DUSE_CURSES=0 \ -DUSE_GEOIP:BOOL=ON \ -DUSE_CIN_XVID=0 \ -DUSE_CIN_THEORA=1 \ -DHAVE_BZIP2=1 \ -DUSE_INTERNAL_SDL=0 \ -DUSE_INTERNAL_CRYPTO=0 \ -DUSE_INTERNAL_JPEG=0 \ -DUSE_INTERNAL_OPUS=0 \ -DUSE_INTERNAL_SPEEX=0 \ -DUSE_INTERNAL_GLEW=0 \ -DUSE_INTERNAL_WEBP=0 \ -DUSE_INTERNAL_OPUS=0")
def build(): # FIXME: Change library path and version with variables shelltools.export( "LDFLAGS", "%s -Wl,-rpath,/usr/lib/%s-%s" % (get.LDFLAGS(), get.srcNAME(), get.srcVERSION())) shelltools.cd(ObjDir) autotools.make("-f ../client.mk build") # LOCALE # See: https://developer.mozilla.org/en/Creating_a_Language_Pack # FIXME: Find an elegant solution to create the Makefile from Makefile.in # We need to execute configure, otherwise the Makefile in browser/locales doesn't generate. # Don't execute it before "make -f client.mk". Otherwise it's conflicts with mozconfig # With 'make -f client.mk' call, build action takes place in $TOPSRCDIR/$OBJDIR by default. No need to specify l10n dir again, it's read from mozconfig autotools.make("-f ../client.mk configure") for locale in locales: autotools.make("-C browser/locales langpack-%s" % locale)
def setup(): pisitools.dosed("configure.in", "-O") #shelltools.makedirs("m4") #autotools.autoreconf("-vfi") options = "\ --enable-mmx \ --disable-static" 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 setup(): pisitools.dosed("test/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS") autotools.autoreconf("-vfi") options = "--disable-werror \ --enable-largefile" 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.export("CFLAGS", "%s -fpie" % get.CFLAGS()) shelltools.export("LDFLAGS", "%s -pie" % get.LDFLAGS()) autotools.autoreconf("-fi") autotools.configure("--libexecdir=/usr/libexec/sudo \ --with-noexec=/usr/libexec/sudo/sudo_noexec.so \ --with-logging=syslog \ --with-logfac=authpriv \ --with-pam \ --with-pam-login \ --with-linux-audit \ --with-env-editor \ --with-ignore-dot \ --with-tty-tickets \ --with-ldap \ --enable-shell-sets-home \ --without-selinux \ --without-rpath")
def setup(): shelltools.export("LDFLAGS", "%s -Wl,-z,now" % get.LDFLAGS()) autotools.configure("--enable-agent \ --enable-noexecstack \ --enable-symcryptrun \ --enable-ldap \ --enable-gpgsm \ --enable-hkp \ --enable-finger \ --with-libcurl \ --enable-nls \ --enable-bzip2 \ --with-pinentry-pgm=/usr/kde/3.5/bin/pinentry \ --disable-scdaemon \ --disable-photo-viewers \ --disable-capabilities \ --with-readline \ --enable-static-rnd=linux \ --libexecdir=/usr/libexec \ --enable-sha51")
def setup(): shelltools.export("CFLAGS", "%s -Wall -fpie -DLDAP_DEPRECATED" % get.CFLAGS()) shelltools.export("LDFLAGS", "%s -pie" % get.LDFLAGS()) # Use secure path autotools.configure("--libexecdir=/usr/libexec/sudo \ --with-noexec=/usr/libexec/sudo/sudo_noexec.so \ --with-secure-path=\"/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin\" \ --with-logfac=auth \ --with-insults \ --with-all-insults \ --with-ignore-dot \ --with-tty-tickets \ --enable-shell-sets-home \ --with-sudoers-mode=0440 \ --with-pam \ --with-ldap \ --with-env-editor \ --without-secure-path")
def setup(): shelltools.export("CFLAGS", "%s -DNDEBUG" % get.CFLAGS()) autotools.autoreconf("-vif") # gallium-lvm is enabled by default by commit a86fc719d6402eb482657707741890e69e81700f options = "--enable-pic \ --disable-xcb \ --enable-glx-tls \ --disable-gl-osmesa \ --disable-egl \ --disable-glw \ --disable-glut \ --enable-gallium \ --enable-gallium-llvm \ --disable-gallium-svga \ --disable-gallium-i915 \ --disable-gallium-i965 \ --enable-gallium-radeon \ --enable-gallium-r600 \ --enable-gallium-nouveau \ --enable-gallium-swrast \ --with-driver=dri \ --with-dri-driverdir=/usr/lib/xorg/modules/dri \ --with-dri-drivers=i810,i915,i965,mach64,nouveau,r128,r200,r600,radeon,sis,tdfx \ --with-state-trackers=dri,glx" 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 builddiet(): pisitools.flags.add("-fno-lto") shelltools.export("LIBS", "-lpthread -luuid") #dietCC = "diet %s %s %s -Os -static" % (get.CC(), get.CFLAGS(), get.LDFLAGS()) dietCC = "%s %s %s -Os -static" % (get.CC(), get.CFLAGS(), get.LDFLAGS()) shelltools.export("CC", dietCC) autotools.make("distclean") autotools.autoreconf("-fi") autotools.configure('ac_cv_lib_dl_dlopen=no \ --with-staticdir="/sbin" \ --enable-debug \ --with-optimisation=\"%s -Os\" \ --enable-static_link \ --with-lvm1=internal \ --disable-readline \ --disable-nls \ --disable-selinux \ --with-confdir=/etc \ --enable-applib \ --enable-cmdlib \ --enable-pkgconfig \ --enable-udev_rules \ --with-systemdsystemunitdir=no \ --enable-udev_sync' % get.CFLAGS()) pisitools.dosed("lib/misc/configure.h", "rpl_malloc", "malloc") pisitools.dosed("lib/misc/configure.h", "rpl_realloc", "realloc") autotools.make("-j1 -C include") autotools.make("-j1 -C lib LIB_SHARED= VERSIONED_SHLIB=") autotools.make("-j1 -C libdm LIB_SHARED= VERSIONED_SHLIB=") autotools.make("-j1 -C libdaemon LIB_SHARED= VERSIONED_SHLIB=") autotools.make( "-j1 -C tools dmsetup.static lvm.static DIETLIBC_LIBS=\"-lcompat\"") pisitools.insinto("/usr/lib/dietlibc/lib-i386", "libdm/ioctl/libdevmapper.a") pisitools.insinto("/sbin/", "tools/lvm.static") pisitools.insinto("/sbin/", "tools/dmsetup.static")
def setup(): # Respect the user LDFLAGS shelltools.system("./autogen.sh") shelltools.export("EXTRA_LDFLAGS", get.LDFLAGS()) autotools.configure("--disable-static \ --with-jdk=/usr/lib/jvm/java-7-openjdk \ --enable-javahl \ --with-apr=/usr \ --with-apr-util=/usr \ --with-apache=/usr/lib/apache2/ \ --with-apxs \ --with-serf=/usr \ --with-sqlite=/usr \ --with-zlib=/usr \ --with-jikes=no \ --without-berkeley-db \ --disable-mod-activation") pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
def setup(): # Filter out -nostdlib from libtool shelltools.copy("/usr/bin/libtool", "src") pisitools.dosed("src/libtool", "-nostdlib ", "") shelltools.cd("src") autotools.rawConfigure( "PREFIX=/usr \ INCLUDEDIR=/usr/include \ LIBDIR=/usr/lib \ LIBTOOL=./libtool \ CC=%s \ CXX=%s \ CFLAGS=\"%s -fPIC\" \ CXXFLAGS=\"%s -fPIC\" \ LDFLAGS=\"%s\" \ NTL_GMP_LIP=on \ SHARED=on" % (get.CC(), get.CXX(), get.CFLAGS().replace("-O2", "-O1"), get.CXXFLAGS().replace("-O2", "-O1"), get.LDFLAGS().replace( "-Wl,--hash-style=gnu ", "")))
def setup(): CONSTS = { "CC": get.CC(), "CFLAGS": get.CFLAGS(), "CXXFLAGS": get.CXXFLAGS(), "LDFLAGS": get.LDFLAGS(), "DESTDIR": get.installDIR() } shelltools.system('./jb configure \ cc="%(CC)s" \ cflags="%(CFLAGS)s" \ cppflags="%(CXXFLAGS)s" \ ldflags="%(LDFLAGS)s" \ install-gconf-schemas=no \ prefix="/usr" \ sysconfdir="/etc" \ localstatedir="/var" \ libdir="/usr/lib" \ scrollkeeper-dir="/var/lib/scrollkeeper" \ destdir="%(DESTDIR)s"' % CONSTS)
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-midi-timidity \ --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 setup(): shelltools.sym(".", "m4") shelltools.export("CFLAGS", "%s -DDRV_RAW" % get.CFLAGS()) autotools.autoreconf("-vfi -Im4") libtools.gnuconfig_update() options = "--disable-esd \ --disable-af \ --disable-alsa \ --enable-oss \ --disable-static" if get.buildTYPE() == "emul32": options += " --bindir=/emul32/bin" shelltools.export("CFLAGS", "%s -DDRV_RAW -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) autotools.configure(options)
def setup(): shelltools.export("WANT_AUTOCONF", "2.5") autotools.autoconf() shelltools.export("DSOFLAGS", get.LDFLAGS()) autotools.configure("--with-cups-user=pnp \ --with-cups-group=pnp \ --with-system-groups=pnpadmin \ --with-docdir=/usr/share/cups/html \ --localstatedir=/var \ --enable-pam \ --enable-ssl \ --enable-gnutls \ --enable-slp \ --enable-nls \ --enable-dbus \ --enable-png \ --enable-jpeg \ --enable-tiff \ --enable-threads \ --enable-libpaper")
def setup(): shelltools.export("DSOFLAGS", get.LDFLAGS()) shelltools.export("CFLAGS", "%s -DLDAP_DEPRECATED" % get.CFLAGS()) # FIXME: pnp, pnpadmin -> lp, lpadmin # Add --enable-avahi after porting avahi support. # pdftops from cups is currently overridden by our additional file autotools.aclocal("-I config-scripts") autotools.autoconf("-I config-scripts") autotools.configure('--with-cups-user=pnp \ --with-cups-group=pnp \ --with-system-groups=pnpadmin \ --with-docdir=/usr/share/cups/html \ --with-dbusdir=/etc/dbus-1 \ --localstatedir=/var \ --enable-slp \ --enable-acl \ --enable-libpaper \ --with-pdftops=pdftops \ --enable-ssl \ --enable-gnutls \ --enable-threads \ --enable-gssapi \ --enable-dbus \ --enable-pam \ --enable-png \ --enable-jpeg \ --enable-tiff \ --enable-pie \ --enable-relro \ --enable-dnssd \ --enable-browsing \ --enable-ldap \ --disable-openssl \ --disable-launchd \ --without-rcdir \ --with-optim="%s -fstack-protector-all" \ --without-php' % get.CFLAGS())
def setup(): pisitools.dosed("pppd/Makefile.linux", "^#USE_PAM=y", "USE_PAM=y") pisitools.dosed("pppd/Makefile.linux", "#HAVE_INET6", "HAVE_INET6") pisitools.dosed("pppd/Makefile.linux", "^#CBCP=y", "CBCP=y") pisitools.dosed("pppd/plugins/Makefile.linux", "SUBDIRS := rp-pppoe", "SUBDIRS := rp-pppoe radius") pisitools.dosed("pppd/plugins/radius/radiusclient/lib/Makefile.in", "^CFLAGS = @CFLAGS@", "CFLAGS = @CFLAGS@ -fPIC") pisitools.dosed("pppd/plugins/rp-pppoe/if.c", "net/bpf.h", "pcap-bpf.h") pisitools.dosed("pppd/demand.c", "net/bpf.h", "pcap-bpf.h") pisitools.dosed("pppd/sys-linux.c", "net/bpf.h", "pcap-bpf.h") shelltools.export("WANT_AUTOCONF", "2.1") libtools.gnuconfig_update() shelltools.export("LDFLAGS", "%s -Wl,-z,now" % get.LDFLAGS()) # We must build radius client first shelltools.cd("pppd/plugins/radius/radiusclient") autotools.configure() autotools.make("-j1") # and then build the original package shelltools.cd("../../../..") autotools.rawConfigure("--prefix=/usr")
def setup(): # Breaks linking when sandbox is disabled shelltools.export("CLDFLAGS", get.LDFLAGS()) shelltools.export("LIB_PTHREAD", "-lpthread") pisitools.dosed("conf/example.conf.in", "use_lvmetad = 0", "use_lvmetad = 1") autotools.autoreconf("-fi") autotools.configure("--enable-lvm1_fallback \ --with-default-pid-dir=/run \ --with-default-run-dir=/run/lvm \ --with-default-locking-dir=/run/lock/lvm \ --with-dmeventd-path=/sbin/dmeventd \ --enable-fsadm \ --with-pool=internal \ --with-user= \ --with-group= \ --with-usrlibdir=/usr/lib \ --with-usrsbindir=%s \ --with-udevdir=/lib/udev/rules.d \ --with-device-uid=0 \ --with-device-gid=6 \ --with-device-mode=0660 \ --enable-dmeventd \ --enable-udev_rules \ --enable-udev_sync \ --with-snapshots=internal \ --with-mirrors=internal \ --with-interface=ioctl \ --enable-static_link=no \ --disable-readline \ --disable-realtime \ --disable-selinux \ --with-confdir=/etc \ --enable-applib \ --enable-cmdlib \ --enable-pkgconfig " % get.sbinDIR())
def setup(): shelltools.export("LDFLAGS", "%s -Wl,--as-needed" % get.LDFLAGS()) shelltools.echo("config.layout", config_layout()) pisitools.dosed("config.layout", "version", get.srcTAG()) pisitools.dosed("configure.in", "(?m)(my_libtool=).*", r"my_libtool=/usr/bin/libtool") for d in ["apr", "apr-util", "pcre"]: shelltools.unlinkDir("srclib/%s" % d) #autotools.autoheader() autotools.autoreconf("-fiv") autotools.rawConfigure('--with-mpm=prefork \ --enable-layout=Pardus \ --with-ssl=/usr \ --enable-ssl=shared \ %s \ --with-z=/usr \ --with-port=80 \ --with-program-name=apache2 \ --with-suexec-safepath="/usr/bin:/bin" \ --with-suexec-logfile=/var/log/apache2/suexec_log \ --with-suexec-bin=/usr/sbin/suexec2 \ --with-suexec-userdir="public_html" \ --with-suexec-caller=apache \ --with-suexec-docroot=/var/www \ --with-suexec-uidmin=1000 \ --with-suexec-gidmin=100 \ --with-suexec-umask=077 \ --enable-suexec=shared \ --enable-pie \ --with-pcre=/usr/bin/pcre-config' % modules_config()) #--with-apr=/usr/bin/apr-1-config \ #--with-apr-util=/usr/bin/apu-1-config \ pisitools.dosed("include/ap_config_auto.h", "apache2\.conf", "httpd.conf")
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 setup(): removeWerror("./") shelltools.export("CFLAGS", "%s -fno-strict-aliasing -Wno-error" % get.CFLAGS()) shelltools.export("LDFLAGS", get.LDFLAGS().replace("-Wl,--as-needed", "")) # autotools.autoreconf("-fi") shelltools.system("./bootstrap --prefix=/usr \ --host=%s \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --sysconfdir=/etc \ --libdir=/usr/lib \ --localstatedir=/var/lib \ --disable-warns-as-err \ --enable-server \ --datadir=/usr/share/mpeg4ip \ --enable-a52dec \ --enable-alsa \ --enable-faac \ --enable-ffmpeg \ --enable-gtk-glib \ --enable-id3tags \ --enable-ipv6 \ --enable-mmx \ --enable-mp3lame \ --enable-mp4live \ --enable-mpeg2dec \ --enable-player \ --enable-v4l2 \ --enable-x264 \ --enable-xvid \ --disable-arts \ --disable-srtp \ --disable-ppc \ --disable-static \ --disable-esd \ --disable-nas" % get.CHOST())
def setup(): shelltools.export("DSOFLAGS", get.LDFLAGS()) shelltools.export("CFLAGS", "%s -DLDAP_DEPRECATED" % get.CFLAGS()) # pdftops from cups is currently overridden by our additional file # For --enable-avahi autotools.aclocal("-I config-scripts") autotools.autoconf("-I config-scripts") autotools.configure('--with-cups-user=lp \ --with-cups-group=lp \ --with-system-groups=lpadmin \ --with-docdir=/usr/share/cups/html \ --with-dbusdir=/etc/dbus-1 \ --with-pdftops=pdftops \ --with-optim="%s -fstack-protector-all -DLDAP_DEPRECATED=1" \ --with-php=/usr/bin/php-cgi \ --without-java \ --enable-slp \ --enable-acl \ --enable-libpaper \ --enable-debug \ --enable-avahi \ --enable-gssapi \ --enable-dbus \ --enable-pam \ --enable-png \ --enable-jpeg \ --enable-tiff \ --enable-relro \ --enable-dnssd \ --enable-browsing \ --enable-ldap \ --enable-threads \ --enable-gnutls \ --disable-launchd \ --without-rcdir' % get.CFLAGS())
def setup(): autotools.autoreconf("-fi") autotools.configure( "--bindir=/bin \ --with-tcsetpgrp \ --enable-maildir-support \ --enable-etcdir=/etc/zsh \ --enable-zshenv=/etc/zsh/zshenv \ --enable-zlogin=/etc/zsh/zlogin \ --enable-zlogout=/etc/zsh/zlogout \ --enable-zprofile=/etc/zsh/zprofile \ --enable-zshrc=/etc/zsh/zshrc \ --enable-fndir=/usr/share/zsh/%s/functions \ --enable-scriptdir=/usr/share/zsh/%s/scripts \ --enable-site-fndir=/usr/share/zsh/site-functions \ --enable-function-subdirs \ --enable-cflags=\"%s\" \ --enable-ldflags=\"%s\" \ --with-ncurses \ --enable-pcre \ --enable-caps \ --enable-multibyte" % (get.srcVERSION(), get.srcVERSION(), get.CFLAGS(), get.LDFLAGS()))
def setup(): options = "--disable-dependency-tracking \ --disable-static \ --disable-jpg-shared \ --disable-png-shared \ --disable-webp-shared \ --disable-tif-shared" if get.buildTYPE() == "emul32": options += " --includedir=/usr/include \ --libdir=/usr/lib32 \ --disable-webp" 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()) for i in ["NEWS", "AUTHORS", "ChangeLog"]: shelltools.touch(i) #autotools.autoreconf("-vfi") autotools.configure(options)
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(): options = "--enable-x11-backend \ --enable-xinerama \ --enable-xkb \ --disable-silent-rules \ --disable-schemas-compile \ --enable-introspection \ --enable-gtk2-dependency \ --disable-papi \ --disable-wayland-backend \ " shelltools.export("CFLAGS", get.CFLAGS().replace("-fomit-frame-pointer", "")) if get.buildTYPE() == "_emul32": options += " --libdir=/usr/lib32 \ --bindir=/_emul32/bin \ --sbindir=/_emul32/sbin \ --enable-colord=no \ " 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.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") pisitools.dosed("configure.ac", "cups-config", "cups-config-32bit") autotools.autoreconf("-fiv") autotools.configure(options) pisitools.dosed("libtool", "( -shared )", r" -Wl,-O1,--as-needed\1")