milis/talimatname/genel/c/codeblocks/talimat

31 lines
892 B
Plaintext
Raw Normal View History

2018-01-19 05:10:33 +01:00
# Tanım: Çapraz platformlu C/C++ IDE
# URL: http://codeblocks.org/
# Paketçi: Cihan_Alkan
2018-01-19 05:14:03 +01:00
# Gerekler: boost gamin hunspell wxgtk28 zip
2017-12-24 00:47:53 +01:00
# Grup: geliştirme
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=codeblocks
surum=16.01
devir=1
2018-01-19 05:10:33 +01:00
kaynak=(https://sourceforge.net/projects/$isim/files/Sources/$surum/${isim}_$surum.tar.gz)
2017-01-30 23:55:06 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2018-01-19 05:10:33 +01:00
cd "$isim-$surum.release"
# Fix build with boost 1.59
export CPPFLAGS+=" -DBOOST_ERROR_CODE_HEADER_ONLY"
export WX_CONFIG_PATH=/usr/bin/wx-config
[ ! -L /usr/bin/wx-config ] && ln -s /usr/bin/wx-config-2.8 /usr/bin/wx-config
# FS#49799
export CPPFLAGS+=" -fno-delete-null-pointer-checks"
CXXFLAGS+=' -std=c++11 -fpermissive'
./bootstrap
./configure --prefix=/usr --with-contrib-plugins=all
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
2018-01-19 05:25:00 +01:00
make -C "$SRC/$isim-$surum.release" DESTDIR="$PKG" install
2018-01-19 05:10:33 +01:00
[ -L /usr/bin/wx-config ] && rm -f /usr/bin/wx-config
2016-02-24 01:27:23 +01:00
}