> Prefix defaults to /usr:
> isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = /usr
> DEFINES += LC_INSTALL_PREFIX=\\\"$$INSTALL_PREFIX\\\"
> And then:
> const char* libPath = LC_INSTALL_PREFIX"/share/leocad/";
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/";
Please look at
http://svnweb.freebsd.org/ports/head/cad/leocad/
files/patch-qt-qtmain.cpp
is now in Makefile self, what is better.
> On Thu, Mar 6, 2014 at 11:18 AM, Hubert Figuière <[email protected]> wrote:
> > On 06/03/14 02:04 PM, Leonardo Zide wrote:
> > > That's a different file, I was talking about the library file from my
> > > Google Drive page.
> > >
> > > If you want to use the LDraw library then something like this should work
> > > (your symlink was in /usr/local):
> > >
> > > ln -s /usr/local/share/ldraw /usr/share/leocad/
> >
> > The code EXPLICITLY look for library.bin in $PREFIX/share/leocad/
> >
> > See lc_application.cpp:206
> >
> >
> > > Hub
> > >
> > >
> > >
> > > On Thu, Mar 6, 2014 at 10:57 AM, Hubert Figuière <[email protected]>
> > > wrote:
> > >
> >> On 06/03/14 01:52 PM, Leonardo Zide wrote:
> > >>> When I unzip Library-Linux-7931.zip I get a library.bin file, I don't
> > >>> know how you're not getting the same file.
> > >>
> > >> If I unzip complete.zip which is distributed by LDraw.org
> > >>
> > >> http://www.ldraw.org/downloads-2/downloads.html
> > >> (I followed the "Downloads" link from LDraw.org)
> > >>
> > >> I get a "ldraw" directory with the library in it.
--
Best regards,
Rusmir Dusko
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad