From a3d3c7adf5add263e1622eda4e1c50ece69d1080 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 7 Jul 2014 22:51:28 +0000 Subject: [PATCH] - Switch to USES=libtool, drop .la files - Strip libraries - Fix build on 10.x - Sort plist --- finance/openhbci/Makefile | 29 ++++++++++++------- .../files/patch-src__openhbci__core__date.cpp | 11 +++++++ ...atch-src__openhbci__core__statusreport.cpp | 10 +++++++ .../patch-src__openhbci__core__updjob.cpp | 10 +++++++ .../patch-src__openhbci__simpleconfig.cpp | 10 +++++++ finance/openhbci/pkg-plist | 18 ++++++------ 6 files changed, 69 insertions(+), 19 deletions(-) create mode 100644 finance/openhbci/files/patch-src__openhbci__core__date.cpp create mode 100644 finance/openhbci/files/patch-src__openhbci__core__statusreport.cpp create mode 100644 finance/openhbci/files/patch-src__openhbci__core__updjob.cpp create mode 100644 finance/openhbci/files/patch-src__openhbci__simpleconfig.cpp diff --git a/finance/openhbci/Makefile b/finance/openhbci/Makefile index 1d2a1a82f3a9..1df1847bf566 100644 --- a/finance/openhbci/Makefile +++ b/finance/openhbci/Makefile @@ -1,18 +1,27 @@ # Created by: Heiner Strauss # $FreeBSD$ -PORTNAME= openhbci -PORTVERSION= 0.9.17.2 -CATEGORIES= finance -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.9.17 -DISTNAME= openhbci-0.9.17-2 +PORTNAME= openhbci +PORTVERSION= 0.9.17.2 +PORTREVISION= 1 +CATEGORIES= finance +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.9.17 +DISTNAME= openhbci-0.9.17-2 -MAINTAINER= ports@FreeBSD.org -COMMENT= HBCI is a bank-independent homebanking standard +MAINTAINER= ports@FreeBSD.org +COMMENT= HBCI is a bank-independent homebanking standard -USE_AUTOTOOLS= libtool -WRKSRC= ${WRKDIR}/${PORTNAME}-0.9.17 -GNU_CONFIGURE= yes +USES= libtool +GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip USE_LDCONFIG= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-0.9.17 + +post-patch: + @${REINPLACE_CMD} -e 's|-lstdc++||' \ + ${WRKSRC}/configure \ + ${WRKSRC}/src/openhbci/Makefile.in \ + ${WRKSRC}/src/openhbci/core/Makefile.in + .include diff --git a/finance/openhbci/files/patch-src__openhbci__core__date.cpp b/finance/openhbci/files/patch-src__openhbci__core__date.cpp new file mode 100644 index 000000000000..0ed68130d883 --- /dev/null +++ b/finance/openhbci/files/patch-src__openhbci__core__date.cpp @@ -0,0 +1,11 @@ +--- src/openhbci/core/date.cpp.orig 2003-04-25 05:45:54.000000000 +0400 ++++ src/openhbci/core/date.cpp 2014-07-03 13:48:43.000000000 +0400 +@@ -43,6 +43,8 @@ + #include "date.h" + #include "hbcistring.h" + ++#include // for atoi() ++ + + namespace HBCI { + diff --git a/finance/openhbci/files/patch-src__openhbci__core__statusreport.cpp b/finance/openhbci/files/patch-src__openhbci__core__statusreport.cpp new file mode 100644 index 000000000000..687984acbf8f --- /dev/null +++ b/finance/openhbci/files/patch-src__openhbci__core__statusreport.cpp @@ -0,0 +1,10 @@ +--- src/openhbci/core/statusreport.cpp.orig 2003-05-21 16:01:41.000000000 +0400 ++++ src/openhbci/core/statusreport.cpp 2014-07-03 13:52:40.000000000 +0400 +@@ -29,6 +29,7 @@ + #include "statusreport.h" + #include "hbcistring.h" + #include ++#include // for atoi() + + namespace HBCI { + diff --git a/finance/openhbci/files/patch-src__openhbci__core__updjob.cpp b/finance/openhbci/files/patch-src__openhbci__core__updjob.cpp new file mode 100644 index 000000000000..8da09acdff32 --- /dev/null +++ b/finance/openhbci/files/patch-src__openhbci__core__updjob.cpp @@ -0,0 +1,10 @@ +--- src/openhbci/core/updjob.cpp.orig 2003-01-31 22:13:29.000000000 +0300 ++++ src/openhbci/core/updjob.cpp 2014-07-03 13:52:04.000000000 +0400 +@@ -43,6 +43,7 @@ + + #include "updjob.h" + #include "hbcistring.h" ++#include // for atoi() + + + namespace HBCI { diff --git a/finance/openhbci/files/patch-src__openhbci__simpleconfig.cpp b/finance/openhbci/files/patch-src__openhbci__simpleconfig.cpp new file mode 100644 index 000000000000..2b4abd016098 --- /dev/null +++ b/finance/openhbci/files/patch-src__openhbci__simpleconfig.cpp @@ -0,0 +1,10 @@ +--- src/openhbci/simpleconfig.cpp.orig 2003-07-02 22:22:24.000000000 +0400 ++++ src/openhbci/simpleconfig.cpp 2014-07-03 13:53:03.000000000 +0400 +@@ -37,6 +37,7 @@ + #include "simpleconfig.h" + + #include ++#include // for atoi() + #include "parser.h" + #include "filestream.h" + diff --git a/finance/openhbci/pkg-plist b/finance/openhbci/pkg-plist index f6b0c69e915c..331e9ddc155e 100644 --- a/finance/openhbci/pkg-plist +++ b/finance/openhbci/pkg-plist @@ -30,10 +30,10 @@ include/openhbci/inetaddress.h include/openhbci/init_plugins.h include/openhbci/interactor.h include/openhbci/interactorcb.h -include/openhbci/limit.h -include/openhbci/listwrappers.h include/openhbci/job.h include/openhbci/libloader.h +include/openhbci/limit.h +include/openhbci/listwrappers.h include/openhbci/loader.h include/openhbci/medium.h include/openhbci/mediumplugin.h @@ -42,10 +42,10 @@ include/openhbci/mediumpluginlist.h include/openhbci/mediumrdhbase.h include/openhbci/messagequeue.h include/openhbci/outbox.h -include/openhbci/outboxjob.h -include/openhbci/outboxjobs.h -include/openhbci/outboxjobkeys.h include/openhbci/outboxaccjobs.h +include/openhbci/outboxjob.h +include/openhbci/outboxjobkeys.h +include/openhbci/outboxjobs.h include/openhbci/outboxstojobs.h include/openhbci/parser.h include/openhbci/plugin.h @@ -67,13 +67,13 @@ include/openhbci/user.h include/openhbci/userparams.h include/openhbci/value.h lib/libopenhbci.a -lib/libopenhbci.la lib/libopenhbci.so lib/libopenhbci.so.14 -lib/openhbci/plugins/14/media/rdhfile.so.0 -lib/openhbci/plugins/14/media/rdhfile.so -lib/openhbci/plugins/14/media/rdhfile.la +lib/libopenhbci.so.14.0.2 lib/openhbci/plugins/14/media/rdhfile.a +lib/openhbci/plugins/14/media/rdhfile.so +lib/openhbci/plugins/14/media/rdhfile.so.0 +lib/openhbci/plugins/14/media/rdhfile.so.0.0.0 share/aclocal/openhbci.m4 @dirrm lib/openhbci/plugins/14/media @dirrm lib/openhbci/plugins/14