diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-10-08 19:09:35 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-10-08 19:09:35 +0000 |
commit | 96d502fbe396e97a2665914ee9609df237077ae7 (patch) | |
tree | 2a17e2856a9c4dea0c690c50dda46f0c492003cd /lib/libepoxy/Makefile | |
parent | dc28339356e8794d50b632e08900b5063390906c (diff) |
use the pkg-config support from bsd.xorg.mk to handle
libGLw and libepoxy .pc files rather than manually generating them
as root in postinstall. Spotted by natano@ ok natano@.
Diffstat (limited to 'lib/libepoxy/Makefile')
-rw-r--r-- | lib/libepoxy/Makefile | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/lib/libepoxy/Makefile b/lib/libepoxy/Makefile index 3986deb89..98900d7a6 100644 --- a/lib/libepoxy/Makefile +++ b/lib/libepoxy/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2016/09/01 10:37:40 jsg Exp $ +# $OpenBSD: Makefile,v 1.5 2016/10/08 19:09:34 matthieu Exp $ .include <bsd.xconf.mk> EPOXY= ${.CURDIR}/../../dist/libepoxy @@ -52,25 +52,15 @@ includes: _SUBDIRUSE NOPROFILE= +PKGCONFIG= epoxy.pc +PACKAGE_VERSION= $(EPOXY_MAJOR).$(EPOXY_MINOR).$(EPOXY_TINY) +EXTRA_PKGCONFIG_SUBST= '-e s,@DLOPEN_LIBS@,,' + obj: _xenocara_obj .include <bsd.lib.mk> .include <bsd.xorg.mk> -epoxy.pc: ${EPOXY}/epoxy.pc.in Makefile - sed -e 's,@prefix@,$(X11BASE),' \ - -e 's,@exec_prefix@,$(X11BASE),' \ - -e 's,@libdir@,${LIBDIR},' \ - -e 's,@includedir@,${INCSDIR},' \ - -e 's,@DLOPEN_LIBS@,,' \ - -e 's,@PACKAGE_VERSION@,$(EPOXY_MAJOR).$(EPOXY_MINOR),' \ - < ${EPOXY}/epoxy.pc.in > epoxy.pc - -afterinstall: epoxy.pc - $(INSTALL) -c -m 644 -o root -g wheel epoxy.pc \ - ${DESTDIR}${LIBDIR}/pkgconfig - -CLEANFILES+= epoxy.pc - +.PATH: ${EPOXY} .PATH: ${EPOXY}/src .PATH: ${.CURDIR}/generated/src |