iup-stack/build.sh

52 lines
1.1 KiB
Bash
Raw Normal View History

2023-05-09 13:49:40 +00:00
#!/bin/sh
CURRENT_PATH=$PWD
2023-05-09 20:17:26 +00:00
LINUX_VERSION=$1
2023-05-09 13:49:40 +00:00
export USE_GTK3=Yes
export USE_PKGCONFIG=Yes
export USE_LUA_VERSION=54
export USE_LUA54=Yes
export LUA_LIB=$CURRENT_PATH/lua-5.4.4/src
export LUA_INC=$CURRENT_PATH/lua-5.4.4/src
2023-05-09 20:17:26 +00:00
export IM_LIB=$CURRENT_PATH/im/lib/$LINUX_VERSION
2023-05-09 13:49:40 +00:00
export IM_INC=$CURRENT_PATH/im/include
2023-05-09 20:17:26 +00:00
export FTGL_LIB=$CURRENT_PATH/ftgl/lib/$LINUX_VERSION
2023-05-09 13:49:40 +00:00
export FTGL_INC=$CURRENT_PATH/ftgl/include
2023-05-09 20:17:26 +00:00
export PDFLIB_LIB=$CURRENT_PATH/pdflib7/lib/$LINUX_VERSION
2023-05-09 13:49:40 +00:00
export PDFLIB_INC=$CURRENT_PATH/pdflib7/include
2023-05-09 20:17:26 +00:00
export CD_LIB=$CURRENT_PATH/cd/lib/$LINUX_VERSION
2023-05-09 13:49:40 +00:00
export CD_INC=$CURRENT_PATH/cd/include
cd lua-5.4.4
make linux
ln -s liblua.a src/liblua54.a
2023-05-09 20:17:26 +00:00
mkdir -p $CURRENT_PATH/lua54/bin/$LINUX_VERSION
ln -sf $LUA_LIB/lua $CURRENT_PATH/lua54/bin/$LINUX_VERSION/lua54
2023-05-09 13:49:40 +00:00
cd ../pdflib7
make
cd ../ftgl
make
2023-05-09 20:17:26 +00:00
cd ../fftw
./configure --enable-shared --prefix=/usr
make -j16
make install
make clean
./configure --enable-shared --enable-float--prefix=/usr
make -j16
make install
2023-05-09 13:49:40 +00:00
cd ../im
make
cd ../cd
make
cd ../iup
2023-05-09 20:17:26 +00:00
# patch -p1 < without-lua-prefix-with-linux6.patch
2023-05-09 13:49:40 +00:00
make