mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
4b54cb2fb6
directory on ARM. Thus, calling rm(1) on this non-existing file fails. Passing "-f" to rm(1) fixes the problem. Move the same commands which are executed in both branches of the "if (WITH_NEW_XORG)" block, move them outside of it. Obtained from: xorg-dev repo
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libGL
|
|
PORTVERSION= ${MESAVERSION}
|
|
PORTREVISION= ${LIBGLREVISION}
|
|
CATEGORIES= graphics
|
|
|
|
COMMENT= OpenGL library that renders using GLX or DRI
|
|
|
|
LIB_DEPENDS+= libdrm.so:${PORTSDIR}/graphics/libdrm \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2
|
|
|
|
USES= pkgconfig
|
|
USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto:both
|
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITH_NEW_XORG)
|
|
LIBGLREVISION= 1
|
|
LIB_DEPENDS+= libglapi.so:${PORTSDIR}/graphics/libglapi
|
|
.else
|
|
LIBGLREVISION= 4
|
|
.endif
|
|
|
|
.include "${.CURDIR}/bsd.mesalib.mk"
|
|
|
|
.if !(${ARCH} == "amd64" || ${ARCH} == "i386")
|
|
CONFIGURE_ARGS+=--disable-gallium-intel
|
|
.endif
|
|
|
|
post-install:
|
|
${RM} -f ${STAGEDIR}${PREFIX}/libdata/pkgconfig/dri.pc
|
|
${RM} -rf ${STAGEDIR}${PREFIX}/include/GL/internal
|
|
.if defined(WITH_NEW_XORG)
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/.libGL
|
|
@${MV} ${STAGEDIR}${PREFIX}/lib/libGL* \
|
|
${STAGEDIR}${PREFIX}/lib/.libGL/
|
|
${RM} ${STAGEDIR}${PREFIX}/lib/libglapi*
|
|
.else
|
|
${RM} ${STAGEDIR}${PREFIX}/include/GL/glu.h
|
|
${RM} ${STAGEDIR}${PREFIX}/include/GL/glu_mangle.h
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|