summaryrefslogtreecommitdiff
path: root/graphics/py-simplejpeg/files/patch-setup.py
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-09-17 08:14:12 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2024-09-17 10:29:39 -0700
commitfd8eef851a1d73866993a69697dde17a6243de34 (patch)
tree371ecf03df6f4c411e86f49a5378ded479605e16 /graphics/py-simplejpeg/files/patch-setup.py
parentnet-im/dissent: avoid working around "make gomod-vendor" (diff)
graphics/py-simplejpeg: New port: Simple package for fast JPEG encoding and decoding
Diffstat (limited to 'graphics/py-simplejpeg/files/patch-setup.py')
-rw-r--r--graphics/py-simplejpeg/files/patch-setup.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/py-simplejpeg/files/patch-setup.py b/graphics/py-simplejpeg/files/patch-setup.py
new file mode 100644
index 000000000000..6b25aa003388
--- /dev/null
+++ b/graphics/py-simplejpeg/files/patch-setup.py
@@ -0,0 +1,37 @@
+--- setup.py.orig 2024-09-17 09:48:31 UTC
++++ setup.py
+@@ -8,7 +8,6 @@ import subprocess
+ import sysconfig
+ import subprocess
+
+-from cmake import CMAKE_BIN_DIR
+ from setuptools import setup
+ from setuptools import find_packages
+ from setuptools import Extension
+@@ -82,7 +81,7 @@ def make_type():
+
+
+ def make_type():
+- if OS in ('linux', 'darwin'):
++ if OS in ('linux', 'darwin', 'freebsd'):
+ return 'Unix Makefiles'
+ elif OS == 'windows':
+ return 'NMake Makefiles'
+@@ -152,7 +151,7 @@ class cmake_build_ext(build_ext):
+ os.chdir(build_dir)
+ config = 'Debug' if self.debug else 'Release'
+ env = dict(os.environ, **(env or {}))
+- cmake = pt.join(CMAKE_BIN_DIR, 'cmake')
++ cmake = 'cmake'
+ subprocess.check_call([
+ cmake,
+ '-G' + make_type(), '-Wno-dev',
+@@ -172,7 +171,7 @@ def _staticlib():
+
+
+ def _staticlib():
+- if OS in ('linux', 'darwin'):
++ if OS in ('linux', 'darwin', 'freebsd'):
+ return 'libturbojpeg.a'
+ elif OS == 'windows':
+ return 'turbojpeg-static.lib'