Good change removing the string replacement patch, this simplifies things a lot!
Regarding the parts library: You have to decide if you want to use the LDraw library or use my version of the library. They are the same but it's faster to load models if you use my library and you don't need to run mklist. It looks like you have everything figured out if you use my library but if you want to use LDraw's library I'll have to make a few small source changes. I was looking at your Makefile and noticed a few more things: - You have libpng and libjpeg dependencies, those aren't needed - You don't have a zlib dependency, it's needed - There's a USE_GNOME in there, I don't know what it does but it's probably not needed On Thu, Mar 6, 2014 at 1:08 PM, Rusmir Dusko <[email protected]> wrote: > > On 06/03/14 03:27 PM, Rusmir Dusko wrote: > > > I use in my FreeBSD port Makefile what is according to FreeBSD > > > politics that all must be installed in /usr/local > > > > > > post-patch: > > > @${REINPLACE_CMD} -e 's|/share/leocad/|/local/share/leocad/|' \ > > > ${WRKSRC}/qt/qtmain.cpp > > > @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|; \ > > > s|share/man/man1|man/man1|; \ > > > s|docs.files = docs/README.txt docs/CREDITS.txt > docs/COPYING.txt|docs.files = |' \ > > ${WRKSRC}/${PORTNAME}.pro > > > > > > /usr/local/ports/local/In-Review/cad/leocad/work/leocad/ > grep -r > "libPath = LC_INSTALL_PREFIX" . > > > ./qt/qtmain.cpp: const char* libPath = > LC_INSTALL_PREFIX"/local/share/leocad/"; > > > ./qt/qtmain.cpp.bak: const char* libPath = > LC_INSTALL_PREFIX"/share/leocad/"; > > > How about you use the qmake syntax to actually set the prefix and let > > that kind of source patch for tinkering with it. > > > I use a non standard prefix and have no problem. I didn't patch the > > source. This is ugly and bad. > > > Thanks many I have now removed this patch > > # @${REINPLACE_CMD} -e 's|/share/leocad/|/local/share/leocad/|' \ > # ${WRKSRC}/qt/qtmain.cpp > > and when i use > > ln -s /usr/local/share/ldraw /usr/local/share/leocad/library.bin > > ls -l /usr/local/share/leocad > total 1 > lrwxr-xr-x 1 root wheel 22 6 Mar 21:58 library.bin -> > /usr/local/share/ldraw > > get when start LeoCad > > You are using the latest LeoCad version. > There are new parts avaliable. > Visit http://www.leocad.org/files/ to download. > > > When i use library.bin from new Library-Linux-7931.zip > get when start LeoCad > > You are using the latest LeoCad version. > There are no new parts avaliable at this time. > > As said I think is best to upload LeoCad and pieces to SourceForge have > good policy, > that FreeBSD Makefile can good download from SourceForge what is not > possible > with Google Drive. > > -- > Best regards, > Rusmir Dusko >
_______________________________________________ Leocad mailing list [email protected] https://list.gerf.org/listinfo/leocad
