mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Add helper macro for running configure with standard arguments
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
7f020c855b
commit
50dce293c1
45 changed files with 69 additions and 126 deletions
1
mk.sh
1
mk.sh
|
@ -58,6 +58,7 @@ source "$SCRIPTDIR/util/pkgcmd.sh"
|
|||
source "$SCRIPTDIR/util/toolchain.sh"
|
||||
source "$SCRIPTDIR/util/misc.sh"
|
||||
source "$SCRIPTDIR/util/override.sh"
|
||||
source "$SCRIPTDIR/util/autotools.sh"
|
||||
|
||||
############################## toolchain config ##############################
|
||||
include_merge "TOOLCHAIN"
|
||||
|
|
|
@ -10,7 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET"
|
||||
run_configure "$1"
|
||||
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --build="$HOSTTUPLE" --host="$TARGET" \
|
||||
--without-bash-malloc --with-installed-readline
|
||||
run_configure "$1" --without-bash-malloc --with-installed-readline
|
||||
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
|
|
@ -12,8 +12,7 @@ prepare() {
|
|||
build() {
|
||||
cp -r ${1}/* ${PKGBUILDDIR}
|
||||
|
||||
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--disable-documentation --disable-convert \
|
||||
run_configure "." --disable-documentation --disable-convert \
|
||||
--disable-zstd --disable-backtrace --disable-python
|
||||
|
||||
make -j $NUMJOBS
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --libexecdir=/lib/libexec
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -15,10 +15,7 @@ build() {
|
|||
|
||||
cp -r $SOURCE/* $PKGBUILDDIR
|
||||
|
||||
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--datadir=/share --libexecdir=/lib/libexec \
|
||||
--disable-static
|
||||
|
||||
run_configure "."
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET"
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--disable-compat-symlinks --without-udev
|
||||
|
||||
run_configure "$1" --disable-compat-symlinks --without-udev
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --sbindir="/bin"
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||
--without-xmlwf --with-libbsd
|
||||
|
||||
run_configure "$1" --without-xmlwf --with-libbsd
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --libexecdir=/lib/libexec \
|
||||
--localstatedir=/var/lib/locate
|
||||
|
||||
run_configure "$1" --localstatedir=/var/lib/locate
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --libexecdir="/lib/libexec"
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static --enable-cxx
|
||||
|
||||
run_configure "$1" --enable-cxx
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET"
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --with-regex=regcmp
|
||||
|
||||
run_configure "$1" --with-regex=regcmp
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-servers \
|
||||
--disable-dnsdomainname --disable-rcp --disable-rexec \
|
||||
--enable-hostname --disable-rlogin --disable-rsh \
|
||||
--disable-logger --disable-talk --disable-ifconfig
|
||||
run_configure "$1" --disable-servers --disable-dnsdomainname \
|
||||
--disable-rcp --disable-rexec --enable-hostname \
|
||||
--disable-rlogin --disable-rsh --disable-logger \
|
||||
--disable-talk --disable-ifconfig
|
||||
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
|
|
@ -10,12 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
local SOURCE="$1"
|
||||
local DEPLOY="$2"
|
||||
|
||||
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--libexecdir=/lib/libexec
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,8 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --enable-optional-progs \
|
||||
--disable-tests --enable-libkeymap --disable-vlock
|
||||
run_configure "$1" --enable-optional-progs --disable-tests \
|
||||
--enable-libkeymap --disable-vlock
|
||||
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --with-xz --with-zlib \
|
||||
--with-bashcompletiondir="/share/bash-completion/completions"
|
||||
|
||||
run_configure "$1" --with-xz --with-zlib
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,11 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_realloc_0_nonnull=yes \
|
||||
$1/configure --prefix="" --build="$HOSTTUPLE" --host="$TARGET" \
|
||||
--sysconfdir=/etc --sbindir=/bin --disable-static \
|
||||
--with-drill --without-pyldns --without-pyldnsx \
|
||||
run_configure "$1" --with-drill --without-pyldns --without-pyldnsx \
|
||||
--without-p5-dns-ldns --with-ssl="$TCDIR/$TARGET"
|
||||
|
||||
make -j $NUMJOBS
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --with-regex=regcmp
|
||||
|
||||
run_configure "$1" --with-regex=regcmp
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET"
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET"
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||
--disable-cli
|
||||
|
||||
run_configure "$1" --disable-cli
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -13,10 +13,7 @@ build() {
|
|||
cp -r ${1}/* ${PKGBUILDDIR}
|
||||
sed -i "s#/usr/include/libnl3#$TCDIR/$TARGET/include/libnl3#g" configure
|
||||
|
||||
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--libexecdir=/lib/libexec --with-pcap=linux \
|
||||
--enable-ipv6
|
||||
|
||||
run_configure "." --with-pcap=linux --enable-ipv6
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" \
|
||||
--enable-shared --disable-static
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --enable-utf8
|
||||
|
||||
run_configure "$1" --enable-utf8
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,8 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --with-shared \
|
||||
--without-debug --without-ada --enable-widec \
|
||||
--with-pkg-config-libdir=/lib/pkgconfig \
|
||||
run_configure "$1" --with-shared --without-debug --without-ada \
|
||||
--enable-widec --with-pkg-config-libdir=/lib/pkgconfig \
|
||||
--enable-pc-files --disable-stripping
|
||||
|
||||
make -j $NUMJOBS
|
||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--disable-debug --disable-man-doc --without-mini-gmp
|
||||
|
||||
run_configure "$1" --disable-debug --disable-man-doc --without-mini-gmp
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--libexecdir=/lib/libexec \
|
||||
--with-pie --without-pam --without-stackprotect \
|
||||
run_configure "$1" --with-pie --without-pam --without-stackprotect \
|
||||
--without-selinux --disable-strip \
|
||||
--with-sandbox=seccomp_filter \
|
||||
--with-privsep-path=/var/lib/sshd
|
||||
|
|
|
@ -10,11 +10,8 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_realloc_0_nonnull=yes \
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||
--enable-watch8bit --with-ncurses --without-systemd \
|
||||
--disable-kill --disable-numa --sbindir=/bin
|
||||
run_configure "$1" --enable-watch8bit --with-ncurses \
|
||||
--without-systemd --disable-kill --disable-numa
|
||||
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
|
|
@ -10,11 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_realloc_0_nonnull=yes \
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||
--disable-selinux
|
||||
|
||||
run_configure "$1" --disable-selinux
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||
|
||||
run_configure "$1"
|
||||
make SHLIB_LIBS="-lncursesw" -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET"
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -13,8 +13,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--disable-man --without-libpam --without-selinux \
|
||||
run_configure "$1" --disable-man --without-libpam --without-selinux \
|
||||
--with-sha-crypt --with-group-name-max-length=32
|
||||
|
||||
make -j $NUMJOBS
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-tcl
|
||||
|
||||
run_configure "$1" --disable-tcl
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --libexecdir=/lib/libexec
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,8 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--libexecdir=/lib/libexec --with-system-libpcap \
|
||||
--with-cap-ng --with-crypto="$TCDIR/$TARGET"
|
||||
run_configure "$1" --with-system-libpcap --with-cap-ng \
|
||||
--with-crypto="$TCDIR/$TARGET"
|
||||
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
|
|
@ -10,9 +10,8 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||
--sysconfdir=/etc --with-pidfile=/run/unbound.pid \
|
||||
--sbindir=/bin --with-libexpat="$TCDIR/$TARGET" \
|
||||
run_configure "$1" --with-pidfile=/run/unbound.pid \
|
||||
--with-libexpat="$TCDIR/$TARGET" \
|
||||
--with-ssl="$TCDIR/$TARGET"
|
||||
|
||||
make -j $NUMJOBS
|
||||
|
|
|
@ -10,18 +10,9 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
||||
--prefix="" --host="$TARGET" --sbindir="/bin" \
|
||||
--with-bashcompletiondir="/share/bash-completion/completions" \
|
||||
--disable-pylibmount --disable-static --without-python \
|
||||
ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
||||
run_configure "$1" --disable-pylibmount --without-python \
|
||||
--without-systemd --without-systemdsystemunitdir \
|
||||
--disable-cal --disable-chmem --disable-fdformat \
|
||||
--disable-fsck --disable-logger --disable-mesg \
|
||||
--disable-minix --disable-bfs --disable-more \
|
||||
--disable-nologin --disable-nsenter --disable-pivot_root \
|
||||
--disable-raw --disable-sulogin --disable-switch_root \
|
||||
--disable-ul --disable-unshare --disable-utmpdump \
|
||||
--disable-uuidd --disable-wall --disable-zramctl \
|
||||
--disable-makeinstall-chown \
|
||||
--disable-makeinstall-setuid \
|
||||
--enable-agetty
|
||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||
|
||||
run_configure "$1"
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
|
|
14
util/autotools.sh
Normal file
14
util/autotools.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
run_configure() {
|
||||
local srcdir="$1"
|
||||
shift
|
||||
|
||||
ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_realloc_0_nonnull=yes \
|
||||
$srcdir/configure --prefix="" --build="$HOSTTUPLE" --host="$TARGET" \
|
||||
--bindir="/bin" --sbindir="/bin" --sysconfdir="/etc" \
|
||||
--libexecdir="/lib/libexec" --datarootdir="/share" \
|
||||
--datadir="/share" --sharedstatedir="/share" \
|
||||
--with-bashcompletiondir="/share/bash-completion/completions" \
|
||||
--includedir="/include" \
|
||||
--enable-shared --disable-static $@
|
||||
}
|
Loading…
Reference in a new issue