mpsd.ini 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. [export]
  2. SRC = /tmp/work/src
  3. PKG = /tmp/work/pkg
  4. SOURCES_DIR = /sources
  5. CARCH = "x86_64"
  6. CHOST = "x86_64-pc-linux-gnu"
  7. CPPFLAGS = "-D_FORTIFY_SOURCE=2"
  8. CFLAGS = "-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
  9. CXXFLAGS = "-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
  10. LDFLAGS = "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
  11. MAKEJOBS = "-j$((`nproc`+1))"
  12. CONF_OPT = --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib \
  13. --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc \
  14. --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share \
  15. --localstatedir=/var --disable-static
  16. CMAKE_OPT= -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib
  17. M4 = m4
  18. [files]
  19. compress = opt,tools,boot,usr,etc,var,.icbilgi,.meta
  20. invalid = bin,sbin,lib,lib64,usr/sbin,usr/lib64
  21. delete = usr/share/man,usr/share/info,usr/share/doc,usr/share/gtk-doc,usr/lib/systemd,var/run
  22. ;strip = true
  23. ;nostrip = usr/lib/x.so
  24. [source]
  25. xz = {{.}}/$isim-$surum.tar.xz
  26. gz = {{.}}/$isim-$surum.tar.gz
  27. bz2 = {{.}}/$isim-$surum.tar.bz2
  28. zip = {{.}}/$isim-$surum.zip
  29. github = https://github.com/{{.}}/archive/v${surum}.tar.gz
  30. [build]
  31. ekconf = export EXT_OPT="{{.}}"
  32. betik = {{.}}
  33. dosya = bash ${TDIR}/{{.}}
  34. tip = build_type
  35. jobs = "export MAKEJOBS=-j{{.}}"
  36. noflag = export CFLAGS="" && export CPPFLAGS="" && export LDFLAGS="" && export CXXFLAGS="";
  37. bayrak = %(noflag)s
  38. patch = patch -Np1 -i $SRC/{{.}}
  39. yama = %(patch)s
  40. export = export {{.}}
  41. meson = "cd $SRC && milis-meson ${EXT_OPT} {{.}} build-{{.}} && meson compile -C build-{{.}} && meson install -C build-{{.}} --destdir $PKG && unset EXT_OPT"
  42. gnu = "cd $SRC/{{.}} && ./configure ${CONF_OPT} ${EXT_OPT} && make ${MAKEJOBS} && make DESTDIR=$PKG install && unset EXT_OPT"
  43. py = "cd $SRC/{{.}} && python3 setup.py build ${EXT_OPT} && python3 setup.py install --root=${PKG} --optimize=1 && unset EXT_OPT"
  44. [build_type]
  45. autogen = ./autogen.sh && ./configure ${CONF_OPT} ${EXT_OPT} && make ${MAKEJOBS}
  46. gnu = ./configure ${CONF_OPT} ${EXT_OPT} && make ${MAKEJOBS}
  47. cmake = mkdir -p build && cd build && cmake ${CMAKE_OPT} ${EXT_OPT} ../ && make ${MAKEJOBS}
  48. py3 = python3 setup.py build
  49. py2 = python2 setup.py build
  50. perl = perl Makefile.PL INSTALLDIRS=vendor && make
  51. meson = cd $SRC && meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features \
  52. enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true ${SRC_DIR} build ${EXT_OPT}
  53. ninja = mkdir -p build && ninja -C build
  54. waf = python3 waf configure --prefix=/usr ${EXT_OPT} && python3 waf build
  55. qmake = qmake-qt5 CONFIG+=release PREFIX=/usr ${EXT_OPT} && make ${MAKEJOBS}
  56. go = go build -o $isim
  57. [install]
  58. ekconf = export EXT_OPT={{.}}
  59. betik = {{.}}
  60. tip = install_type
  61. dosya = bash ${TDIR}/{{.}}
  62. nostrip= touch $PKG/nostrip
  63. [install_type]
  64. gnu = make DESTDIR=$PKG install $EXT_OPT
  65. cmake = cd build && make DESTDIR=$PKG install
  66. py3 = python3 setup.py install --root=${PKG} --optimize=1 --skip-build $EXT_OPT
  67. py2 = python2 setup.py install --root=${PKG} --optimize=1 --skip-build $EXT_OPT
  68. ninja = DESTDIR=$PKG ninja -C build install
  69. meson = cd $SRC && DESTDIR=$PKG ninja -C build install
  70. waf = python3 waf install --destdir=$PKG
  71. bin = install -Dm755 $isim -t $PKG/usr/bin/
  72. qmake = make INSTALL_ROOT=${PKG} install && [ -d $PKG/usr/lib ] \
  73. && find $PKG/usr/lib -type f -name '*.prl' -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
  74. [source_site]
  75. KERNEL_SITE = "https://www.kernel.org/pub/linux/"
  76. GNU_SITE = "https://ftp.gnu.org/gnu/"
  77. GNOME_SITE = "https://download.gnome.org/sources"
  78. PYPI_SITE = "https://files.pythonhosted.org/packages/source"
  79. XFCE4_SITE = "https://archive.xfce.org/src"
  80. CPAN_SITE = "https://www.cpan.org/modules/by-module"
  81. SOURCEFORGE_SITE = "https://downloads.sourceforge.net/sourceforge"
  82. FREEDESKTOP_SITE = "https://www.freedesktop.org/software/"
  83. DEBIAN_SITE = "http://ftp.debian.org/debian/pool/"
  84. KDE_SITE = "https://download.kde.org/stable/"
  85. XORG_SITE = "https://www.x.org/releases/individual"