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.

Hub
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to