Add header installation logic.
This commit is contained in:
parent
ab493875cd
commit
4be6b19634
4 changed files with 23 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.lib,v 1.6 2008/03/03 03:20:41 bsadewitz Exp $
|
||||
# $NetBSD: Makefile.lib,v 1.7 2008/03/03 04:13:21 bsadewitz Exp $
|
||||
#
|
||||
# This Makefile fragment is included by all packages that build libraries
|
||||
# from the Mesa sources.
|
||||
|
@ -63,3 +63,15 @@ pre-patch:
|
|||
|
||||
post-patch:
|
||||
${CP} ${.CURDIR}/../MesaLib/files/configs/[a-z]* ${WRKSRC}/configs
|
||||
|
||||
post-install: install-headers
|
||||
|
||||
.PHONY: install-headers
|
||||
install-headers:
|
||||
${RUN} ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/GL && \
|
||||
for hdr in "${MESA_HEADERS}"; do \
|
||||
if [ -f "$$hdr" ]; then \
|
||||
${BSD_INSTALL_DATA} ${WRKSRC}/include/GL/$$hdr \
|
||||
${DESTDIR}${PREFIX}/include/GL; \
|
||||
fi; \
|
||||
done
|
||||
|
|
|
@ -1,19 +1,15 @@
|
|||
# $NetBSD: Makefile,v 1.3 2008/02/26 06:47:36 bsadewitz Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2008/03/03 04:13:21 bsadewitz Exp $
|
||||
|
||||
PKGNAME= MesaLib-${MESA_PKGVERSION}
|
||||
COMMENT= Graphics library similar to SGI's OpenGL
|
||||
|
||||
.include "../../wip/Mesa/Makefile.lib"
|
||||
|
||||
INSTLIBS= ${WRKSRC}/src/mesa/libGL.la \
|
||||
${WRKSRC}/src/glw/libGLw.la
|
||||
MESA_HEADERS= gl.h gl_mangle.h glext.h glx.h glxext.h glx_mangle.h \
|
||||
osmesa.h xmesa.h xmesa_x.h xmesa_xf86.h
|
||||
|
||||
.include "options.mk"
|
||||
|
||||
.if empty(PKG_OPTIONS:Mdri)
|
||||
INSTLIBS+= ${WRKSRC}/src/mesa/libOSMesa.la
|
||||
.endif
|
||||
|
||||
.include "../../mk/pthread.buildlink3.mk"
|
||||
|
||||
.if !empty(MACHINE_PLATFORM:MNetBSD-[12].*)
|
||||
|
@ -42,13 +38,9 @@ post-extract:
|
|||
pre-build:
|
||||
cd ${WRKSRC} && ${RM} -fr src/glu src/glut progs
|
||||
|
||||
.if 0
|
||||
|
||||
do-install:
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/GL
|
||||
cd ${WRKSRC}/include/GL; for hdr in \
|
||||
gl.h gl_mangle.h glext.h glx.h glxext.h glx_mangle.h \
|
||||
osmesa.h xmesa.h xmesa_x.h xmesa_xf86.h; \
|
||||
do \
|
||||
${INSTALL_DATA} $${hdr} ${DESTDIR}${PREFIX}/include/GL; \
|
||||
done
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.3 2008/02/26 06:47:37 bsadewitz Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2008/03/03 04:13:21 bsadewitz Exp $
|
||||
|
||||
PKGNAME= glu-${MESA_PKGVERSION}
|
||||
COMMENT= GLU polygon tessellation facility for Mesa
|
||||
|
@ -6,9 +6,9 @@ COMMENT= GLU polygon tessellation facility for Mesa
|
|||
CONFLICTS+= Mesa-glx-[0-9]*
|
||||
CONFLICTS+= Mesa<3.2.1
|
||||
|
||||
.include "../../wip/Mesa/Makefile.lib"
|
||||
MESA_HEADERS= glu.h glu_mangle.h
|
||||
|
||||
INSTLIBS= ${WRKSRC}/src/glu/sgi/libGLU.la
|
||||
.include "../../wip/Mesa/Makefile.lib"
|
||||
|
||||
BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=${MESA_VERSION}
|
||||
.include "../../wip/MesaLib/buildlink3.mk"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.4 2008/02/26 06:47:37 bsadewitz Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2008/03/03 04:13:21 bsadewitz Exp $
|
||||
|
||||
PKGNAME= glut-${MESA_PKGVERSION}
|
||||
COMMENT= GLUT Graphics library similar to SGI's OpenGL
|
||||
|
@ -6,6 +6,8 @@ COMMENT= GLUT Graphics library similar to SGI's OpenGL
|
|||
CONFLICTS+= Mesa-glx-[0-9]*
|
||||
CONFLICTS+= Mesa<3.2.1
|
||||
|
||||
MESA_HEADERS= glut.h glutf90.h
|
||||
|
||||
.include "../../wip/Mesa/Makefile.lib"
|
||||
|
||||
BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=${MESA_PKGVERSION}
|
||||
|
|
Loading…
Reference in a new issue