pstoedit: update to v4.02

This commit is contained in:
Dan R. K. Ports
2026-04-15 14:55:21 -07:00
committed by Dan Ports
parent b96af86ce1
commit 421a746fdf
2 changed files with 35 additions and 5 deletions
+6 -5
View File
@@ -7,11 +7,11 @@ legacysupport.newest_darwin_requires_legacy 9
legacysupport.redirect_bins pstoedit
name pstoedit
version 4.01
version 4.02
revision 0
checksums rmd160 13c8b21223192912bc2b9b7e3207c05181c8e850 \
sha256 459765ab736cb10f9554a7ac02c5ea7f355c6c2e9fcfd217611c7d5102b1076b \
size 1335475
checksums rmd160 69e4bdf539c5b5be2085e5206450e9eab78ca4c1 \
sha256 5588b432d2c6b2ad9828b44915ea5813ff9a3a3312a41fa0de4c38ddac9df72f \
size 1369790
categories graphics
maintainers nomaintainer
@@ -36,7 +36,8 @@ depends_run port:ghostscript
patchfiles patch-config-pstoedit.pc.in.diff \
patch-configure.ac.diff \
patch-src-cppcomp.h.diff
patch-src-cppcomp.h.diff \
patch-src-pstoedit.cpp.diff
use_autoreconf yes
@@ -0,0 +1,29 @@
--- src/pstoedit.cpp.orig 2026-04-15 13:46:06
+++ src/pstoedit.cpp 2026-04-15 13:46:06
@@ -64,7 +64,7 @@
#include "psfront.h"
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && defined(__linux__)
// for iterating over shared libraries
#include <link.h>
#endif
@@ -275,7 +275,7 @@
#ifndef UPPVERSION
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && defined(__linux__)
static int dl_iterate_callback(struct dl_phdr_info *info, size_t size, void *data){
if (size && info && strstr(info->dlpi_name, "libpstoedit.so.")) {
// cout << "found libpstoedit.so in " << info->dlpi_name << endl;
@@ -322,7 +322,7 @@
}
}
}
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && defined(__linux__)
if (!pluginsloaded) {
// finally try the directory where libpstoedit.so.0 was found
// libpstoedit.so.0