summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-04-23 14:05:47 +0800
committerErik Kundiman <erik@megapahit.org>2025-04-23 14:11:38 +0800
commit8de65d07e25ac98ee6c6f82cf4d52a3c1144f64f (patch)
tree4931363692defd940943964c6d0bf637e4784874
parent1a7109476ca13449956ec0490e389c2ee0918c40 (diff)
Megapahit viewer 7.1.13.53691 ebuild
Keyword is masked this time.
-rw-r--r--games-rpg/megapahit/Manifest1
-rw-r--r--games-rpg/megapahit/megapahit-7.1.13-r53691.ebuild105
2 files changed, 106 insertions, 0 deletions
diff --git a/games-rpg/megapahit/Manifest b/games-rpg/megapahit/Manifest
index 4f44df5..bbf9e4a 100644
--- a/games-rpg/megapahit/Manifest
+++ b/games-rpg/megapahit/Manifest
@@ -10,6 +10,7 @@ DIST libwebrtc-linux-x64.tar.xz 47153260 BLAKE2B 38a26484380b68e618a3fc648ec2227
DIST llca-202407221423.0-common-10042698865.tar.zst 312496 BLAKE2B 0097fa44e57990a295f8fa2d7fb1e656f6b21ff97b4e04aac33cbfdf4a2ee7b85a578f7c19bbfe593d5a5f00060a8f4832cfd54fe14418ab1a46d4130d6b0209 SHA512 8abfb35394a4c32ad0c6d0b042c0bad44be84f60cab5c170fa8a965b45eb5baf21559c4840be41422cf95ad26803f3314fc1a2a0e3391460cc29de32c051d246
DIST llphysicsextensions_stub-1.0.504712-linux64-504712.tar.bz2 16208 BLAKE2B e6b8a1fce1de2329efb6289e03d0b6df88ba045da03f5a76f33960517adbc5fe94f785899cfb26ad2007a2663d12fee97c52d4a9230617af28c60044134a328f SHA512 08a30cf5b8228fb5e49d4e47cf3883a5bb025b230f625c5bf1514d542cbe431b34dda2dd161bdced9c0f634d7bad85b635f18c4545e89e5ffc3200b287330f2e
DIST megapahit-7.1.13-r53573.tar.bz2 27891221 BLAKE2B bcff84a9dab51ad7a46f5914a5acd7a06e57d77c9c43ab5a310c92016bfa47b111805a92d3293623cdb1f123c6c435243d815dec26bbe05567eead1aae31b8d3 SHA512 8c780dd29086b005633e67914312c2dd4026b67689dcc25ebc9eba3bbc15312e84558cfa377c65792c1fcbe728b4d7d39363cbf6eba133e166ac5e62a1d73884
+DIST megapahit-7.1.13-r53691.tar.bz2 27897922 BLAKE2B 5883f6a540e3337854b18ed54e7b0018f856af863bb861f4a61208ce35369fb5b77a9566fabfdd975347f738c069fbc7f00472fbdab06e24273f307cfe84b10d SHA512 0419c4725bb13996c8eb3aa43dd402cb8347801fa85968ccccddf1d953d4314f0f26b09d7b5a8bbb3d52564e3ef613d1577ab110beaff277a8f5cc3e0cf9fa66
DIST meshoptimizer-0.21.tar.gz 402174 BLAKE2B 43664b39dfdec0a2966cf7b826b0129c3c2820de2a9e042112288411fd6643a634b7356efadaefd31eaa8402837fbe31e8210f9f707e4835e3b2deb1f7c57e83 SHA512 801cdc911da6ece7afe2ae4f5d002f27e8a0b5072ec4332968183941671024b3cda2a45266c0899cc9fb134d3b931d70b3bd9629dc7765f77e102146b2f6bfd0
DIST mikktspace-1-linux64-8756084692.tar.zst 14679 BLAKE2B d3ff6510bc6aaaf870d3e33a81e0e540707a3e845a7c3638aed714be9e72e572d97d162299e82b06f01cdb4359341d8a172c4ccdf220a2031d87941426eb114c SHA512 eac64b36c262188f4f52f42520e16721a34608fa7216103053cb3b3322dafb96430a5918db19cfa953625997119a30868bf7cf82ea7eb527e12f35c3d1adb899
DIST open_libndofdev-0.14.8730039102-linux64-8730039102.tar.zst 21333 BLAKE2B 1fa02576a7b3da1a870760d2ea5289159004400e6c3b5be7f66428228d2eb72aba08114f2c18134c36ce595d5d6c7cdcb78c47e84b065e918143b358aa7cbf5d SHA512 228095abecb48c4ff3cb1ef3fe84ba4766bc2fcf9c5b6e597a7f2e901490acc8535b0ea51e42db22f01f1bf92c92045aebbae75d47026d1e09067e5b363ae503
diff --git a/games-rpg/megapahit/megapahit-7.1.13-r53691.ebuild b/games-rpg/megapahit/megapahit-7.1.13-r53691.ebuild
new file mode 100644
index 0000000..f7a52e9
--- /dev/null
+++ b/games-rpg/megapahit/megapahit-7.1.13-r53691.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake unpacker
+
+DESCRIPTION="A fork of the Second Life viewer"
+HOMEPAGE="https://megapahit.net"
+SRC_URI="
+ https://megapahit.net/downloads/${PF}.tar.bz2
+ https://github.com/secondlife/3p-colladadom/archive/refs/tags/v2.3-r8.tar.gz -> colladadom-v2.3-r8.tar.gz
+ https://github.com/secondlife/3p-cubemap_to_eqr_js/releases/download/v1.1.0-cb8785a/cubemaptoequirectangular-1.1.0-linux64-cb8785a.tar.zst
+ https://github.com/secondlife/3p-curl/releases/download/v7.54.1-r1/curl-7.54.1-10342910827-linux64-10342910827.tar.zst
+ https://github.com/secondlife/3p-dictionaries/releases/download/v1-a01bb6c/dictionaries-1.a01bb6c-common-a01bb6c.tar.zst
+ https://github.com/secondlife/dullahan/releases/download/v1.14.0-r3/dullahan-1.14.0.202408091637_118.4.1_g3dd6078_chromium-118.0.5993.54-linux64-10322607516.tar.zst
+ https://github.com/secondlife/3p-emoji-shortcodes/releases/download/v15.3.2-r1/emoji_shortcodes-15.3.2.10207138275-common-10207138275.tar.zst
+ https://github.com/secondlife/3p-glh_linear/releases/download/v1.0.1-dev4-984c397/glh_linear-1.0.1-dev4-common-984c397.tar.zst
+ https://github.com/secondlife/3p-jpeg_encoder_js/releases/download/v1.0-790015a/jpegencoderbasic-1.0-linux64-790015a.tar.zst
+ https://github.com/crow-misia/libwebrtc-bin/releases/download/114.5735.6.1/libwebrtc-linux-x64.tar.xz
+ https://github.com/secondlife/llca/releases/download/v202407221723.0-a0fd5b9/llca-202407221423.0-common-10042698865.tar.zst
+ http://automated-builds-secondlife-com.s3.amazonaws.com/ct2/4724/14846/llphysicsextensions_stub-1.0.504712-linux64-504712.tar.bz2
+ https://github.com/zeux/meshoptimizer/archive/refs/tags/v0.21.tar.gz -> meshoptimizer-0.21.tar.gz
+ https://github.com/secondlife/3p-mikktspace/releases/download/v2-e967e1b/mikktspace-1-linux64-8756084692.tar.zst
+ https://github.com/secondlife/3p-open-libndofdev/releases/download/v1.14-r2/open_libndofdev-0.14.8730039102-linux64-8730039102.tar.zst
+ https://github.com/secondlife/3p-openjpeg/releases/download/v2.5.0.ea12248/openjpeg-2.5.0.ea12248-linux64-ea12248.tar.zst
+ https://github.com/secondlife/3p-openssl/releases/download/v1.1.1w-r1/openssl-1.1.1w-linux64-10329796904.tar.zst
+ https://github.com/secondlife/3p-openxr/releases/download/v1.1.40-r1/openxr-1.1.40-r1-linux64-10710818432.tar.zst
+ https://github.com/secondlife/3p-three_js/releases/download/v0.132.2-5da28d9/threejs-0.132.2-common-8454371083.tar.zst
+ https://github.com/secondlife/3p-tinyexr/releases/download/v1.0.9-5e8947c/tinyexr-1.0.9-5e8947c-common-10475846787.tar.zst
+ https://github.com/secondlife/3p-tinygltf/releases/download/v2.9.3-r1/tinygltf-2.9.3-r1-common-10341018043.tar.zst
+ https://github.com/secondlife/3p-viewer-fonts/releases/download/v1.1.0-r1/viewer_fonts-1.0.0.10204976553-common-10204976553.tar.zst
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ media-libs/freealut
+ dev-libs/apr-util
+ dev-libs/boost[context]
+ x11-libs/fltk
+ app-text/hunspell
+ net-libs/nghttp2
+ media-libs/libsdl2[opengl]
+ media-video/vlc
+ sys-libs/zlib[minizip]
+"
+DEPEND="
+ ${RDEPEND}
+ media-libs/glm
+ media-libs/nanosvg
+ media-video/pipewire
+ media-libs/libpulse
+ dev-libs/uriparser
+ dev-libs/xxhash
+"
+BDEPEND="
+ dev-build/cmake
+ dev-util/pkgconf
+ app-arch/zstd
+"
+S="${WORKDIR}/viewer"
+
+CMAKE_BUILD_TYPE="Release"
+
+pkg_setup() {
+ export LL_BUILD="-fPIC -DLL_LINUX=1"
+ export revision="$(ver_cut 2- ${PR})"
+}
+
+src_unpack() {
+ unpacker
+ cd ${WORKDIR}
+ mkdir -p viewer/indra_build/packages
+ mv 3p-colladadom-2.3-r8 meshoptimizer-0.21 viewer/indra_build/
+ mv LICENSES NOTICE VERSION autobuild-package.xml bin ca-bundle.crt dictionaries docs fonts include js llphysicsextensions lib meta mikktspace.txt resources xui viewer/indra_build/packages/
+}
+
+src_prepare() {
+ cd ${WORKDIR}/viewer/indra_build/3p-colladadom-2.3-r8
+ eapply ${S}/patches/collada-dom-v2.3-r8.patch
+ cd ${S}/indra
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DADDRESS_SIZE:STRING=64
+ -DUSESYSTEMLIBS:BOOL=ON
+ -DUSE_OPENAL:BOOL=ON
+ -DUSE_FMODSTUDIO:BOOL=OFF
+ -DENABLE_MEDIA_PLUGINS:BOOL=ON
+ -DLL_TESTS:BOOL=OFF
+ -DNDOF:BOOL=ON
+ -DROOT_PROJECT_NAME:STRING=Megapahit
+ -DVIEWER_CHANNEL:STRING=Megapahit
+ -DVIEWER_BINARY_NAME:STRING=${PN}
+ -DBUILD_SHARED_LIBS:BOOL=OFF
+ -DINSTALL:BOOL=ON
+ -DPACKAGE:BOOL=OFF
+ )
+ cmake_src_configure
+}