Last active
December 18, 2015 17:10
-
-
Save rc5hack/5816913 to your computer and use it in GitHub Desktop.
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
Установка в FreeBSD | |
--------------------------- | |
Часть используемого ПО распространяется только в виде бинарных файлов, в связи с чем есть некоторые трудности (не найдены defluff и cryopng, не собирается pngrewrite). | |
```sh | |
## storing current dir | |
pushd . > /dev/null | |
### Installing needed ports | |
portinstall graphics/jpeg | |
portinstall graphics/png | |
portinstall graphics/optipng | |
portinstall graphics/gifsicle | |
portinstall graphics/pngnq | |
portinstall graphics/p5-Image-ExifTool | |
portinstall --yes graphics/ImageMagick | |
portinstall archivers/advancecomp | |
portinstall archivers/unzip | |
portinstall devel/git | |
### Installing additional software | |
mkdir -p /tmp/imgo-installation/bin | |
cd /tmp/imgo-installation | |
### I reccomend to launch commands above manually! One by one. It could be very-very sad bad because you can catch some errors. Use it at your own risk! | |
# pngout | |
fetch -o pngout.tar.gz http://static.jonof.id.au/dl/kenutils/pngout-20130221-bsd-static.tar.gz | |
tar -xvf pngout.tar.gz | |
cp pngout-20130221-bsd-static/`uname -m`/pngout-static ./bin/pngout | |
# defluff | |
# no FreeBSD version =( | |
# cryopng | |
# no FreeBSD version =( | |
# pngrewrite | |
# build fails =( | |
# imgo script. Yeah! Finally | |
git clone git://github.com/imgo/imgo.git | |
cp imgo/imgo ./bin | |
# copy binaries to your local ~/bin or global /usr/local/bin | |
# cp ./bin/* ~/bin # or | |
sudo cp ./bin/* /usr/local/bin | |
# dir restore and clean up | |
popd > /dev/null | |
rm -rf /tmp/imgo-installation | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment