This commit is contained in:
hippoz 2021-07-14 15:59:20 +03:00
parent 2aafe21403
commit 10fcfc26d1
No known key found for this signature in database
GPG key ID: 7C52899193467641
3 changed files with 12 additions and 1 deletions

View file

@ -16,7 +16,7 @@ mkdir build
cd build cd build
../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++ ../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++
make make
make install DESTDIR="$1" make DESTDIR="$1" install
ln -s gcc "$1/usr/bin/cc" ln -s gcc "$1/usr/bin/cc"
echo "#!/bin/sh" > "$1"/usr/bin/c99 echo "#!/bin/sh" > "$1"/usr/bin/c99
echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99 echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99

6
libpng/build Normal file
View file

@ -0,0 +1,6 @@
wget https://github.com/glennrp/libpng/archive/v1.6.37.tar.gz
tar -xf v1.6.37.tar.gz
cd v1.6.37
make
make DESTDIR="$1" install

5
libpng/package Normal file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="1.6.37"
pkg_config_name="libpng"
pkg_config_makedepends=""
pkg_config_depends=""