diff --git a/textproc/pdftohtml/Makefile b/textproc/pdftohtml/Makefile index f4b7aeedf1e4..0d572376870a 100644 --- a/textproc/pdftohtml/Makefile +++ b/textproc/pdftohtml/Makefile @@ -7,10 +7,9 @@ # PORTNAME= pdftohtml -PORTVERSION= 0.33a +PORTVERSION= 0.34 CATEGORIES= textproc -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ - http://ports.tolkien.dk/pdftohtml/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/} @@ -19,6 +18,13 @@ MAINTAINER= erwin@lansing.dk WRKSRC= ${WRKDIR}/${PORTNAME} USE_GMAKE= yes +pre-patch: +.for file in goo/Makefile xpdf/Makefile + @${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.orig + @${SED} -e "s|-O2||; s|-g||" ${WRKSRC}/${file}.orig \ + > ${WRKSRC}/${file} +.endfor + do-install: @${INSTALL_PROGRAM} ${WRKSRC}/pdftohtml ${PREFIX}/bin diff --git a/textproc/pdftohtml/distinfo b/textproc/pdftohtml/distinfo index 5d77ed9e8763..af5f705869d6 100644 --- a/textproc/pdftohtml/distinfo +++ b/textproc/pdftohtml/distinfo @@ -1 +1 @@ -MD5 (pdftohtml_0_33a.tar.gz) = 9910fb38210be5ea3ec2acc485244fdc +MD5 (pdftohtml_0_34.tar.gz) = f124178552a2e6a5b37b89643e679718 diff --git a/textproc/pdftohtml/files/patch-goo::Makefile b/textproc/pdftohtml/files/patch-goo::Makefile deleted file mode 100644 index a7ae08b348d8..000000000000 --- a/textproc/pdftohtml/files/patch-goo::Makefile +++ /dev/null @@ -1,18 +0,0 @@ ---- goo/Makefile.orig Sun Apr 21 18:26:03 2002 -+++ goo/Makefile Tue Apr 23 23:14:45 2002 -@@ -11,11 +11,11 @@ - - srcdir = . - --CFLAGS = -g -O2 -DHAVE_CONFIG_H -I.. -I$(srcdir) --CXXFLAGS = -g -O2 -DHAVE_CONFIG_H -I.. -I$(srcdir) -+CFLAGS += -DHAVE_CONFIG_H -I.. -I$(srcdir) -+CXXFLAGS += -DHAVE_CONFIG_H -I.. -I$(srcdir) - --CC = gcc --CXX = c++ -+CC ?= cc -+CXX ?= c++ - AR = ar rc - RANLIB = ranlib - diff --git a/textproc/pdftohtml/files/patch-src::Makefile b/textproc/pdftohtml/files/patch-src::Makefile deleted file mode 100644 index 2e810053b9b7..000000000000 --- a/textproc/pdftohtml/files/patch-src::Makefile +++ /dev/null @@ -1,18 +0,0 @@ ---- src/Makefile.orig Sun Apr 21 18:25:42 2002 -+++ src/Makefile Tue Apr 23 23:14:08 2002 -@@ -10,13 +10,13 @@ - GOOLIBDIR = ../goo - - --CXXFLAGS = -g -DHAVE_DIRENT_H=1 -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I$(GOOSRCDIR) -I$(SRCDIR) -I$(XPDFSRCDIR) -+CXXFLAGS += -DHAVE_DIRENT_H=1 -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I$(GOOSRCDIR) -I$(SRCDIR) -I$(XPDFSRCDIR) - - LDFLAGS = - - OTHERLIBS = - --CXX = c++ -+CC ?= cc - - LIBPREFIX = lib - EXE = diff --git a/textproc/pdftohtml/files/patch-xpdf::Makefile b/textproc/pdftohtml/files/patch-xpdf::Makefile deleted file mode 100644 index 96ce9bd5e023..000000000000 --- a/textproc/pdftohtml/files/patch-xpdf::Makefile +++ /dev/null @@ -1,22 +0,0 @@ ---- xpdf/Makefile.orig Sun Apr 21 18:25:54 2002 -+++ xpdf/Makefile Tue Apr 23 23:02:09 2002 -@@ -9,16 +9,15 @@ - - SHELL = /bin/sh - --prefix = /usr/local - srcdir = . - - GOOSRCDIR = $(srcdir)/../goo - GOOLIBDIR = ../goo - --CXXFLAGS = -g -O2 -DHAVE_CONFIG_H -I.. -I$(GOOSRCDIR) -I$(srcdir) -+CXXFLAGS += -DHAVE_CONFIG_H -I.. -I$(GOOSRCDIR) -I$(srcdir) - --CC = gcc --CXX = c++ -+CC ?= cc -+CXX ?= c++ - AR = ar rc - RANLIB = ranlib -