> 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