#Packager: Dimitris Tzemos pkgname=codeblocks pkgver=16.01 pkgrel=2dj source=("https://sourceforge.net/projects/codeblocks/files/Sources/$pkgver/${pkgname}_${pkgver}.tar.gz") docs=("AUTHORS" "BUGS" "BUILD" "COMPILERS" "COPYING" "ChangeLog" "NEWS" "README" "TODO") url=http://www.codeblocks.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "codeblocks (a free C++ and Fortran IDE)" "Code::Blocks is a free C++ and Fortran IDE built to meet the most" "demanding needs of its users. It is designed to be very extensible" "and fully configurable." "" "Homepage: http://www.codeblocks.org/" ) build() { cd $startdir/src/$pkgname-$pkgver.release # Fix build with boost 1.59 export CPPFLAGS+=" -DBOOST_ERROR_CODE_HEADER_ONLY" export WX_CONFIG_PATH=/usr/bin/wx-config # FS#49799 export CPPFLAGS+=" -fno-delete-null-pointer-checks" CXXFLAGS+=' -std=c++11 -fpermissive -w' ./bootstrap LDFLAGS="-lX11" \ CFLAGS="$SLKCFLAGS" \ ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --docdir=/usr/doc/$pkgname-$pkgver \ --sysconfdir=/etc \ --disable-static \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg }