Fixed CFLAGS variable in base/{db,gawk}

Converted uppercase variables to lowercase variables in base/fftw
Insert CFLAGS into following build files since the CFLAGS set by bldpkg are not respected by the build systems of these packages:
-> giflib
-> git
-> libelf-compat
Discarded V=s and V=1 arguments from make command in base/{hdparm,hunspell,jam}
Discarded CPU architecture check and related builddist variable from base/gmp
Removed command to discard static library in base/libaio
Temporarily commented out sed command in base/libxml2
This commit is contained in:
PktSurf 2022-10-04 20:20:41 +05:30
parent 546e17d602
commit 0e36a18b56
13 changed files with 22 additions and 27 deletions

View file

@ -24,7 +24,7 @@ build() {
cd build_unix
CFLAGS="-D_GNU_SOURCE" \
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
db_cv_clock_monotonic=yes \
db_cv_build_sequence=yes \
db_cv_mmap_extend=yes \

View file

@ -17,7 +17,7 @@ build() {
./configure \
--prefix=""
make
make CFLAGS="$CFLAGS"
make install DESTDIR=$pkg
cp COPYING $pkgdocs/

View file

@ -18,22 +18,22 @@ build() {
# Default compile options
defconfopts() {
[ "$ARCH" = "aarch64" ] && \
ADDCONFIGOPTS="--enable-openmp"
[ "$arch" = "aarch64" ] && \
addconfigopts="--enable-openmp"
./configure \
--prefix="" \
--enable-shared \
--disable-static \
--enable-threads \
$ADDCONFIGOPTS \
$LIBOPTIONS
$addconfigopts \
$liboptions
}
defmakeopts() {
make
make install DESTDIR=$pkg
make clean
unset LIBOPTIONS
unset liboptions
}
# Standard build
@ -41,12 +41,12 @@ build() {
defmakeopts
# Build with floating-point libs
LIBOPTIONS=--enable-float
liboptions=--enable-float
defconfopts
defmakeopts
# Build with double-precision libs
LIBOPTIONS=--enable-long-double
liboptions=--enable-long-double
defconfopts
make
make install DESTDIR=$pkg

View file

@ -14,7 +14,7 @@ build() {
cd $app-$version
fixbuilddirpermissions
CFLAGS="-static" \
CFLAGS="$CFLAGS -static" \
./configure \
--prefix="" \
--libexecdir=/lib \
@ -22,7 +22,7 @@ build() {
--without-mpfr \
--without-readline
make CFLAGS="-static"
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/

View file

@ -16,7 +16,7 @@ build() {
applypatch $srcdir/giflib-5.1.9-fix-missing-quantize-API-symbols.patch
make
make CFLAGS="$CFLAGS"
make install DESTDIR=$pkg PREFIX="/"
cp COPYING $pkgdocs/

View file

@ -14,11 +14,11 @@ build() {
cd $app-$version
fixbuilddirpermissions
make CC="$CC" $MAKEFLAGS \
make CC="$CC" $MAKEFLAGS CFLAGS="$CFLAGS" \
prefix="/" gitexecdir="/lib/git-core" \
NO_TCLTK=1 NO_PYTHON=1 NO_EXPAT=1 NO_GETTEXT=1 \
NO_REGEX=NeedsStartEnd \
DESTDIR="$pkg" V=1 all install install-man
DESTDIR="$pkg" all install install-man
rm -f $pkg/lib/perl5/core_perl_perllocal.pod
install -Dm 755 gitk-git/gitk $pkg/bin/gitk

View file

@ -14,14 +14,10 @@ build() {
cd $app-$version
fixbuilddirpermissions
printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > tests/Makefile.in
[ "$arch" = "aarch64" ] && builddist="--build=aarch64-musl-linux"
./configure \
--prefix="" \
--with-pic \
--enable-cxx \
$builddist
--enable-cxx
make
make install DESTDIR=$pkg

View file

@ -14,7 +14,7 @@ build() {
cd $app-$version
fixbuilddirpermissions
make V=s
make
make install DESTDIR=$pkg mandir="/share/man" sbindir="/bin"
cp LICENSE.TXT $pkgdocs/

View file

@ -19,7 +19,7 @@ build() {
--disable-static \
--disable-nls
make V=1
make
make install DESTDIR=$pkg
cp COPYING* $pkgdocs/

View file

@ -15,7 +15,7 @@ build() {
unzip $srcdir/$app-$version.zip
fixbuilddirpermissions
make V=s
make
./jam0 -sBINDIR=$pkg/bin install
cp Porting README $pkgdocs/

View file

@ -17,8 +17,6 @@ build() {
make
make prefix="$pkg" libdir=$pkg/lib install
rm -f $pkg/lib/libaio.a
cp COPYING $pkgdocs/
mkfinalpkg

View file

@ -13,7 +13,7 @@ build() {
cd $app-$version
fixbuilddirpermissions
echo "CFLAGS += -fPIC" > config.mak
echo "CFLAGS += $CFLAGS -fPIC" > config.mak
sed -i 's@HEADERS = src/libelf.h@HEADERS = src/libelf.h src/gelf.h@' Makefile
make

View file

@ -25,7 +25,7 @@ build() {
--disable-silent-rules \
--with-python=/bin/python3
sed -i 's@-L -L@@g' python/Makefile
#sed -i 's@-L -L@@g' python/Makefile
make
make install DESTDIR=$pkg
@ -36,7 +36,8 @@ build() {
}
sha512sums="
df1c6486e80f0fcf3c506f3599bcfb94b620c00d0b5d26831bc983daa78d58ec58b5057b1ec7c1a26c694f40199c6234ee2a6dcabf65abfa10c447cb5705abbd libxml2-2.9.12.tar.gz
7a2a9b03cc7a1f3ed3d64871818039bc3f658979c37d0e43685f400838c22c081c23a058b8599f1d27b4d3ea95cdbbb4f328fc541f27501cde5eacd2a9125546 libxml2-2.9.12.tar.lz
a205c97fa1488fb8907cfa08b5f82e2055c80b86213dc3cc5c4b526fe6aa786bcc4e4eeb226c44635a1d021307b39e3940f706c42fb60e9e3e9b490a84164df7 libxml2-2.9.8-python3-unicode-errors.patch
347178e432379d543683cba21b902e7305202c03e8dbd724ae395963d677096a5cfc4e345e208d498163ca5174683c167610fc2b297090476038bc2bb7c84b4f revert-Make-xmlFreeNodeList-non-recursive.patch
3cee30d3c190879e31f4bf27699b5a9ed2a8615982375078702150dbdf9171bf0527b48a63beaa79de6afee5725076fb5214c27235737ab9b42d869d1c3c8b1c 652dd12a858989b14eed4e84e453059cd3ba340e.diff
"