├── .gitmodules ├── README.md ├── build.sh └── clean.sh /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "qt1"] 2 | path = qt1 3 | url = https://github.com/nishiowo/qt1 4 | [submodule "kdelibs"] 5 | path = kdelibs 6 | url = https://github.com/nishiowo/kde1-kdelibs 7 | [submodule "kdebase"] 8 | path = kdebase 9 | url = https://github.com/nishiowo/kde1-kdebase 10 | [submodule "kdegames"] 11 | path = kdegames 12 | url = https://github.com/nishiowo/kde1-kdegames 13 | [submodule "kdeutils"] 14 | path = kdeutils 15 | url = https://github.com/nishiowo/kde1-kdeutils 16 | [submodule "kdenetwork"] 17 | path = kdenetwork 18 | url = https://github.com/nishiowo/kde1-kdenetwork 19 | [submodule "kdetoys"] 20 | path = kdetoys 21 | url = https://github.com/nishiowo/kde1-kdetoys 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KDE1 2 | I patched them so they work on modern platforms (NetBSD/FreeBSD/Linux). \ 3 | Simply run `./build.sh --prefix=/usr/kde1` to build. 4 | 5 | ## Notes for FreeBSD 6 | 1. You should create `/usr/local/libdata/ldconfig/kde1` with `/usr/kde1/lib`, and restart ldconfig 7 | 2. You need to load `pty` module to get konsole working 8 | -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | args="-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++" 3 | use_auth="" 4 | rootcmd () { 5 | if [ "$use_auth" = "su" ]; then 6 | su root -c "`echo $@`" 7 | else 8 | $use_auth $@ 9 | fi 10 | } 11 | for auth in doas sudo su; do 12 | which $auth >/dev/null 2>&1 13 | if [ "$?" = "0" ]; then 14 | echo "$auth would work (probably)" 15 | use_auth="$auth" 16 | break 17 | fi 18 | done 19 | for i in $@; do 20 | case "$i" in 21 | --prefix=*) 22 | args="$args -DCMAKE_INSTALL_PREFIX=`echo $i | sed "s/--prefix=//g"`" 23 | rootcmd ln -fs `echo $i | sed "s/--prefix=//g"`/bin/moc-qt1 /usr/bin/moc-qt1 24 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`echo $i | sed "s/--prefix=//g"`/lib" 25 | export LD_LIBRARY_PATH 26 | ;; 27 | esac 28 | done 29 | count=`grep processor /proc/cpuinfo | wc -l | sed "s/ //g"` 30 | if [ "$count" = "0" ]; then 31 | count=4 32 | fi 33 | 34 | for i in qt1 kdelibs kdebase kdegames kdeutils kdenetwork kdetoys; do 35 | echo "--- $i" 36 | mkdir -p $i/build 37 | cd $i/build 38 | if [ ! -e "configured" ]; then 39 | cmake .. $args || exit 1 40 | touch configured 41 | fi 42 | if [ ! -e "built" ]; then 43 | make -j$count || exit 1 44 | touch built 45 | fi 46 | if [ ! -e "installed" ]; then 47 | rootcmd make install || exit 1 48 | touch installed 49 | fi 50 | cd ../.. 51 | done 52 | -------------------------------------------------------------------------------- /clean.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | rm -rf qt1/build 3 | rm -rf kdelibs/build 4 | rm -rf kdebase/build 5 | --------------------------------------------------------------------------------