Skip to content

Commit

Permalink
updated ${OS_TRIPLET} var to all recipes :)
Browse files Browse the repository at this point in the history
  • Loading branch information
xn0px90 authored Dec 9, 2023
1 parent 9731e81 commit 2e3af5f
Show file tree
Hide file tree
Showing 66 changed files with 79 additions and 79 deletions.
12 changes: 6 additions & 6 deletions jinx-config
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ JINX_MAJOR_VER=0.2
export CFLAGS="-O2 -pipe -fcf-protection"
export CXXFLAGS="$CFLAGS"

OS_TRIPLET=x86_64-ironclad
OS_TRIPLET=x86_64-vinix

autotools_recursive_regen() {
for f in $(find . -name configure.ac); do
echo "* autotools regen in '$(dirname $f)'..."
( cd "$(dirname "$f")" && libtoolize -cfvi && autoreconf -fvi "$@" )
done
#autotools_recursive_regen() {
# for f in $(find . -name configure.ac); do
# echo "* autotools regen in '$(dirname $f)'..."
# ( cd "$(dirname "$f")" && libtoolize -cfvi && autoreconf -fvi "$@" )
# done
}
10 changes: 5 additions & 5 deletions recipes/bzip2
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ build() {
cp -r ${source_dir}/. .
sed -i 's/all: libbz2.a bzip2 bzip2recover test/all: libbz2.a bzip2 bzip2recover/g' Makefile

make CC=x86_64-vinix-gcc CFLAGS=-fPIC -f Makefile-libbz2_so
make CC=${OS_TRIPLET}-gcc CFLAGS=-fPIC -f Makefile-libbz2_so
make clean
make CC=x86_64-vinix-gcc AR=x86_64-vinix-ar CFLAGS=-fPIC -j${parallelism}
make CC=${OS_TRIPLET}-gcc AR=${OS_TRIPLET}-ar CFLAGS=-fPIC -j${parallelism}
}

package() {
mkdir -p "${dest_dir}${prefix}/bin" "${dest_dir}${prefix}/lib" "${dest_dir}${prefix}/lib/pkgconfig" "${dest_dir}${prefix}/include"
command install -s --strip-program=x86_64-vinix-strip bzip2-shared "${dest_dir}${prefix}/bin/bzip2"
command install -s --strip-program=x86_64-vinix-strip bzip2recover "${dest_dir}${prefix}/bin/"
command install -s --strip-program=x86_64-vinix-strip libbz2.so.1.0.8 "${dest_dir}${prefix}/lib/"
command install -s --strip-program=${OS_TRIPLET}-strip bzip2-shared "${dest_dir}${prefix}/bin/bzip2"
command install -s --strip-program=${OS_TRIPLET}-strip bzip2recover "${dest_dir}${prefix}/bin/"
command install -s --strip-program=${OS_TRIPLET}-strip libbz2.so.1.0.8 "${dest_dir}${prefix}/lib/"
command install -m 644 bzlib.h "${dest_dir}${prefix}/include/"
ln -sf libbz2.so.1.0.8 "${dest_dir}${prefix}/lib/libbz2.so.1.0"
ln -sf libbz2.so.1.0 "${dest_dir}${prefix}/lib/libbz2.so.1"
Expand Down
2 changes: 1 addition & 1 deletion recipes/fontconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ imagedeps="python gperf"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/freetype
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ imagedeps="gcc"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
8 changes: 4 additions & 4 deletions recipes/gcc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ cbuild() {
CXXFLAGS_FOR_TARGET="$CFLAGS" \
CFLAGS_FOR_TARGET="$CFLAGS" \
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--target=x86_64-vinix \
--target=${OS_TRIPLET} \
--with-sysroot=/ \
--with-build-sysroot=${sysroot_dir} \
--enable-languages=c,c++ \
Expand All @@ -29,8 +29,8 @@ package() {
DESTDIR="${dest_dir}" make install-strip-gcc

DESTDIR="${dest_dir}" make install-strip-target-libgcc
rm "${dest_dir}${prefix}"/lib/gcc/x86_64-vinix/12.2.0/crti.o
rm "${dest_dir}${prefix}"/lib/gcc/x86_64-vinix/12.2.0/crtn.o
rm "${dest_dir}${prefix}"/lib/gcc/${OS_TRIPLET}/12.2.0/crti.o
rm "${dest_dir}${prefix}"/lib/gcc/${OS_TRIPLET}/12.2.0/crtn.o

DESTDIR="${dest_dir}" make install-strip-target-libstdc++-v3

Expand Down
2 changes: 1 addition & 1 deletion recipes/grep
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build() {
libtoolize -cfvi && autoreconf -fvi

./configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--disable-nls

Expand Down
2 changes: 1 addition & 1 deletion recipes/less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc ncurses"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix="${prefix}" \
--sysconfdir=/etc

Expand Down
2 changes: 1 addition & 1 deletion recipes/libexpat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--disable-static \
--without-xmlwf
Expand Down
2 changes: 1 addition & 1 deletion recipes/libffi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--disable-static

Expand Down
2 changes: 1 addition & 1 deletion recipes/libfontenc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-proto zlib"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libice
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libiconv
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ imagedeps="binutils"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--disable-static \
--enable-shared \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libintl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc-base libiconv"

configure() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--without-emacs \
--without-lispdir \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libpng
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc zlib"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--disable-static

Expand Down
2 changes: 1 addition & 1 deletion recipes/libsm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans libice"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libx11
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ imagedeps="gcc"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxau
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-proto"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxaw
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxext libxt libxmu libxpm"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxcb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ imagedeps="python"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxcrypt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc-base"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--enable-obsolete-api=yes \
--disable-xcrypt-compat-files \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxcursor
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc libxrender libxfixes libx11"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxdamage
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans libxfixes"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxdmcp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-proto xorg-util-macros libxau"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxext
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxfixes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hostdeps="gcc autoconf automake libtool pkg-config"
deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans"
build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxfont2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans freetype fontconfig bzi

configure() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxft
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxrender freetype fontconfig"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans libxext libxfixes"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxkbfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc zlib"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--disable-static \
--without-threads \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxmu
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans libxext libxt"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxpm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxext libxt"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxrandr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans libxrender libxext"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxrender
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxshmfence
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ imagedeps="gcc"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxtrans
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libxcb"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxv
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxext libxfixes"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
2 changes: 1 addition & 1 deletion recipes/libxxf86vm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps="mlibc xorg-util-macros xorg-proto libx11 libxtrans libxext"

build() {
${source_dir}/configure \
--host=x86_64-vinix \
--host=${OS_TRIPLET} \
--prefix=${prefix} \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down
4 changes: 2 additions & 2 deletions recipes/llvm
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ build() {
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_TARGETS_TO_BUILD=X86 \
-DLLVM_TARGET_ARCH=x86_64 \
-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-vinix \
-DLLVM_HOST_TRIPLE=x86_64-vinix \
-DLLVM_DEFAULT_TARGET_TRIPLE=OS_TRIPLET=${OS_TRIPLET} \
-DLLVM_HOST_TRIPLE=OS_TRIPLET=${OS_TRIPLET} \
-DLLVM_ENABLE_TERMINFO=OFF \
-Wno-dev \
${source_dir}/llvm
Expand Down
Loading

0 comments on commit 2e3af5f

Please sign in to comment.