Alexey Dokuchaev <[email protected]> writes:

>   FreeBSD ports repository
>
>   Modified files:
>     graphics/lensfun     Makefile pkg-plist 
>   Log:
>   - Change license: GPL only applies to binaries, which are not installed by
>     the port, so use more appropriate LGPL; this also brings us in line with
>     most of the GNU/Linux distributions
>   - Remove licenses and useless documentation (README file containing build
>     instructions); 95% of users do not interact with lensfun directly anyway
>   - Adjust Python dependency: it is only required during build time
>   - Enable verbose build (helps to study logs)
>   - Respect CXX/AR[*], CFLAGS; adjust COMMENT and Makefile header

Why not fix WITH_DEBUG by removing `-s' from GCC.LDFLAGS.release?
pmcstat/dtrace also want unstripped binaries, e.g. set via empty STRIP
in make.conf.

--- graphics/lensfun/Makefile
+++ graphics/lensfun/Makefile
@@ -33,17 +33,23 @@
 
 PLIST_SUB+=    LIBVERSION=${LIBVERSION}
 
+.include <bsd.port.pre.mk>
+
+.if defined(STRIP) && ${STRIP} != ""
+LDFLAGS+=      -s
+.endif
+
 post-patch: .SILENT
        ${REINPLACE_CMD} -e '1s|#!/usr/bin/python|#!/usr/bin/env python|' \
                -e 's|make --version|g&|' -e '/DOXYGEN/d' ${WRKSRC}/configure
        ${REINPLACE_CMD} -e \
                's|CONF_LIBDIR)pkgconfig|CONF_LIBDIR)../libdata/pkgconfig|' \
                        ${WRKSRC}/build/tibs/compiler/pkgconfig.mak
-       ${REINPLACE_CMD} -e '/-s -O3/d' ${WRKSRC}/build/tibs/compiler/gcc.mak
+       ${REINPLACE_CMD} -e '/-s/d' ${WRKSRC}/build/tibs/compiler/gcc.mak
        ${REINPLACE_CMD} -e '/GROUPS/s| DOCS||' ${WRKSRC}/build/tibs/rules.mak
 
 post-install:
        ${LN} -sf lib${PORTNAME}.so \
                ${PREFIX}/lib/lib${PORTNAME}.so.${LIBVERSION}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to