Skip to content

Commit

Permalink
libgltf-0.1.0 (rebuild with gcc-12.4.0 / WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Jan 26, 2025
1 parent c0b4312 commit b65dd93
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 107 deletions.
50 changes: 22 additions & 28 deletions libgltf/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,35 @@ libgltf
------------------------------------------
LIBGLTF is a C++ library for rendering OpenGL models stored in glTF format.

The glTF, the GL Transmission Format, is the runtime asset format for
the GL APIs: WebGL, OpenGL ES, and OpenGL. glTF bridges the gap between
formats used by modeling tools and the GL APIs. You can read more about
the format in it's specification:
https://github.com/KhronosGroup/glTF/blob/schema/specification/README.md

LIBGLTF provides methods to load the OpenGL scene from glTF format and render
it into an existing OpenGL context. LIBGLTF also allows to change the camera
position so the scene can be displayed from different points of view.

Summary, LIBGLTF can be a good base of a glTF viewer.

Runtime requirements:
cygwin-2.9.0-3
cygwin-3.5.6-1
libepoxy-devel-1.4.3-1
libepoxy0-1.4.3-1
libgcc1-6.4.0-1
libgltf0.1-devel-0.1.0-1bl1
libgltf0.1_1-0.1.0-1bl1
libstdc++6-6.4.0-1
pkg-config-0.29.1-1
libgcc1-12.4.0-3
libgltf0.1-devel-0.1.0-1bl2
libgltf0.1_1-0.1.0-1bl2
libstdc++6-12.4.0-3
pkg-config-2.3.0-1

Build requirements:
(besides corresponding -devel packages)
autoconf-13-1
automake-10-1
binutils-2.28-3
cygport-0.24.1-1
gcc-core-6.4.0-1
gcc-g++-6.4.0-1
libtool-2.4.6-5
make-4.2.1-2
autoconf-15-2
automake-20240607-1
binutils-2.43.1-1
cygport-0.36.9-1
gcc-core-12.4.0-3
gcc-g++-12.4.0-3
glm-devel-0.9.9.5-1
libboost-devel-1.66.0-1
libepoxy-devel-1.4.3-1
libtool-2.5.4-1
make-4.4.1-2

Canonical website:
http://www.libreoffice.org
https://www.libreoffice.org

Canonical download:
http://dev-www.libreoffice.org/src/libgltf/libgltf-0.1.0.tar.gz
https://dev-www.libreoffice.org/src/libgltf/libgltf-0.1.0.tar.gz

-------------------------------------------

Expand Down Expand Up @@ -82,6 +73,9 @@ Files included in the binary package:

Port Notes:

----- version 0.1.0-1bl2 -----
Rebuild with gcc-12.4.0

----- version 0.1.0-1bl1 -----
Version bump.

Expand Down
41 changes: 0 additions & 41 deletions libgltf/libgltf-0.1.0-1bl1.cygport

This file was deleted.

38 changes: 0 additions & 38 deletions libgltf/libgltf-0.1.0-1bl1.src.patch

This file was deleted.

38 changes: 38 additions & 0 deletions libgltf/libgltf-0.1.0-1bl2.cygport
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
HOMEPAGE="https://www.libreoffice.org"
SRC_URI="https://dev-www.libreoffice.org/src/${PN}/${P}.tar.gz"
PATCH_URI="
https://sources.debian.org/data/main/libg/${PN}/0.1.0-3/debian/patches/glm-0.9.9.diff
"

CATEGORY="Libs"
SUMMARY="C++ Library for rendering OpenGL models stored in glTF format"
DESCRIPTION="LIBGLTF is a C++ library for rendering OpenGL models stored in glTF format."

LICENSE="MPL-2.0"
LICENSE_SPDX="SPDX-License-Identifier: MPL-2.0"
LICENSE_URI="COPYING"

BUILD_REQUIRES="glm-devel libboost-devel libepoxy-devel"

CYGCONF_ARGS="
--enable-tests=yes
"

PKG_NAMES="
${PN}
${PN}0.1_1
${PN}0.1-devel
"
libgltf_CONTENTS="
usr/share
"
libgltf0_1_1_CONTENTS="
usr/bin/cyg*-1.dll
"
libgltf0_1_devel_CONTENTS="
usr/include
usr/lib
"
libgltf_SUMMARY="${SUMMARY} (licensing & readmes)"
libgltf0_1_1_SUMMARY="${SUMMARY} (runtime)"
libgltf0_1_devel_SUMMARY="${SUMMARY} (development)"
20 changes: 20 additions & 0 deletions libgltf/libgltf-0.1.0-1bl2.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- origsrc/libgltf-0.1.0/configure.ac 2025-01-27 08:21:54.721057300 +0900
+++ src/libgltf-0.1.0/configure.ac 2025-01-27 08:23:43.169095800 +0900
@@ -174,8 +174,6 @@ AC_SUBST(DEBUG_CXXFLAGS)
# ==========
# Unit tests
# ==========
-if test "$host_os" = "linux-gnu"; then
-
AC_ARG_ENABLE([tests],
[AS_HELP_STRING([--enable-tests], [Build and run unit tests])],
[enable_tests="$enableval"],
@@ -209,8 +207,6 @@ AS_IF([test "x$enable_tests" = "xyes"],
AC_CHECK_HEADER(unistd.h, [], [AC_MSG_ERROR(unistd.h not found.)], [])
], [])

-fi
-
AM_CONDITIONAL(TESTS, [test "x$enable_tests" = "xyes"])

# =====================

0 comments on commit b65dd93

Please sign in to comment.