2018-05-26 02:52:16 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2018/05/26 08:52:16 matthieu Exp $
|
2015-04-15 01:58:58 -06:00
|
|
|
.include <bsd.xconf.mk>
|
|
|
|
|
|
|
|
EPOXY= ${.CURDIR}/../../dist/libepoxy
|
|
|
|
|
|
|
|
LIB= epoxy
|
|
|
|
|
|
|
|
EPOXY_MAJOR= 1
|
2018-05-25 00:24:59 -06:00
|
|
|
EPOXY_MINOR= 5
|
|
|
|
EPOXY_TINY= 2
|
2015-04-15 01:58:58 -06:00
|
|
|
|
|
|
|
INCSDIR= ${X11BASE}/include/epoxy
|
|
|
|
|
|
|
|
CFLAGS+= -std=gnu99
|
|
|
|
|
2018-05-26 02:52:16 -06:00
|
|
|
.if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64"
|
|
|
|
PICFLAG+= -mxgot
|
|
|
|
.endif
|
|
|
|
|
2015-04-15 01:58:58 -06:00
|
|
|
CPPFLAGS+= \
|
2018-05-25 00:24:59 -06:00
|
|
|
-I${.CURDIR} \
|
2015-04-15 01:58:58 -06:00
|
|
|
-I${.CURDIR}/generated/include \
|
|
|
|
-I${EPOXY}/include \
|
|
|
|
-I${EPOXY}/src \
|
2018-05-25 00:24:59 -06:00
|
|
|
-I${X11BASE}/include
|
2015-04-15 01:58:58 -06:00
|
|
|
|
|
|
|
SRCS= dispatch_common.c \
|
|
|
|
dispatch_glx.c \
|
|
|
|
dispatch_egl.c \
|
|
|
|
gl_generated_dispatch.c \
|
|
|
|
glx_generated_dispatch.c \
|
|
|
|
egl_generated_dispatch.c
|
|
|
|
|
2018-05-25 00:24:59 -06:00
|
|
|
INCS= common.h \
|
|
|
|
gl.h \
|
2015-04-15 01:58:58 -06:00
|
|
|
glx.h \
|
|
|
|
egl.h
|
|
|
|
|
|
|
|
GINCS= gl_generated.h \
|
|
|
|
glx_generated.h \
|
|
|
|
egl_generated.h
|
|
|
|
|
|
|
|
includes: _SUBDIRUSE
|
|
|
|
cd ${EPOXY}/include/epoxy; for i in ${INCS}; do \
|
|
|
|
j="cmp -s $$i ${DESTDIR}${INCSDIR}/epoxy/$$i || \
|
|
|
|
${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/epoxy"; \
|
|
|
|
echo "\tinstalling $$i"; \
|
|
|
|
eval "$$j"; \
|
|
|
|
done
|
|
|
|
cd ${.CURDIR}/generated/include/epoxy; for i in ${GINCS}; do \
|
|
|
|
j="cmp -s $$i ${DESTDIR}${INCSDIR}/epoxy/$$i || \
|
|
|
|
${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/epoxy"; \
|
|
|
|
echo "\tinstalling $$i"; \
|
|
|
|
eval "$$j"; \
|
|
|
|
done
|
|
|
|
|
2016-10-10 07:34:43 -06:00
|
|
|
beforeinstall: includes
|
|
|
|
|
2015-04-15 01:58:58 -06:00
|
|
|
NOPROFILE=
|
|
|
|
|
2016-10-08 13:09:34 -06:00
|
|
|
PKGCONFIG= epoxy.pc
|
|
|
|
PACKAGE_VERSION= $(EPOXY_MAJOR).$(EPOXY_MINOR).$(EPOXY_TINY)
|
2018-05-25 00:24:59 -06:00
|
|
|
EXTRA_PKGCONFIG_SUBST= -e 's,@DLOPEN_LIBS@,,' \
|
|
|
|
-e 's,@GL_REQS@,gl egl,' \
|
|
|
|
-e 's,@epoxy_has_glx@,1,' \
|
|
|
|
-e 's,@epoxy_has_egl@,1,' \
|
|
|
|
-e 's,@epoxy_has_wgl@,0,'
|
2016-10-08 13:09:34 -06:00
|
|
|
|
2015-04-15 01:58:58 -06:00
|
|
|
obj: _xenocara_obj
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.include <bsd.xorg.mk>
|
|
|
|
|
2018-05-25 00:24:59 -06:00
|
|
|
.PATH: ${.CURDIR}/generated/src
|
2016-10-08 13:09:34 -06:00
|
|
|
.PATH: ${EPOXY}
|
2015-04-15 01:58:58 -06:00
|
|
|
.PATH: ${EPOXY}/src
|