Last active
November 15, 2019 14:28
-
-
Save hootieben/2b0cde9f0a41343381b3b34389cbc8ea to your computer and use it in GitHub Desktop.
Install File for clightd - created by https://github.com/brianread108 and referenced from https://github.com/FedeDP/Clight/wiki/Build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Building Clight and its dependencies..." | |
echo "* Getting Sources from git " | |
git clone https://github.com/FedeDP/Clight.git | |
git clone https://github.com/FedeDP/Clightd.git | |
git clone https://github.com/FedeDP/libmodule.git | |
git clone https://github.com/rockowitz/ddcutil.git | |
cd ddcutil | |
echo "* Building ddcutil" | |
./autogen.sh | |
./configure --prefix=/usr | |
make | |
sudo make install | |
cd .. | |
cd libmodule | |
echo "* Building Libmodule" | |
mkdir build | |
cd build | |
cmake ../ | |
make | |
sudo make install | |
cd ../.. | |
cd Clightd | |
echo "* Building clightd" | |
mkdir build | |
cd build | |
cmake \ | |
-G "Unix Makefiles" \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DCMAKE_INSTALL_LIBDIR=lib \ | |
-DCMAKE_BUILD_TYPE="Release" \ | |
-DENABLE_DDC=1 -DENABLE_GAMMA=1 -DENABLE_IDLE=1 -DENABLE_DPMS=1 -DENABLE_SCREEN=1\ | |
.. | |
make | |
sudo make install | |
cd ../.. | |
cd Clight | |
echo "* Building clight" | |
mkdir build | |
cd build | |
cmake \ | |
-G "Unix Makefiles" \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DCMAKE_INSTALL_LIBDIR=lib \ | |
-DCMAKE_BUILD_TYPE="Release" \ | |
.. | |
make | |
sudo make install | |
echo "Done...Enjoy Clight!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment