Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2002 12:41:00 -0800 (PST)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/35791: Update port: graphics/pstoedit to 3.31
Message-ID:  <200203112041.g2BKf0S98285@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         35791
>Category:       ports
>Synopsis:       Update port: graphics/pstoedit to 3.31
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 11 12:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.4-RELEASE i386
>Organization:
>Environment:
>Description:
- Update to version 3.31

New file:
files/patch-drvswf.cpp

Remove file:
files/patch-dynload.cpp

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/graphics/pstoedit/Makefile graphics/pstoedit/Makefile
--- /usr/ports/graphics/pstoedit/Makefile	Tue Oct  9 19:01:29 2001
+++ graphics/pstoedit/Makefile	Sat Mar  9 06:31:48 2002
@@ -6,28 +6,37 @@
 #
 
 PORTNAME=	pstoedit
-PORTVERSION=	3.30
+PORTVERSION=	3.31
 CATEGORIES=	graphics print
 MASTER_SITES=	http://home.t-online.de/home/helga.glunz/wglunz/pstoedit/
 DISTNAME=	${PORTNAME}_${PORTVERSION:S/./_/}
 
 MAINTAINER=	ports@FreeBSD.org
 
-RUN_DEPENDS=	gs:${PORTSDIR}/print/ghostscript-gnu
-LIB_DEPENDS=	plot.4:${PORTSDIR}/graphics/plotutils \
+BUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/graphics/ming:extract
+LIB_DEPENDS=	ming.3:${PORTSDIR}/graphics/ming \
+		plot.4:${PORTSDIR}/graphics/plotutils \
 		plotter.4:${PORTSDIR}/graphics/plotutils
+RUN_DEPENDS=	gs:${PORTSDIR}/print/ghostscript-gnu
 
 WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}/src
 
-USE_ZIP=		yes
+USE_ZIP=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_SCRIPT=	../config/configure
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
-		LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
-CONFIGURE_ARGS=	--libdir=${DATADIR}
+CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 ALL_TARGET=	default
 
 MAN1=	pstoedit.1
+
+CPPFLAGS=	-I${LOCALBASE}/include/ming -I${LOCALBASE}/include \
+		-I${X11BASE}/include
+LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib
+
+post-extract:
+	@${LN} -sf `cd ${PORTSDIR}/graphics/ming && ${MAKE} -V WRKSRC`/../util \
+		${WRKSRC}/util
 
 post-install:
 .if !defined(NOPORTDOCS)
diff -urN /usr/ports/graphics/pstoedit/distinfo graphics/pstoedit/distinfo
--- /usr/ports/graphics/pstoedit/distinfo	Tue Oct  9 19:01:29 2001
+++ graphics/pstoedit/distinfo	Tue Jan 29 05:32:23 2002
@@ -1 +1 @@
-MD5 (pstoedit_3_30.zip) = cbdbc85209fbf5b4abf9c6bf2a03ae9c
+MD5 (pstoedit_3_31.zip) = d1d44bdb21ffafdd767191e8789787a2
diff -urN /usr/ports/graphics/pstoedit/files/patch-Makefile.in graphics/pstoedit/files/patch-Makefile.in
--- /usr/ports/graphics/pstoedit/files/patch-Makefile.in	Sun Oct  7 00:43:19 2001
+++ graphics/pstoedit/files/patch-Makefile.in	Sat Mar  9 03:58:36 2002
@@ -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 -urN /usr/ports/graphics/pstoedit/files/patch-drvswf.cpp graphics/pstoedit/files/patch-drvswf.cpp
--- /usr/ports/graphics/pstoedit/files/patch-drvswf.cpp	Thu Jan  1 09:00:00 1970
+++ graphics/pstoedit/files/patch-drvswf.cpp	Sat Mar  9 05:59:49 2002
@@ -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 -urN /usr/ports/graphics/pstoedit/files/patch-dynload.cpp graphics/pstoedit/files/patch-dynload.cpp
--- /usr/ports/graphics/pstoedit/files/patch-dynload.cpp	Sun Oct  7 00:43:19 2001
+++ graphics/pstoedit/files/patch-dynload.cpp	Thu Jan  1 09:00:00 1970
@@ -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>
- 
diff -urN /usr/ports/graphics/pstoedit/pkg-plist graphics/pstoedit/pkg-plist
--- /usr/ports/graphics/pstoedit/pkg-plist	Tue Oct  9 19:01:33 2001
+++ graphics/pstoedit/pkg-plist	Sat Mar  9 04:00:23 2002
@@ -4,6 +4,7 @@
 %%PORTDOCS%%share/doc/pstoedit/pstoedit.htm
 share/pstoedit/latex2e.fmp
 share/pstoedit/mpost.fmp
+share/pstoedit/svg.fmp
 share/pstoedit/swffonts/default.fdb
 @dirrm share/pstoedit/swffonts
 @dirrm share/pstoedit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203112041.g2BKf0S98285>