Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
3 changes: 3 additions & 0 deletions Common/kernel
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

export KERNEL=`uname -s | sed "s/\-.*//g" | awk '{print(tolower($0))}'`
3 changes: 3 additions & 0 deletions Common/kernel~
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
export KERNEL=`uname -s | sed "s/\-.*//g" | awk '{print(tolower($0))}'`
echo "Begin setup for ${KERNEL}"
11 changes: 1 addition & 10 deletions compile-libobjc2 → Common/libobjc2
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
#!/bin/sh

# determine make command
which gmake
if [ $? -eq 0 ]; then
export MAKE=gmake
else
export MAKE=make
fi

# build libobjc2
echo "Build ObjC2 library..."

cd libobjc2
git pull
rm -rf build # remove the dir if it exists...
mkdir build
cd build
Expand Down
31 changes: 31 additions & 0 deletions Common/logo
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

echo "Install GNUstep"
echo " "
cat <<EOF
@@@@@@@@@
@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@ @@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@
@@@@@@@@@@@@@@@@@@@@@@@@@@@ @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@
@@@@@@@@@@@@@@
@@@@@@@@@@@@@ @
@@@@@@@@@@@@@ @
@@@@@@@@@@@@ @@
@@@@@@@@@@@@ @@@
@@@@@@@@@@@ @@@@
@@@@@@@@@ @@@@@
@@@@@@@ @@@@@@@
@@@@@@@@@ @@@@@@@@@
@@@@@@@@@@@@ @@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@
EOF

echo " "
File renamed without changes.
Empty file added Platforms/darwin/build
Empty file.
Empty file added Platforms/darwin/dependencies
Empty file.
Empty file added Platforms/darwin/setup
Empty file.
Empty file added Platforms/freebsd/build
Empty file.
Empty file added Platforms/freebsd/dependencies
Empty file.
Empty file added Platforms/freebsd/setup
Empty file.
Empty file added Platforms/linux/build
Empty file.
Empty file added Platforms/linux/dependencies
Empty file.
Empty file added Platforms/linux/setup
Empty file.
Empty file added Platforms/mingw64_nt/build
Empty file.
Empty file.
File renamed without changes.
Empty file.
Empty file.
Empty file added Platforms/netbsd/build
Empty file.
Empty file added Platforms/netbsd/dependencies
Empty file.
Empty file added Platforms/netbsd/setup
Empty file.
57 changes: 57 additions & 0 deletions Platforms/openbsd/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/sh

# Build libobjc2
../tools-scripts/Common/libobjc2

# Build make
cd tools-make
${MAKE} clean 2> /dev/null # stop it from complaining...
./configure --with-layout=gnustep --prefix="${PREFIX}" ${EXTRA_GSMAKE_FLAGS} CC="${GSMAKE_CC}" CXX="${GSMAKE_CXX}" CPP="${GSMAKE_CPP}" LD="${GSMAKE_LD}" AS="${GSMAKE_AS}" LDFLAGS="${GSMAKE_LDFLAGS}" CPPFLAGS="${GSMAKE_CPPFLAGS}"
echo "======== Build make"
${MAKE} -j${CPUS}
${SUDO} -u root ${MAKE} install
. ${GNUSTEP_ROOT}/System/Library/Makefiles/GNUstep.sh

# Build base
echo "======== Build base"
cd ../libs-base
${SUDO} ${MAKE} clean
./configure --with-installation-domain=SYSTEM
${MAKE} debug=yes -j${CPUS}
${SUDO} -u root ./install.sh ${GNUSTEP_ROOT} ${MAKE}
echo "==="

# Build gui
echo "======== Build gui"
cd ../libs-gui
${SUDO} ${MAKE} clean
./configure --with-x --enable-speech
${MAKE} debug=yes -j${CPUS}
${SUDO} -u root ./install.sh ${GNUSTEP_ROOT} ${MAKE}
echo "==="

# Build backend
echo "======== Build back"
cd ../libs-back
${SUDO} ${MAKE} clean
./configure --enable-graphics=cairo
${MAKE} debug=yes -j${CPUS}
${SUDO} -u root ./install.sh ${GNUSTEP_ROOT} ${MAKE}
echo "==="

# Build applications...
# echo "======== Build ProjectCenter"
# cd ../apps-projectcenter
# ${SUDO} ${MAKE} clean
# ${MAKE} debug=yes -j${CPUS}
# ${SUDO} ${MAKE} install

# echo "======== Build Gorm"
# cd ../apps-gorm
# ${SUDO} ${MAKE} clean
# ${MAKE} debug=yes -j${CPUS}
# ${SUDO} ${MAKE} install

echo "Done."

exit 0
29 changes: 29 additions & 0 deletions Platforms/openbsd/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh

echo "BUIDLING WITH CLANG and ARC"

export GSMAKE_CC=clang
export GSMAKE_CXX=clang++
export GSMAKE_CPP="clang -E"
export GSMAKE_LD=ld
export GSMAKE_AS=llvm-as
export EXTRA_GSMAKE_FLAGS="--with-objc-lib-flag=-lobjc2 --enable-strict-v2-mode --with-runtime-abi=gnustep-2.2 --with-library-combo=ng-gnu-gnu GS_WITH_ARC=1"
export GSMAKE_CPPFLAGS="-I/usr/local/include -I/usr/local/include/gnustep"
export GSMAKE_LDFLAGS="-L/usr/local/lib -lc++abi -lobjc2 -pthread"
export MAKE=gmake
export SUDO=sudo

export CPUS=`sysctl hw.ncpu | sed 's/hw.ncpu\=//g'`
export ROOT=/
export USR_ROOT=${ROOT}usr
export GNUSTEP_ROOT=${USR_ROOT}/GNUstep
export GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
export GNUSTEP_INSTALL_LD_SO_CONF=no
export PREFIX=${GNUSTEP_ROOT}

echo ""
echo "Installation directory is $GNUSTEP_ROOT"
echo "Building GNUstep for OpenBSD"
echo ""

SUDO='sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions Utils/makelib.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

#
# This script generates the missing lib file using dlltool
# under msys. This is needed to properly link some libraries
# into apps.
#

date > ./makelib.log
FILES=`ls -C1 *.dll`
for i in $FILES
do
echo "Generating def file for ${i}..."
gendef 2>> ./makelib.log $i
defname=`echo $i | sed 's/dll/def/'`
libname=`echo $i | sed 's/dll/lib/'`
echo "Generating lib file ${libname}..."
dlltool 2>> ./makelib.log -d ${defname} -l ${libname}
echo "Done"
done

echo "Finished..."

exit 0
File renamed without changes.
File renamed without changes.
86 changes: 0 additions & 86 deletions build-openbsd

This file was deleted.

121 changes: 4 additions & 117 deletions install-dependencies-linux
Original file line number Diff line number Diff line change
@@ -1,122 +1,9 @@
#!/bin/bash

install_debian()
{
echo "NOTE: Make sure you have done apt-get update and apt-get upgrade prior to running this script."
echo "Installing Debian/Ubuntu dependencies"
echo "-------"
# Add distro specific variables...
. /etc/os-release

sudo apt update
sudo apt upgrade

sudo apt --yes install gobjc
sudo apt --yes install gobjc++
sudo apt --yes install clang
sudo apt --yes install libjpeg-dev
sudo apt --yes install libtiff-dev
sudo apt --yes install libpng-dev
sudo apt --yes install libicns-dev
sudo apt --yes install libmagickcore-dev
sudo apt --yes install libxml2-dev
sudo apt --yes install libxslt-dev
sudo apt --yes install libgnutls-dev
sudo apt --yes install libffi-dev
sudo apt --yes install libicu-dev
sudo apt --yes install libcairo2-dev
sudo apt --yes install libxft-dev
sudo apt --yes install libavahi-client-dev
sudo apt --yes install flite-dev
sudo apt --yes install libxt-dev
sudo apt --yes install libportaudio-dev
sudo apt --yes install wmaker
sudo apt --yes install portaudio19-dev
sudo apt --yes install make
sudo apt --yes install cmake
sudo apt --yes install gnutls-dev
sudo apt --yes install libblocksruntime-dev
sudo apt --yes install pocketsphinx
sudo apt --yes install pocketsphinx-en-us
sudo apt --yes install libpocketsphinx-dev
sudo apt --yes install libsphinxbase-dev
sudo apt --yes install sphinxbase-utils
sudo apt --yes install sphinxtrain
sudo apt --yes install libssl-dev
sudo apt --yes install freeglut3-dev
sudo apt --yes install libwayland-dev
sudo apt --yes install libxkbcommon-dev
sudo apt --yes install wayland-protocols
sudo apt --yes install libcurl4-gnutls-dev

echo "-------"
echo "Done..."
}

install_redhat()
{
echo "NOTE: Make sure you have done apt-get update and apt-get upgrade prior to running this script."
echo "Installing RedHat/CentOS/etc dependencies"
echo "-------"

sudo yum update

sudo yum -y install gcc
sudo yum -y install gcc-objc
sudo yum -y install clang
sudo yum -y install libjpeg-turbo-devel
sudo yum -y install libtiff-devel
sudo yum -y install libpng-devel
sudo yum -y install libicns-devel
sudo yum -y install ImageMagick-devel
sudo yum -y install libxml2-devel
sudo yum -y install libxslt-devel
sudo yum -y install gnutls-devel
sudo yum -y install libffi-devel
sudo yum -y install libicu-devel
sudo yum -y install cairo-devel
sudo yum -y install libXft-devel
sudo yum -y install avahi-devel
sudo yum -y install flite-devel
sudo yum -y install libXt-devel
# sudo yum -y install libportaudio-devel
# sudo yum -y install wmaker
# sudo yum -y install portaudio19-dev
sudo yum -y install make
sudo yum -y install cmake
# sudo yum -y install libblocksruntime-dev
# sudo yum -y install pocketsphinx
# sudo yum -y install pocketsphinx-en-us
# sudo yum -y install libpocketsphinx-dev
# sudo yum -y install libsphinxbase-dev
# sudo yum -y install sphinxbase-utils
# sudo yum -y install sphinxtrain
sudo yum -y install openssl-devel
sudo yum -y install gnutls-devel
sudo yum -y install libcurl4-gnutls-devel

echo "-------"
echo "Done..."
}

get_system()
{
if [ -e /etc/os-release ]; then
. /etc/os-release
fi
}

get_system
echo "You are using ${ID}"

which apt > /dev/null
if [ "$?" == "0" ]; then
install_debian
else
which yum
if [ "$?" == "0" ]; then
install_redhat
else
echo "Please report this to [email protected]."
echo "Your linux os ${ID} is currently unsupported."
fi
fi

# Run the script for the correct distro...
sh ./tools-scripts/install-dependencies-linux-${ID}
Loading