mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* crew: cache builds * Initial Gnome43/Libjpeg_turbo/ICU72 commits squashed * fix lint error * update packages.yaml * Vulkan packages -> 1.3.231 * add packages to packages.yaml * add more to packages.yaml * update libxshmfence * pixman -> 0.42.0 * libpciaccess -> 0.17.0 * update libxau * update libxfont2 * update libxcb * many updates * updates * baobab updates * add libshumate * update gnome_calculator * update dfonf_editor * update evince * add libpanel * update libpeas * update libgweather * update libgudev gnome_maps * update upower and libxfixes * style update * update gnome_session * update gnome_settings_daemon * temporary partial webkit2gtk upload * update packages.yaml * fix ruby file perms * update folks * move webkit2gtk_4 back to 2.38.0 * update icu4c, change webkit2gtk build * add updated webkit2gtk_5 file * update js102 * add x86 builds for webkit2gtk_4 * add mozjs exclusion to icu4c postinstall * add builds for evolution_data_server * update gemacs * update webkit2gtk packages * update emacs * add folks fix * loosen icu4c postinstall check * rebuild libportal with gtk3 * update epiphany * openssh -> 9.1 * add x86 webkit2gtk_4 binaries * add postinstall to webkit2gtk_4 * update svt_av1 * update libavif * linting fix * curl -> 7.86.0 * git -> 2.38.1 * add postinstall to gnome_console * add gcc10 for armv7l * add gcc10 binaries * lint gcc10 * rebase fix * Add WIP webkit2gtk builds * add back postintall to gnome_maps * gstreamer version change * cleanup geocode_glib, and fix gnome_maps depend * s/@_ver.to_s/@_ver/ * add mpv build and gtk4 -> 4.8.2 * bump curl version to 7.86.0 * remove other version binaries from webkit2gtk builds * add i686 build * adjust compatibility for gemacs... for now. * Add code to sommelier to adjust for whether scripts are sourced or run. * make -> 4.4 * bump version
75 lines
3.3 KiB
Ruby
75 lines
3.3 KiB
Ruby
require 'package'
|
|
|
|
class Irrlicht < Package
|
|
description 'An open source realtime 3D engine written in C++ — Libraries and headers'
|
|
homepage 'http://irrlicht.sourceforge.net/'
|
|
version '1.8.5'
|
|
license 'ZLIB'
|
|
compatibility 'all'
|
|
source_url 'https://downloads.sourceforge.net/irrlicht/irrlicht-1.8.5.zip'
|
|
source_sha256 'effb7beed3985099ce2315a959c639b4973aac8210f61e354475a84105944f3d'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/irrlicht/1.8.5_armv7l/irrlicht-1.8.5-chromeos-armv7l.tar.zst',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/irrlicht/1.8.5_armv7l/irrlicht-1.8.5-chromeos-armv7l.tar.zst',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/irrlicht/1.8.5_i686/irrlicht-1.8.5-chromeos-i686.tar.zst',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/irrlicht/1.8.5_x86_64/irrlicht-1.8.5-chromeos-x86_64.tar.zst'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '6d0e198597e15bb4e9606803abfd3981e259fa4146c9aeb51c407d3b1ef41686',
|
|
armv7l: '6d0e198597e15bb4e9606803abfd3981e259fa4146c9aeb51c407d3b1ef41686',
|
|
i686: '8c1332d73f73efeff230e86250d796a7daf4a8d696f782ba6823cee79f7f3c60',
|
|
x86_64: 'fb72b83979027060249a52e0ec38f0d92e1ae7b04c836230baa744eb967316fd'
|
|
})
|
|
|
|
depends_on 'libxrandr'
|
|
depends_on 'libglvnd'
|
|
depends_on 'libxxf86vm'
|
|
depends_on 'libjpeg'
|
|
depends_on 'libpng'
|
|
depends_on 'dos2unix' => :build
|
|
depends_on 'bz2' # R
|
|
depends_on 'gcc' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'mesa' # R
|
|
depends_on 'zlibpkg' # R
|
|
|
|
def self.patch
|
|
system 'curl -#LO https://dev.gentoo.org/~mgorny/dist/irrlicht-1.8.4-patchset.tar.bz2'
|
|
@sha256sums = <<~EOF
|
|
03b6a5a8a98191f8efe6f7ccd5c957bbf2c4bf15ac6cdc987655792c8baff454 irrlicht-1.8.4-patchset.tar.bz2
|
|
EOF
|
|
File.write('sha256sums', @sha256sums)
|
|
system 'sha256sum -c sha256sums'
|
|
system "sed -i 's:\.\./\.\./media:../media:g' $(grep -rl '\.\./\.\./media' examples)"
|
|
system "sed -i 's/\r$//' source/Irrlicht/COSOperator.cpp"
|
|
system 'dos2unix include/IrrCompileConfig.h'
|
|
system 'tar xvf irrlicht-1.8.4-patchset.tar.bz2'
|
|
system 'for patch in irrlicht-1.8.4-patchset/*; do patch -p 1 -i ${patch}; done'
|
|
system "for m in \$(find -name Makefile); do \
|
|
sed -i 's:-I/usr/include/freetype2/:-I#{CREW_PREFIX}/include/freetype2:g' \$m; \
|
|
sed -i 's:-I/usr/X11R6/include:-I#{CREW_PREFIX}/X11R6/include:g' \$m; \
|
|
sed -i 's:-L/usr/X11R6/lib\$(LIBSELECT):-L/usr/local/X11R6/lib\$(LIBSELECT):g' \$m; \
|
|
sed -i 's:-I/usr/include:-I#{CREW_PREFIX}/include:g' \$m; done"
|
|
end
|
|
|
|
def self.build
|
|
Dir.chdir 'source/Irrlicht' do
|
|
system 'make sharedlib staticlib'
|
|
end
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p CREW_DEST_LIB_PREFIX.to_s
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/include/irrlicht"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/libexec/irrlicht"
|
|
FileUtils.cp Dir.glob('include/*'), "#{CREW_DEST_PREFIX}/include/irrlicht"
|
|
FileUtils.cp 'lib/Linux/libIrrlicht.a', CREW_DEST_LIB_PREFIX.to_s
|
|
FileUtils.cp 'lib/Linux/libIrrlicht.so.1.8.5', CREW_DEST_LIB_PREFIX.to_s
|
|
Dir.chdir CREW_DEST_LIB_PREFIX.to_s do
|
|
FileUtils.symlink 'libIrrlicht.so.1.8.5', 'libIrrlicht.so.1.8'
|
|
FileUtils.symlink 'libIrrlicht.so.1.8.5', 'libIrrlicht.so'
|
|
end
|
|
end
|
|
end
|