view src/mingw-epstool-1-fixes.patch @ 4449:1933a9113e65

of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235) * src/of-actuarial.mk, src/of-communications.mk, src/of-control.mk, src/of-data-smoothing.mk, src/of-database.mk, src/of-dataframe.mk, src/of-dicom.mk, src/of-financial.mk, src/of-fits.mk, src/of-fl-core.mk, src/of-fuzzy-logic-toolkit.mk, src/of-ga.mk, src/of-general.mk, src/of-generate_html.mk, src/of-geometry.mk, src/of-gsl.mk, src/of-image.mk, src/of-instrument-control.mk, src/of-interval.mk, src/of-io.mk, src/of-linear-algebra.mk, src/of-lssa.mk, src/of-ltfat.mk, src/of-mapping.mk, src/of-miscellaneous.mk, src/of-nan.mk, src/of-netcdf.mk, src/of-nurbs.mk, src/of-ocs.mk, src/of-octcdf.mk, src/of-odepkg.mk, src/of-optim.mk, src/of-quaternion.mk, src/of-queueing.mk, src/of-signal.mk, src/of-sockets.mk, src/of-sparsersb.mk, src/of-specfun.mk, src/of-splines.mk, src/of-statistics.mk, src/of-stk.mk, src/of-strings.mk, src/of-struct.mk, src/of-tisean.mk, src/of-tsa.mk, src/of-video.mk, src/of-windows.mk, src/of-zenity.mk, src/of-zeromq.mk: add $(PKG)_DEPS += $(OCTAVE_TARGET) if ENABLE_BINARY_PACKAGES = yes
author John D
date Mon, 14 Aug 2017 09:12:34 -0400
parents 86d65a780bab
children
line wrap: on
line source

diff -urN epstool-3.08.orig/makefile epstool-3.08/makefile
--- epstool-3.08.orig/makefile	2015-01-05 19:01:34.000000000 -0500
+++ epstool-3.08/makefile	2015-01-05 19:54:45.000000000 -0500
@@ -34,10 +34,12 @@
 
 LONGFILEDEF=
 LONGFILEMOD=cfile
+WGSVERMOD=wgsver
 
-include $(SRCDIR)/unixcom.mak
+#include $(SRCDIR)/unixcom.mak
+include $(SRCDIR)/mingwcom.mak
 
-EPSOBJPLAT=$(OD)xnodll$(OBJ) $(OD)$(LONGFILEMOD)$(OBJ)
+EPSOBJPLAT=$(OD)xnodll$(OBJ) $(OD)$(LONGFILEMOD)$(OBJ) $(OD)$(WGSVERMOD)$(OBJ)
 EPSLIB=$(LIBPNGLIBS)
 
 BEGIN=$(OD)lib.rsp
@@ -45,7 +47,7 @@
 
 include $(SRCDIR)/common.mak
 
-EPSTOOL_ROOT=/usr/local
+EPSTOOL_ROOT=/
 EPSTOOL_BASE=$(prefix)$(EPSTOOL_ROOT)
 EPSTOOL_DOCDIR=$(EPSTOOL_BASE)/share/doc/epstool-$(EPSTOOL_VERSION)
 EPSTOOL_MANDIR=$(EPSTOOL_BASE)/man
diff -urN epstool-3.08.orig/src/mingwcom.mak epstool-3.08/src/mingwcom.mak
--- epstool-3.08.orig/src/mingwcom.mak	1969-12-31 19:00:00.000000000 -0500
+++ epstool-3.08/src/mingwcom.mak	2015-01-05 20:00:18.000000000 -0500
@@ -0,0 +1,61 @@
+# Copyright (C) 2002-2005 Ghostgum Software Pty Ltd.  All rights reserved.
+#
+#  This software is provided AS-IS with no warranty, either express or
+#  implied.
+#
+#  This software is distributed under licence and may not be copied,
+#  modified or distributed except as expressly authorised under the terms
+#  of the licence contained in the file LICENCE in this distribution.
+#
+#  For more information about licensing, please refer to
+#  http://www.ghostgum.com.au/ or contact Ghostsgum Software Pty Ltd, 
+#  218 Gallaghers Rd, Glen Waverley VIC 3150, AUSTRALIA, 
+#  Fax +61 3 9886 6616.
+#
+
+# $Id: unixcom.mak,v 1.2 2005/01/11 11:40:19 ghostgum Exp $
+# Unix mingw makefile
+
+
+INSTALL=install -m 644
+INSTALL_EXE=install -m 755
+
+MAKE=make
+CDEFS=-DNONAG $(LONGFILEDEF)
+GSCDEBUG= -g
+GSCFLAGS= $(CDEFS) -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common -Wcast-qual -Wwrite-strings $(CDEBUG) $(GSCDEBUG) $(RPM_OPT_FLAGS) $(XINCLUDE) $(PFLAGS) $(LIBPNGCFLAGS) $(GTKCFLAGS) -I$(SRCWIN)
+CCAUX=$(TOOL_PREFIX)gcc
+CC=$(TOOL_PREFIX)gcc
+LFLAGS=$(PLINK) $(LIBPNGLIBS) $(GTKLIBS)
+CLINK=$(CC) $(LDFLAGS)
+LINK=$(CC) $(LDFLAGS)
+
+
+COMP=$(CC) -I$(SRCDIR) -I$(OBJDIR) $(CFLAGS) $(GSCFLAGS)
+
+
+NUL=
+DD=/$(NUL)
+SRC=$(SRCDIR)/$(NUL)
+SRCWIN=$(SRCWINDIR)/$(NUL)
+OD=$(OBJDIR)/$(NUL)
+BD=$(BINDIR)/$(NUL)
+OBJ=.o
+EXE=.exe
+CO=-c
+
+FE=-o $(NUL)
+FO=-o $(NUL)
+FEO=-o $(OD)
+FOO=-o $(OD)
+
+CP=cp -f
+RM=rm -f
+RMDIR=rm -rf
+
+default: $(BD)epstool$(EXE)
+
+$(OD)wgsver$(OBJ): $(SRCWIN)wgsver.c $(common_h) $(cdll_h)
+	$(COMP) $(FOO)wgsver$(OBJ) $(CO) $(SRCWIN)wgsver.c
+
+