[Midnightbsd-cvs] mports [20066] trunk/graphics: add libglesv2
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Aug 27 19:13:17 EDT 2015
Revision: 20066
http://svnweb.midnightbsd.org/mports/?rev=20066
Author: laffer1
Date: 2015-08-27 19:13:16 -0400 (Thu, 27 Aug 2015)
Log Message:
-----------
add libglesv2
Modified Paths:
--------------
trunk/graphics/Makefile
trunk/graphics/libepoxy/Makefile
Added Paths:
-----------
trunk/graphics/libglesv2/
trunk/graphics/libglesv2/Makefile
trunk/graphics/libglesv2/pkg-deinstall
trunk/graphics/libglesv2/pkg-descr
trunk/graphics/libglesv2/pkg-install
trunk/graphics/libglesv2/pkg-plist
Modified: trunk/graphics/Makefile
===================================================================
--- trunk/graphics/Makefile 2015-08-27 23:10:01 UTC (rev 20065)
+++ trunk/graphics/Makefile 2015-08-27 23:13:16 UTC (rev 20066)
@@ -77,6 +77,7 @@
SUBDIR += libexif
SUBDIR += libfpx
SUBDIR += libglapi
+SUBDIR += libglesv2
SUBDIR += libgnomecanvas
SUBDIR += libgnomecanvasmm
SUBDIR += libgphoto2
Modified: trunk/graphics/libepoxy/Makefile
===================================================================
--- trunk/graphics/libepoxy/Makefile 2015-08-27 23:10:01 UTC (rev 20065)
+++ trunk/graphics/libepoxy/Makefile 2015-08-27 23:13:16 UTC (rev 20066)
@@ -1,4 +1,4 @@
-# $Midnight$
+# $MidnightBSD$
# $FreeBSD: head/graphics/libepoxy/Makefile 385633 2015-05-07 15:17:32Z mat $
PORTNAME= libepoxy
@@ -14,6 +14,8 @@
USE_GITHUB= yes
GH_ACCOUNT= anholt
+WRKSRC= ${WRKDIR}/libepoxy-1.2
+
USES= autoreconf libtool pathfix pkgconfig python:3,build
USE_XORG= xorg-macros x11
USE_GL= egl glesv2
Added: trunk/graphics/libglesv2/Makefile
===================================================================
--- trunk/graphics/libglesv2/Makefile (rev 0)
+++ trunk/graphics/libglesv2/Makefile 2015-08-27 23:13:16 UTC (rev 20066)
@@ -0,0 +1,51 @@
+# Created by: kwm at FreeBSD.org
+# $MidnightBSD$
+# $FreeBSD: head/graphics/libglesv2/Makefile 373491 2014-11-27 14:48:48Z kwm $
+
+PORTNAME= libglesv2
+PORTVERSION= ${MESAVERSION}
+PORTREVISION= ${LIBGLES_REVISION}
+CATEGORIES= graphics
+
+COMMENT= OpenGL ES v2 library
+
+LICENSE= mit
+
+LIB_DEPENDS+= libdrm.so:${PORTSDIR}/graphics/libdrm \
+ libglapi.so:${PORTSDIR}/graphics/libglapi \
+ libexpat.so:${PORTSDIR}/textproc/expat2
+
+# stuff not needed by libglesv2 but configure wants it
+USE_XORG+= glproto dri2proto xext xdamage xfixes presentproto \
+ xshmfence
+
+.include <bsd.mport.options.mk>
+.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk"
+
+.if defined(WITH_NEW_MESA)
+LIBGLES_REVISION= 0
+.else
+LIBGLES_REVISION= 4
+.endif
+
+.if defined(WITH_NEW_MESA)
+BUILD_WRKSRC= ${WRKSRC}/src/mapi
+INSTALL_WRKSRC= ${WRKSRC}/src/mapi
+.else
+BUILD_WRKSRC= ${WRKSRC}/src/mapi/es2api
+INSTALL_WRKSRC= ${WRKSRC}/src/mapi/es2api
+.endif
+
+.if !defined(WITH_NEW_MESA)
+pre-build:
+ @cd ${WRKSRC}/src/mapi/shared-glapi && ${MAKE_CMD} ${_MAKE_JOBS}
+.endif
+
+post-install:
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/.mesa
+ @${MV} ${STAGEDIR}${PREFIX}/lib/libGLESv2.so* \
+ ${STAGEDIR}${PREFIX}/lib/.mesa/
+
+.include <bsd.port.mk>
Property changes on: trunk/graphics/libglesv2/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/graphics/libglesv2/pkg-deinstall
===================================================================
--- trunk/graphics/libglesv2/pkg-deinstall (rev 0)
+++ trunk/graphics/libglesv2/pkg-deinstall 2015-08-27 23:13:16 UTC (rev 20066)
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+PREFIX="${PKG_PREFIX-/usr/local}"
+
+case $2 in
+DEINSTALL)
+ /bin/rm -f ${PREFIX}/lib/libGLESv2.so*
+ ;;
+esac
Property changes on: trunk/graphics/libglesv2/pkg-deinstall
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/graphics/libglesv2/pkg-descr
===================================================================
--- trunk/graphics/libglesv2/pkg-descr (rev 0)
+++ trunk/graphics/libglesv2/pkg-descr 2015-08-27 23:13:16 UTC (rev 20066)
@@ -0,0 +1,3 @@
+This package contains the GL ES v2 utility library.
+
+WWW: http://www.freedesktop.org/Software/xorg
Property changes on: trunk/graphics/libglesv2/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/graphics/libglesv2/pkg-install
===================================================================
--- trunk/graphics/libglesv2/pkg-install (rev 0)
+++ trunk/graphics/libglesv2/pkg-install 2015-08-27 23:13:16 UTC (rev 20066)
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+PREFIX="${PKG_PREFIX-/usr/local}"
+
+case $2 in
+POST-INSTALL)
+ if [ -f ${PREFIX}/lib/.nvidia/libGLESv2.so.2 ]; then
+ /bin/ln -f ${PREFIX}/lib/.nvidia/libGLESv2.so.2 ${PREFIX}/lib/libGLESv2.so
+ /bin/ln -f ${PREFIX}/lib/.nvidia/libGLESv2.so.2 ${PREFIX}/lib/libGLESv2.so.2
+ else
+ /bin/ln -f ${PREFIX}/lib/.mesa/libGLESv2.so.2.0.0 ${PREFIX}/lib/libGLESv2.so
+ /bin/ln -f ${PREFIX}/lib/.mesa/libGLESv2.so.2.0.0 ${PREFIX}/lib/libGLESv2.so.2
+ /bin/ln -f ${PREFIX}/lib/.mesa/libGLESv2.so.2.0.0 ${PREFIX}/lib/libGLESv2.so.2.0.0
+ fi
+ ;;
+esac
Property changes on: trunk/graphics/libglesv2/pkg-install
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/graphics/libglesv2/pkg-plist
===================================================================
--- trunk/graphics/libglesv2/pkg-plist (rev 0)
+++ trunk/graphics/libglesv2/pkg-plist 2015-08-27 23:13:16 UTC (rev 20066)
@@ -0,0 +1,14 @@
+include/GLES2/gl2.h
+include/GLES2/gl2ext.h
+include/GLES2/gl2platform.h
+include/GLES3/gl3.h
+%%NEW%%include/GLES3/gl31.h
+include/GLES3/gl3ext.h
+include/GLES3/gl3platform.h
+lib/.mesa/libGLESv2.so
+lib/.mesa/libGLESv2.so.2
+lib/.mesa/libGLESv2.so.2.0.0
+ at comment lib/libglapi.so
+ at comment lib/libglapi.so.0
+ at comment lib/libglapi.so.0.0.0
+libdata/pkgconfig/glesv2.pc
Property changes on: trunk/graphics/libglesv2/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list