Last active
August 29, 2015 14:13
-
-
Save ysangkok/5f45239c612e0056b9b4 to your computer and use it in GitHub Desktop.
build weechat-1.1 and dependencies
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
wget -O - "ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.17.tar.bz2" | tar jx | |
cd libgpg-error-1.17 | |
./configure --prefix=$HOME/libgpg-error-build | |
make -j4 | |
make install | |
cd .. | |
wget -O - "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.2.tar.bz2" | tar jx | |
cd libgcrypt-1.6.2 | |
./configure --prefix=$HOME/libgcrypt-build PATH=$HOME/libgpg-error-build/bin:$PATH | |
make -j4 | |
make install | |
cd .. | |
wget -O - "http://curl.haxx.se/download/curl-7.40.0.tar.bz2" | tar jx | |
cd curl-7.40.0 | |
./configure --prefix=$HOME/curl-build | |
make -j4 | |
make install | |
cd .. | |
#------- | |
wget -O - "http://ysangkok.dyn-o-saur.com/weechat-1.1.tar.bz2" | tar jx | |
cd weechat-1.1 | |
PATH="$HOME/curl-build/bin/:$PATH" ./configure --prefix=$HOME/weechat-build CFLAGS="$(~/libgcrypt-build/bin/libgcrypt-config --cflags)" LDFLAGS="$(~/libgcrypt-build/bin/libgcrypt-config --libs)" | |
make | |
# enter directory with main.o in it | |
gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -DWEECHAT_VERSION=\"1.1\" -DWEECHAT_LICENSE=\"GPL3\" -o weechat main.o -L$HOME/libgcrypt-build/lib -L$HOME/libgpg-error-build/lib ~/libgpg-error-build/lib/libgpg-error.so ../../core/lib_weechat_core.a ../../plugins/lib_weechat_plugins.a ../lib_weechat_gui_common.a lib_weechat_gui_curses.a ../../core/lib_weechat_core.a -ldl -lncurses ~/curl-build/lib/libcurl.so -lm -lgcrypt | |
make install | |
cd | |
cd weechat-build/bin | |
LD_LIBRARY_PATH=$HOME/libgcrypt-build/lib ./weechat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment