Modified: trunk/dports/textproc/odt2txt/Portfile (148327 => 148328)
--- trunk/dports/textproc/odt2txt/Portfile 2016-05-04 14:08:21 UTC (rev 148327)
+++ trunk/dports/textproc/odt2txt/Portfile 2016-05-04 14:10:17 UTC (rev 148328)
@@ -2,33 +2,31 @@
# $Id$
PortSystem 1.0
+PortGroup github 1.0
-name odt2txt
-version 0.4
+github.setup dstosberg odt2txt 0.5 v
categories textproc
platforms darwin
-maintainers ryandesign
-homepage http://stosberg.net/odt2txt/
-master_sites ${homepage}
+maintainers ryandesign openmaintainer
+license GPL-2
description converts OpenOffice.org ODF text documents (.odt \
files) to plain text files (.txt files)
long_description ${name} ${description}
-checksums md5 6fe3bd261ce2dde2810244bbe969bbc5 \
- sha1 331eef1c64cec809a5c7b7cfb972279cc4f9c914 \
- rmd160 bb6ef1a58a6b18f40855be4124e32b1d514e8bca
+checksums rmd160 3d6fe00959df15c696cfe0cda429c42255af0b54 \
+ sha256 d3508b8819fb682f6a1a59e4d358858f0219a36ee5cf87bdb649448d6d318a24
depends_lib port:libiconv \
port:zlib
+patchfiles patch-Makefile.diff
+
use_configure no
variant universal {}
-configure.ldflags-append -liconv
-
build.args CC=${configure.cc} \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
CPPFLAGS="${configure.cppflags}" \
Added: trunk/dports/textproc/odt2txt/files/patch-Makefile.diff (0 => 148328)
--- trunk/dports/textproc/odt2txt/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/textproc/odt2txt/files/patch-Makefile.diff 2016-05-04 14:10:17 UTC (rev 148328)
@@ -0,0 +1,23 @@
+--- Makefile.orig 2014-11-18 11:10:08.000000000 -0600
++++ Makefile 2016-05-04 06:44:11.000000000 -0500
+@@ -37,18 +37,14 @@
+ MAN1DIR = $(MANDIR)/man1
+
+ ifeq ($(UNAME_S),FreeBSD)
+- CFLAGS += -DICONV_CHAR="const char" -I/usr/local/include
+- LDFLAGS += -L/usr/local/lib
++ CFLAGS += -DICONV_CHAR="const char"
+ LIBS += -liconv
+ endif
+ ifeq ($(UNAME_S),OpenBSD)
+- CFLAGS += -DICONV_CHAR="const char" -I/usr/local/include
+- LDFLAGS += -L/usr/local/lib
++ CFLAGS += -DICONV_CHAR="const char"
+ LIBS += -liconv
+ endif
+ ifeq ($(UNAME_S),Darwin)
+- CFLAGS += -I/opt/local/include
+- LDFLAGS += -L/opt/local/lib
+ LIBS += -liconv
+ endif
+ ifeq ($(UNAME_S),NetBSD)