On Fri, Oct 07, 2016 at 09:02:38PM +0200, Martin Natano wrote:
> Generate the pkg-config files at build time, otherwise we might run into
> permission issues with noperm release builds. While there properly clean
> up glw.pc. Ok?
Matches the changes you made to libz etc a few weeks ago so
should be fine. ok jsg@
>
> natano
>
>
> Index: lib/libGLw/Makefile
> ===================================================================
> RCS file: /cvs/xenocara/lib/libGLw/Makefile,v
> retrieving revision 1.15
> diff -u -p -r1.15 Makefile
> --- lib/libGLw/Makefile 17 Aug 2012 15:16:44 -0000 1.15
> +++ lib/libGLw/Makefile 7 Oct 2016 18:50:19 -0000
> @@ -39,11 +39,14 @@ afterinstall: glw.pc
> $(INSTALL) -c -m 644 -o root -g wheel glw.pc \
> ${DESTDIR}${LIBDIR}/pkgconfig
>
> +all: glw.pc
> glw.pc: glw.pc.in
> sed -e 's,@INSTALL_DIR@,$(X11BASE),' \
> -e 's,@LIB_DIR@,lib,' \
> -e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),' \
> < ${.CURDIR}/glw.pc.in > glw.pc
> +
> +CLEANFILES+= glw.pc
>
> NOPROFILE=
>
> Index: lib/libepoxy/Makefile
> ===================================================================
> RCS file: /cvs/xenocara/lib/libepoxy/Makefile,v
> retrieving revision 1.4
> diff -u -p -r1.4 Makefile
> --- lib/libepoxy/Makefile 1 Sep 2016 10:37:40 -0000 1.4
> +++ lib/libepoxy/Makefile 7 Oct 2016 18:50:19 -0000
> @@ -57,6 +57,7 @@ obj: _xenocara_obj
> .include <bsd.lib.mk>
> .include <bsd.xorg.mk>
>
> +all: epoxy.pc
> epoxy.pc: ${EPOXY}/epoxy.pc.in Makefile
> sed -e 's,@prefix@,$(X11BASE),' \
> -e 's,@exec_prefix@,$(X11BASE),' \
>