Ubuntu Edgy, wxGTK 2.6.3p2, rev 3562
$ pkg-config --cflags codeblocks
returns error "Variable 'datarootdir' not defined in /usr/local/lib/pkgconfig/codeblocks.pc"
codeblocks.pc:
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
plugindir=${datarootdir}/codeblocks/plugins
sharedir=${datarootdir}
datarootdir = ${prefix}/share
Name: codeblocks
Description: Code::Blocks IDE
Version: trunk-r3562
Libs: -L${libdir} -lcodeblocks
Cflags: -I${includedir}/codeblocks
I built Code::Blocks with:
$ ./boostrap
$ ./configure
$ make
$ sudo make install