Hi, a new version of irrlicht 3D game engine was released the 1.0, i make the job to integrated him (reusing the irrlich-0.14.0 ebuild) i give you my work in attachement!...
Created attachment 91073 [details] ebuild this is the ebuild for irrlicht 1.0
Created attachment 91074 [details] patch for the ebuild to work to put in dev-games/irrlicht/files
sorry it doesn't seems to work !... when i try an example :examples/01.HelloWorld gmake g++ main.cpp -o example -I"/usr/include/irrlicht" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"/usr/lib" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11 /usr/X11R6/lib/libIrrlicht.a(CZipReader.o): dans la fonction
sorry it doesn't seems to work !... when i try an example :examples/01.HelloWorld gmake g++ main.cpp -o example -I"/usr/include/irrlicht" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"/usr/lib" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11 /usr/X11R6/lib/libIrrlicht.a(CZipReader.o): dans la fonction « irr::io::CZipReader::openFile(int)»: : référence indéfinie vers « inflateInit2_ » /usr/X11R6/lib/libIrrlicht.a(CZipReader.o): dans la fonction « irr::io::CZipReader::openFile(int)»: : référence indéfinie vers « inflate » /usr/X11R6/lib/libIrrlicht.a(CZipReader.o): dans la fonction « irr::io::CZipReader::openFile(int)»: maybe some links to lipng libjpeg and zlib !...
i need to add the lib to link with libjpeg libpng and libz : g++ main.cpp -o example -I"/usr/include/irrlicht" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"/usr/lib" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11 -lpng -lz -ljpeg an this work fine !... so i have a little problem in the makefile, i need to add to link with -lpng -lz -ljpeg to make the static library !...
Ok i understand why sed from the irrlicht-0.14.ebuild doesn't work on irrlicht-1.0 Makefile, it's because Makefile is a dos file (each end of line with ^M). i need to find how to supress this ^M whitout using dos2unix (maybe some person doesn't emerge dos2unix )!.. i found : cat Makefile | awk '{print}' >Makefile.new mv Makefile.new Makefile
Created attachment 91080 [details] irrlich ebuild and patch for ebuild In this ebuild, we need to find something to transform Makefile in dos format to unix format without using dos2unix, before applying sed transformation on the Makefile (if not a ^M is on the midlle of the line and failed the make)
sorry this doesnt work !... (In reply to comment #5) > Ok i understand why sed from the irrlicht-0.14.ebuild doesn't work on > irrlicht-1.0 Makefile, it's because Makefile is a dos file (each end of line > with ^M). > i need to find how to supress this ^M whitout using dos2unix (maybe some > person doesn't emerge dos2unix )!.. > > i found : cat Makefile | awk '{print}' >Makefile.new > mv Makefile.new Makefile >
ok this is the good one !.. tr -d "\015\023" <Makefile >Makefile.new mv Makefile.new Makefile just need to be tested and validate before gentoo introduction !...
Created attachment 91081 [details] working ebuild with tr astuce on it and patch for gcc4.1 and external lib this is working ebuild with the "tr astuce" on it and patch for gcc4.1 support and external lib for zlib, jpeg, and png the example 01.helloword works : gmake g++ main.cpp -o example -I"/usr/include/irrlicht" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"/usr/lib" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
use edos2unix for converting files from dos-style to unix. It's in eutils.eclass
Portage is so amazing !... maybe we need to apply this edos2unix to all files to avoid header with ^M on it !... (In reply to comment #10) > use edos2unix for converting files from dos-style to unix. It's in > eutils.eclass >
Comment on attachment 91081 [details] working ebuild with tr astuce on it and patch for gcc4.1 and external lib obsolete, a new one with edos2unix on all the source file
Created attachment 91193 [details] the same with edos2unix on all source files and patch without ^M Portage is so amazing !... thanks for the edos2unix solution !...
Please don't post tar, just plain text files
Version 1.1 is now in portage. Thanks for report.