aboutsummaryrefslogtreecommitdiff
path: root/graphics/pstoedit/files
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-03-12 00:56:14 +0000
committerPatrick Li <pat@FreeBSD.org>2002-03-12 00:56:14 +0000
commit9e4a9e703497c579fba58ddc0abc71a8905c0b77 (patch)
tree8cfbc1db1e36795ccd9cdca0028f4eb976b8fdfa /graphics/pstoedit/files
parentca1956adc2376a5bd98e0ca6d529688594cb0308 (diff)
downloadports-9e4a9e703497c579fba58ddc0abc71a8905c0b77.tar.gz
ports-9e4a9e703497c579fba58ddc0abc71a8905c0b77.zip
Notes
Diffstat (limited to 'graphics/pstoedit/files')
-rw-r--r--graphics/pstoedit/files/patch-Makefile.in28
-rw-r--r--graphics/pstoedit/files/patch-drvswf.cpp11
-rw-r--r--graphics/pstoedit/files/patch-dynload.cpp57
3 files changed, 30 insertions, 66 deletions
diff --git a/graphics/pstoedit/files/patch-Makefile.in b/graphics/pstoedit/files/patch-Makefile.in
index f07e84d2b443..f22be5533f06 100644
--- a/graphics/pstoedit/files/patch-Makefile.in
+++ b/graphics/pstoedit/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig Wed Oct 4 04:51:25 2000
-+++ Makefile.in Sat Apr 14 08:24:02 2001
-@@ -16,7 +16,7 @@
+--- Makefile.in.orig Sat Dec 29 01:34:06 2001
++++ Makefile.in Sat Mar 9 03:58:24 2002
+@@ -19,7 +19,7 @@
GS=@GS@
# Choose a compiler + linker
@@ -9,25 +9,35 @@
CCC=@CXX@ @SPECIAL_CXXFLAGS@
LDLIBS=$(LOCALLIBS) @LDLIBS@ -lm @LDL@
LINK=@LINK@
-@@ -54,9 +54,9 @@
+@@ -57,9 +57,9 @@
# without shared libs use LDFLAGS=-lm
#LDLIBS= $(LOCALLIBS) -lm @LDL@
-INSTALL_PROGRAM=$(INSTALL)
-INSTALL_DATA=$(INSTALL) -m 644
-INSTALL_DIR=$(INSTALL) -d -m755 # or: mkdir -p
-+INSTALL_PROGRAM=@INSTALL_PROGRAM@
++INSTALL_PROGRAM=@INSTALL_PROGRAM@
+INSTALL_DATA=@INSTALL_DATA@
+INSTALL_DIR=mkdir -p
OBJEXT=o
EXEEXT=
OUTPUT=-o pstoedit
-@@ -68,7 +68,7 @@
+@@ -71,7 +71,7 @@
#LOCALDEFINES=-DHAVE_LIBPLOTTER -I/path/to/plotter.h
# add -DOLD_LIBPLOTTER for libplot older than 2.3
- LOCALDEFINES=@PLOTCOMPILEFLAGS@ @PNGCOMPILEFLAGS@
--LOCALLIBS=-L/path/to/libplot @LPLOTTER@ @PNGLINKFLAGS@
-+LOCALLIBS=@LIBS@ @LPLOTTER@ @PNGLINKFLAGS@
+ LOCALDEFINES=@PLOTCOMPILEFLAGS@ @MINGCOMPILEFLAGS@ @PNGCOMPILEFLAGS@
+-LOCALLIBS=-L/path/to/libplot @LPLOTTER@ @LMING@ @PNGLINKFLAGS@
++LOCALLIBS=@LDFLAGS@ @LIBS@ @LPLOTTER@ @LMING@ @PNGLINKFLAGS@
#############################################################
## IRIX 5.3
+@@ -367,8 +367,7 @@
+ if [ ! -d $(DESTDIR)$(MANDIR) ] ; then \
+ $(INSTALL_DIR) $(DESTDIR)$(MANDIR); \
+ fi
+- $(INSTALL_DATA) ../doc/pstoedit.1 $(DESTDIR)$(MANDIR)/pstoedit.$(MANEXT);
+- $(INSTALL_DATA) ../doc/pstoedit.htm $(DESTDIR)$(datadir)
++ $(INSTALL_DATA) ../doc/pstoedit.1 $(DESTDIR)$(MANDIR)/pstoedit.$(MANEXT)
+
+
+ # echo "please copy ../doc/pstoedit.htm to a suitable place"
diff --git a/graphics/pstoedit/files/patch-drvswf.cpp b/graphics/pstoedit/files/patch-drvswf.cpp
new file mode 100644
index 000000000000..f8b7c394c9bf
--- /dev/null
+++ b/graphics/pstoedit/files/patch-drvswf.cpp
@@ -0,0 +1,11 @@
+--- drvswf.cpp.orig Mon Dec 31 05:35:23 2001
++++ drvswf.cpp Sat Mar 9 05:54:59 2002
+@@ -415,7 +415,7 @@
+
+ // if the fontnames ends with .fdb, then the file is read, otherwise browser fonts are used.
+
+- SWFFont *f = new SWFFont(fontfilename.value());
++ SWFFont *f = new SWFFont((char *)fontfilename.value());
+ if ((f == NULL) || (f->font == NULL)) {
+ errf << "Loading font " << fontfilename.value() << " failed !" << endl;
+ return;
diff --git a/graphics/pstoedit/files/patch-dynload.cpp b/graphics/pstoedit/files/patch-dynload.cpp
deleted file mode 100644
index 8d83bc8eb4ed..000000000000
--- a/graphics/pstoedit/files/patch-dynload.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
---- dynload.cpp.orig Thu Aug 9 03:39:30 2001
-+++ dynload.cpp Fri Oct 5 03:02:16 2001
-@@ -24,7 +24,7 @@
-
- // we need __linux instead of just linux since the latter is not defined when -ansi is used.
-
--#if defined(__sparc) || defined(__linux) || defined(_WIN32) || defined(__OS2__)
-+#if defined(__sparc) || defined(__linux) || defined(__FreeBSD__) || defined(_WIN32) || defined(__OS2__)
- #define HAVESHAREDLIBS
- #endif
-
-@@ -48,6 +48,8 @@
- #include <dlfcn.h>
- typedef void (*initfunctype) ();
- // static const char * const libsuffix = ".so";
-+#elif defined(__FreeBSD__)
-+#include <dlfcn.h>
- #elif defined(__sparc)
- #if defined(__SVR4)
- #include <dlfcn.h>
-@@ -101,6 +103,9 @@
- #if defined(__linux)
- int loadmode = RTLD_LAZY; // RTLD_NOW
- handle = dlopen(fulllibname, loadmode);
-+#elif defined(__FreeBSD__)
-+ int loadmode = RTLD_LAZY; // RTLD_NOW
-+ handle = dlopen(fulllibname, loadmode);
- #elif defined(__sparc)
- int loadmode = RTLD_LAZY; // RTLD_NOW
- handle = dlopen(fulllibname, loadmode);
-@@ -136,6 +141,8 @@
- if (handle) {
- #if defined(__linux)
- dlclose(handle);
-+#elif defined(__FreeBSD__)
-+ dlclose(handle);
- #elif defined(__sparc)
- dlclose(handle);
- #elif defined(__OS2__)
-@@ -163,6 +170,8 @@
- {
- #if defined(__linux)
- DynLoader::fptr rfptr = (DynLoader::fptr) dlsym(handle, name); //lint !e611 //: Suspicious cast
-+#elif defined(__FreeBSD__)
-+ DynLoader::fptr rfptr = (DynLoader::fptr) dlsym(handle, name); //lint !e611 //: Suspicious cast
- #elif defined(__sparc)
- DynLoader::fptr rfptr = (DynLoader::fptr) dlsym(handle, name); //lint !e611 //: Suspicious cast
- #elif defined(__OS2__)
-@@ -245,7 +254,7 @@
- // globalRp->explainformats(errstream);
- }
-
--#if defined(__linux) || defined(__sparc) || defined(__OS2__)
-+#if defined(__linux) || defined(__sparc) || defined(__FreeBSD__) || defined(__OS2__)
- // for directory search
- #include <dirent.h>
-