summaryrefslogtreecommitdiff
path: root/khronos-opengl-registry.cygport
blob: 1151e2ebca63f2957411cdb8ff136ee529491321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
NAME=khronos-opengl-registry
VERSION=20171010_gitc6a99aff
RELEASE=1
ARCH="noarch"

GIT_URI="https://github.com/KhronosGroup/OpenGL-Registry.git"
GIT_REV=${VERSION##*git}
PATCH_URI="reg.py.patch"

inherit git python3

HOMEPAGE="http://www.opengl.org/registry/"
LICENSE="SGI Free Software License B"
CATEGORY="X11"
SUMMARY="Khronos OpenGL registry"
DESCRIPTION="Khronos Group OpenGL registry XML defining the APIs and reserved enumerant ranges for OpenGL, GLX, WGL and EGL."
RESTRICT="postinst-doc"

DEPEND="texlive texlive-collection-latex"
RESTRICT="diff debuginfo"

src_compile() {
    cat >$B/$PN.pc <<EOF
prefix=/usr
datadir=/usr/share
specdir=/usr/share/opengl/api
Name: $PN
Description: Khronos OpenGL registry
Version: $PV
EOF

    cd ${S}/xml
    # we don't need to make the genheaders targets, as the headers aren't part
    # of this package, but make sure the stuff we do include is up-to-date.
    make readme.pdf
}

src_install() {
    cd ${S}
    insinto /usr/share/opengl/api
    doins xml/*.xml xml/readme.pdf xml/*.rnc xml/reg.py

    insinto /usr/share/pkgconfig
    doins $B/*.pc

    python3_optimize /usr/share/opengl/api
}