From f1feed3a98288e49b2bc8b53a399dffb69b0fd8d Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Mon, 29 Dec 2003 14:25:02 +0000 Subject: [PATCH] - Fix build on 5.x PR: ports/60682 Submitted by: Samy Al Bahra --- devel/libchipcard/Makefile | 8 +------- devel/libchipcard/files/patch-hbcicard.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 devel/libchipcard/files/patch-hbcicard.cpp diff --git a/devel/libchipcard/Makefile b/devel/libchipcard/Makefile index 14d165a5f7e1..bee887d1adf9 100644 --- a/devel/libchipcard/Makefile +++ b/devel/libchipcard/Makefile @@ -29,14 +29,8 @@ MAN1= ctfstool.1 chipcardd.1 geldkarte.1 hbcicard.1 \ MAN5= libchipcard.conf.5 chipcardc.conf.5 chipcardd.conf.5 -.include - -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile on FreeBSD ${OSVERSION}" -.endif - post-install: @${INSTALL_SCRIPT} ${WRKSRC}/freebsd/chipcardd.sh ${PREFIX}/etc/rc.d @${SED} -e 's,%%PREFIX%%,${PREFIX},' ${PKGMESSAGE} -.include +.include diff --git a/devel/libchipcard/files/patch-hbcicard.cpp b/devel/libchipcard/files/patch-hbcicard.cpp new file mode 100644 index 000000000000..954c79e93fdc --- /dev/null +++ b/devel/libchipcard/files/patch-hbcicard.cpp @@ -0,0 +1,13 @@ +--- src/libchipcard/cards/hbcicard.cpp.orig Mon Dec 29 10:58:25 2003 ++++ src/libchipcard/cards/hbcicard.cpp Mon Dec 29 10:59:41 2003 +@@ -401,8 +401,8 @@ + string id; + string fcp; + CTError err; +- unsigned char id1[9]={{0xd2},{0x76},{0x00},{0x00},{0x25},{0x48},{0x42},{0x01},{0x00}}; +- unsigned char id2[9]={{0xd2},{0x76},{0x00},{0x00},{0x25},{0x48},{0x42},{0x02},{0x00}}; ++ unsigned char id1[9]={0xd2,0x76,0x00,0x00,0x25,0x48,0x42,0x01,0x00}; ++ unsigned char id2[9]={0xd2,0x76,0x00,0x00,0x25,0x48,0x42,0x02,0x00}; + + #if DEBUGMODE>15 + fprintf(stderr,"LIBCHIPCARD: Checking type.\n");