aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gegl
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gegl
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/gegl')
-rw-r--r--vcpkg/ports/gegl/disable_tests.patch13
-rw-r--r--vcpkg/ports/gegl/portfile.cmake58
-rw-r--r--vcpkg/ports/gegl/remove_execinfo_support.patch13
-rw-r--r--vcpkg/ports/gegl/vcpkg.json18
4 files changed, 102 insertions, 0 deletions
diff --git a/vcpkg/ports/gegl/disable_tests.patch b/vcpkg/ports/gegl/disable_tests.patch
new file mode 100644
index 0000000..7eff102
--- /dev/null
+++ b/vcpkg/ports/gegl/disable_tests.patch
@@ -0,0 +1,13 @@
+diff --git a/meson.build b/meson.build
+--- a/meson.build
++++ b/meson.build
+@@ -600,9 +600,8 @@
+ subdir('bin')
+ subdir('tools')
+ subdir('operations')
+ subdir('examples')
+-subdir('tests')
+ subdir('perf')
+ subdir('po')
+ subdir('docs')
+
diff --git a/vcpkg/ports/gegl/portfile.cmake b/vcpkg/ports/gegl/portfile.cmake
new file mode 100644
index 0000000..e6a4546
--- /dev/null
+++ b/vcpkg/ports/gegl/portfile.cmake
@@ -0,0 +1,58 @@
+string(REGEX MATCH [[^[0-9][0-9]*\.[1-9][0-9]*]] VERSION_MAJOR_MINOR ${VERSION})
+
+vcpkg_download_distfile(ARCHIVE
+ URLS https://download.gimp.org/pub/gegl/${VERSION_MAJOR_MINOR}/gegl-${VERSION}.tar.xz
+ FILENAME "gegl-${VERSION}.tar.xz"
+ SHA512 bf4801588abe8b568ae3d1daafa97af28516bbbdd44d2a0798c87412b49301f621db3cf1c7a3ec33f19d96ab4dbd37d80824f04460116a896dd7415aa0d5229d
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+ PATCHES
+ disable_tests.patch
+ remove_execinfo_support.patch
+)
+
+vcpkg_configure_meson(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Ddocs=false
+ -Dintrospection=false
+ -Dgdk-pixbuf=disabled
+ -Dgexiv2=disabled
+ -Dgraphviz=disabled
+ -Djasper=disabled
+ -Dlcms=disabled
+ -Dlensfun=disabled
+ -Dlibav=disabled
+ -Dlibraw=disabled
+ -Dlibrsvg=disabled
+ -Dlibspiro=disabled
+ -Dlibtiff=disabled
+ -Dlibv4l=disabled
+ -Dlibv4l2=disabled
+ -Dlua=disabled
+ -Dmrg=disabled
+ -Dmaxflow=disabled
+ -Dopenexr=disabled
+ -Dopenmp=disabled
+ -Dcairo=disabled
+ -Dpango=disabled
+ -Dpangocairo=disabled
+ -Dpoppler=disabled
+ -Dpygobject=disabled
+ -Dsdl2=disabled
+ -Dumfpack=disabled
+ -Dwebp=disabled
+)
+
+vcpkg_install_meson()
+
+vcpkg_copy_pdbs()
+
+vcpkg_fixup_pkgconfig()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
diff --git a/vcpkg/ports/gegl/remove_execinfo_support.patch b/vcpkg/ports/gegl/remove_execinfo_support.patch
new file mode 100644
index 0000000..45b5b84
--- /dev/null
+++ b/vcpkg/ports/gegl/remove_execinfo_support.patch
@@ -0,0 +1,13 @@
+diff --git a/meson.build b/meson.build
+index bf43d32ca..6798c43a4 100644
+--- a/meson.build
++++ b/meson.build
+@@ -270,7 +270,7 @@ w3m = find_program('w3m',
+ # Required Dependencies
+
+ config.set('HAVE_UNISTD_H', cc.has_header('unistd.h'))
+-config.set('HAVE_EXECINFO_H', cc.has_header('execinfo.h'))
++config.set('HAVE_EXECINFO_H', target_machine.system() != 'android' and cc.has_header('execinfo.h'))
+ config.set('HAVE_FSYNC', cc.has_function('fsync'))
+ config.set('HAVE_MALLOC_TRIM', cc.has_function('malloc_trim'))
+ config.set('HAVE_STRPTIME', cc.has_function('strptime'))
diff --git a/vcpkg/ports/gegl/vcpkg.json b/vcpkg/ports/gegl/vcpkg.json
new file mode 100644
index 0000000..9a7d7c0
--- /dev/null
+++ b/vcpkg/ports/gegl/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "gegl",
+ "version": "0.4.62",
+ "description": "Generic Graphical Library.",
+ "homepage": "https://gegl.org/",
+ "license": "LGPL-3.0-or-later",
+ "supports": "!windows | mingw",
+ "dependencies": [
+ "babl",
+ "json-glib",
+ "libjpeg-turbo",
+ "libpng",
+ {
+ "name": "vcpkg-tool-meson",
+ "host": true
+ }
+ ]
+}