Skip to content

Commit

Permalink
Merge pull request conda-forge#65 from capn-freako/add-gluh-to-mesa-l…
Browse files Browse the repository at this point in the history
…ibgl-devel
  • Loading branch information
beckermr authored Feb 26, 2024
2 parents 66808da + 792fefd commit 0154c60
Show file tree
Hide file tree
Showing 15 changed files with 527 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,8 @@ register_repo("conda-forge", "cdt-builds", config=cfg)
| [`mesa-libglapi-cos7-aarch64`](https://anaconda.org/conda-forge/mesa-libglapi-cos7-aarch64) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mesa-libglapi-cos7-aarch64.svg)](https://anaconda.org/conda-forge/mesa-libglapi-cos7-aarch64) |
| [`mesa-libglapi-cos7-ppc64le`](https://anaconda.org/conda-forge/mesa-libglapi-cos7-ppc64le) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mesa-libglapi-cos7-ppc64le.svg)](https://anaconda.org/conda-forge/mesa-libglapi-cos7-ppc64le) |
| [`mesa-libglapi-cos7-x86_64`](https://anaconda.org/conda-forge/mesa-libglapi-cos7-x86_64) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mesa-libglapi-cos7-x86_64.svg)](https://anaconda.org/conda-forge/mesa-libglapi-cos7-x86_64) |
| [`mesa-libglu-cos6-x86_64`](https://anaconda.org/conda-forge/mesa-libglu-cos6-x86_64) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mesa-libglu-cos6-x86_64.svg)](https://anaconda.org/conda-forge/mesa-libglu-cos6-x86_64) |
| [`mesa-libglu-devel-cos6-x86_64`](https://anaconda.org/conda-forge/mesa-libglu-devel-cos6-x86_64) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mesa-libglu-devel-cos6-x86_64.svg)](https://anaconda.org/conda-forge/mesa-libglu-devel-cos6-x86_64) |
| [`nspr-cos6-x86_64`](https://anaconda.org/conda-forge/nspr-cos6-x86_64) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/nspr-cos6-x86_64.svg)](https://anaconda.org/conda-forge/nspr-cos6-x86_64) |
| [`nspr-cos7-aarch64`](https://anaconda.org/conda-forge/nspr-cos7-aarch64) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/nspr-cos7-aarch64.svg)](https://anaconda.org/conda-forge/nspr-cos7-aarch64) |
| [`nspr-cos7-ppc64le`](https://anaconda.org/conda-forge/nspr-cos7-ppc64le) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/nspr-cos7-ppc64le.svg)](https://anaconda.org/conda-forge/nspr-cos7-ppc64le) |
Expand Down
12 changes: 12 additions & 0 deletions cdt_slugs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,18 @@ mesa-libGL:
mesa-libGL-devel:
custom: false
license_file: licenses/mesa-license
mesa-libGLU:
custom: true
license_file: licenses/mesa-license
build_append:
cos7-x86_64: |
pushd ${SYSROOT_DIR}/usr/lib64 > /dev/null 2>&1
rm libGLX_system.so.0
ln -s libGLX_mesa.so.0 libGLX_system.so.0
popd > /dev/null 2>&1
mesa-libGLU-devel:
custom: true
license_file: licenses/mesa-license
mesa-libglapi:
custom: false
skipped_cdts:
Expand Down
59 changes: 59 additions & 0 deletions custom_cdts/mesa-libglu-cos6-x86_64/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/bin/bash

set -o errexit -o pipefail

SYSROOT_DIR="${PREFIX}"/x86_64-conda-linux-gnu/sysroot

mkdir -p "${SYSROOT_DIR}"
if [[ -d usr/lib ]]; then
if [[ ! -d lib ]]; then
ln -s usr/lib lib
fi
fi
if [[ -d usr/lib64 ]]; then
if [[ ! -d lib64 ]]; then
ln -s usr/lib64 lib64
fi
fi
pushd ${SRC_DIR}/binary > /dev/null 2>&1
rsync -K -a . "${SYSROOT_DIR}"
popd > /dev/null 2>&1

# START OF INSERTED BUILD APPENDS

# END OF INSERTED BUILD APPENDS

# this code makes sure that any symlinks are relative and their targets exist
# the CDT would fail at test time, but doing it here produces useful error
# messages for fixing things
error_code=0
for blnk in $(find ./binary -type l); do
# loop is over symlinks in the RPM, so get the path in the sysroot
lnk=${SYSROOT_DIR}${blnk#"./binary"}

# if it is not a link in the sysroot, move on
if [[ ! -L ${lnk} ]]; then
continue
fi

# get the link dir and the destination of the link
lnk_dir=$(dirname ${lnk})
lnk_dst_nm=$(readlink ${lnk})
if [[ ${lnk_dst_nm:0:1} == "/" ]]; then
lnk_dst=${lnk_dst_nm}
else
lnk_dst="${lnk_dir}/${lnk_dst_nm}"
fi

# now test if it is absolute and relative to the system and not the PREFIX
# also test if the dest file exists
if [[ ${lnk_dst_nm:0:1} == "/" ]] && [[ ! ${lnk_dst_nm} == ${SYSROOT_DIR}* ]]; then
echo "***WARNING ABSOLUTE SYMLINK***: ${lnk} -> ${lnk_dst}"
error_code=1
elif [[ ! -e "${lnk_dst}" ]]; then
echo "***WARNING SYMLINK W/O DESTINATION: ${lnk} -> ${lnk_dst}"
error_code=1
fi
done

exit ${error_code}
19 changes: 19 additions & 0 deletions custom_cdts/mesa-libglu-cos6-x86_64/mesa-license
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (C) 1999-2007 Brian Paul All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
40 changes: 40 additions & 0 deletions custom_cdts/mesa-libglu-cos6-x86_64/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package:
name: mesa-libglu-cos6-x86_64
version: 11.0.7

source:
- url: https://vault.centos.org/6.10/os/x86_64/Packages/mesa-libGLU-11.0.7-4.el6.x86_64.rpm
sha256: b56e0217bf287fa0211ce209a2180305b74d93d867c6dee91e55a46b5da78508
no_hoist: true
folder: binary

build:
number: {{ cdt_build_number|int + 1000 }}
noarch: generic
binary_relocation: false
detect_binary_files_with_prefix: false
missing_dso_whitelist:
- '*'

requirements:
host:
- sysroot_linux-64 2.12.*
run:
- sysroot_linux-64 2.12.*

test:
commands:
- echo "it installs!"

about:
home: http://www.mesa3d.org
license: MIT
license_family: MIT
license_file: mesa-license
summary: (CDT) Mesa libGL development package
description: |
Mesa libGL development package
extra:
recipe-maintainers:
- conda-forge/help-cdts
55 changes: 55 additions & 0 deletions custom_cdts/mesa-libglu-cos7-x86_64/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/bash

set -o errexit -o pipefail

SYSROOT_DIR="${PREFIX}"/x86_64-conda-linux-gnu/sysroot

mkdir -p "${SYSROOT_DIR}"
if [[ -d usr/lib ]]; then
if [[ ! -d lib ]]; then
ln -s usr/lib lib
fi
fi
if [[ -d usr/lib64 ]]; then
if [[ ! -d lib64 ]]; then
ln -s usr/lib64 lib64
fi
fi
pushd ${SRC_DIR}/binary > /dev/null 2>&1
rsync -K -a . "${SYSROOT_DIR}"
popd > /dev/null 2>&1

# this code makes sure that any symlinks are relative and their targets exist
# the CDT would fail at test time, but doing it here produces useful error
# messages for fixing things
error_code=0
for blnk in $(find ./binary -type l); do
# loop is over symlinks in the RPM, so get the path in the sysroot
lnk=${SYSROOT_DIR}${blnk#"./binary"}

# if it is not a link in the sysroot, move on
if [[ ! -L ${lnk} ]]; then
continue
fi

# get the link dir and the destination of the link
lnk_dir=$(dirname ${lnk})
lnk_dst_nm=$(readlink ${lnk})
if [[ ${lnk_dst_nm:0:1} == "/" ]]; then
lnk_dst=${lnk_dst_nm}
else
lnk_dst="${lnk_dir}/${lnk_dst_nm}"
fi

# now test if it is absolute and relative to the system and not the PREFIX
# also test if the dest file exists
if [[ ${lnk_dst_nm:0:1} == "/" ]] && [[ ! ${lnk_dst_nm} == ${SYSROOT_DIR}* ]]; then
echo "***WARNING ABSOLUTE SYMLINK***: ${lnk} -> ${lnk_dst}"
error_code=1
elif [[ ! -e "${lnk_dst}" ]]; then
echo "***WARNING SYMLINK W/O DESTINATION: ${lnk} -> ${lnk_dst}"
error_code=1
fi
done

exit ${error_code}
19 changes: 19 additions & 0 deletions custom_cdts/mesa-libglu-cos7-x86_64/mesa-license
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (C) 1999-2007 Brian Paul All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
50 changes: 50 additions & 0 deletions custom_cdts/mesa-libglu-cos7-x86_64/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package:
name: mesa-libglu-cos7-x86_64
version: 9.0.0

source:
- url: http://mirror.centos.org/centos/7/os/x86_64/Packages/mesa-libGLU-9.0.0-4.el7.x86_64.rpm
sha256: b21eb09f310635c5f6c426f2013e9cab95c95f1446522a575c16a58099ee465b
no_hoist: true
folder: binary

build:
number: {{ cdt_build_number|int + 1000 }}
noarch: generic
binary_relocation: false
detect_binary_files_with_prefix: false
missing_dso_whitelist:
- '*'

requirements:
build:
- libdrm-cos7-x86_64 >=2.4.83 *_{{ cdt_build_number|int + 1000 }}
- libglvnd-glx-cos7-x86_64 >=1.0.1 *_{{ cdt_build_number|int + 1000 }}
- mesa-libglapi-cos7-x86_64 ==18.3.4 *_{{ cdt_build_number|int + 1000 }}
host:
- libdrm-cos7-x86_64 >=2.4.83 *_{{ cdt_build_number|int + 1000 }}
- libglvnd-glx-cos7-x86_64 >=1.0.1 *_{{ cdt_build_number|int + 1000 }}
- mesa-libglapi-cos7-x86_64 ==18.3.4 *_{{ cdt_build_number|int + 1000 }}
- sysroot_linux-64 2.17.*
run:
- libdrm-cos7-x86_64 >=2.4.83 *_{{ cdt_build_number|int + 1000 }}
- libglvnd-glx-cos7-x86_64 >=1.0.1 *_{{ cdt_build_number|int + 1000 }}
- mesa-libglapi-cos7-x86_64 ==18.3.4 *_{{ cdt_build_number|int + 1000 }}
- sysroot_linux-64 2.17.*

test:
commands:
- echo "it installs!"

about:
home: http://www.mesa3d.org
license: MIT
license_family: MIT
license_file: mesa-license
summary: (CDT) Mesa libGLU runtime libraries
description: |
Mesa libGLU runtime library.
extra:
recipe-maintainers:
- conda-forge/help-cdts
59 changes: 59 additions & 0 deletions custom_cdts/mesa-libglu-devel-cos6-x86_64/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/bin/bash

set -o errexit -o pipefail

SYSROOT_DIR="${PREFIX}"/x86_64-conda-linux-gnu/sysroot

mkdir -p "${SYSROOT_DIR}"
if [[ -d usr/lib ]]; then
if [[ ! -d lib ]]; then
ln -s usr/lib lib
fi
fi
if [[ -d usr/lib64 ]]; then
if [[ ! -d lib64 ]]; then
ln -s usr/lib64 lib64
fi
fi
pushd ${SRC_DIR}/binary > /dev/null 2>&1
rsync -K -a . "${SYSROOT_DIR}"
popd > /dev/null 2>&1

# START OF INSERTED BUILD APPENDS

# END OF INSERTED BUILD APPENDS

# this code makes sure that any symlinks are relative and their targets exist
# the CDT would fail at test time, but doing it here produces useful error
# messages for fixing things
error_code=0
for blnk in $(find ./binary -type l); do
# loop is over symlinks in the RPM, so get the path in the sysroot
lnk=${SYSROOT_DIR}${blnk#"./binary"}

# if it is not a link in the sysroot, move on
if [[ ! -L ${lnk} ]]; then
continue
fi

# get the link dir and the destination of the link
lnk_dir=$(dirname ${lnk})
lnk_dst_nm=$(readlink ${lnk})
if [[ ${lnk_dst_nm:0:1} == "/" ]]; then
lnk_dst=${lnk_dst_nm}
else
lnk_dst="${lnk_dir}/${lnk_dst_nm}"
fi

# now test if it is absolute and relative to the system and not the PREFIX
# also test if the dest file exists
if [[ ${lnk_dst_nm:0:1} == "/" ]] && [[ ! ${lnk_dst_nm} == ${SYSROOT_DIR}* ]]; then
echo "***WARNING ABSOLUTE SYMLINK***: ${lnk} -> ${lnk_dst}"
error_code=1
elif [[ ! -e "${lnk_dst}" ]]; then
echo "***WARNING SYMLINK W/O DESTINATION: ${lnk} -> ${lnk_dst}"
error_code=1
fi
done

exit ${error_code}
19 changes: 19 additions & 0 deletions custom_cdts/mesa-libglu-devel-cos6-x86_64/mesa-license
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (C) 1999-2007 Brian Paul All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 0154c60

Please sign in to comment.