(Sat, 23 May 15:32) username1642@riseup.net:
Hello...
Just starting out with Crux pkg management, and I'm not sure if this is the right place to ask, so feel free to ignore. Anyway, the pkg maintainer suggested I send my question to the list, so here goes... I wanted to install mtpaint, and the script terminated with:
******************* Makefile:8: recipe for target 'src' failed make: *** [src] Error 2 =======> ERROR: Building '/home/pkgmk/pkg/mtpaint#3.40-1.pkg.tar.xz' failed. *******************
...So, I went back through the spew to try to find a more specific error. Could this be it?
******************* png.c:40:22: fatal error: openjpeg.h: No such file or directory #include <openjpeg.h> ^
/home/juef: prt cat openjpeg .footprint | grep openjpeg\.h -rw-r--r-- root/root usr/include/openjpeg-1.5/openjpeg.h
compilation terminated. Makefile:21: recipe for target 'png.o' failed make[1]: *** [png.o] Error 1 make[1]: *** Waiting for unfinished jobs.... *******************
...the pkg maintainer thought maybe I was missing openjpg, so i checked, and got:
******************* [me@mybox]$ sudo prt-get depinst openjpeg --test package openjpeg is installed *******************
or `prt-get isinst openjpeg`
...any hints for a workaround? Maybe I can roll ny own Pkfile, but the current one is pretty minimal already.
see https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=... /home/juef: prt cat mtpaint # Description: simple GTK+1/2 painting program # URL: http://mtpaint.sourceforge.net/ # Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl # Packager: Ricardo Oliveira, crux at roliveira dot eu # Depends on: gtk xorg-libxdamage # Nice to have: libungif name=mtpaint version=3.40 release=1 source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version... \ https://projects.archlinux.org/svntogit/community.git/plain/trunk/giflib.pat...) build() { cd $name-$version patch -p0 -i "$SRC/mtpaint" sed -i 's:EGifOpenFileName(file_name, FALSE):EGifOpenFileName(file_name, FALSE, NULL):' src/png.c sed -i 's:DGifOpenFileName(file_name):DGifOpenFileName(file_name, NULL):g' src/png.c sed -i 's:MakeMapObject(:GifMakeMapObject(:g' src/png.c sed -i 's:FreeMapObject(:GifFreeMapObject(:g' src/png.c export CFLAGS="-w `pkg-config libopenjpeg --cflags` $CFLAGS" ./configure --prefix=/usr gtk2 cflags man make make DESTDIR=$PKG install } -- http://www.juef.tk/