1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Fix build on 7.x

Remove md5 sum
This commit is contained in:
Max Brazhnikov 2010-10-30 13:13:50 +00:00
parent 38672b42b8
commit d07c1c0f23
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=263786
3 changed files with 36 additions and 1 deletions

View File

@ -84,6 +84,10 @@ OPTIONS= QT "Graphical User Interface (Qt4)" on \
.include <bsd.port.options.mk>
.if ${OSVERSION} < 800067
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-strnlen
.endif
.if ${OSVERSION} < 800069
LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb
USB_INCLUDE= ${LOCALBASE}/include

View File

@ -1,3 +1,2 @@
MD5 (hplip-3.10.9.tar.gz) = 609718830a26874fc0ea84a47b8132f3
SHA256 (hplip-3.10.9.tar.gz) = 1d34630084eccfcc80c08065becdf9313fd8f5a09a4cf523dbd9d3ec724206b9
SIZE (hplip-3.10.9.tar.gz) = 21818298

View File

@ -0,0 +1,32 @@
--- ./prnt/hpijs/context2.cpp.orig 2010-09-26 21:03:26.000000000 +0400
+++ ./prnt/hpijs/context2.cpp 2010-10-30 02:35:47.889256370 +0400
@@ -38,6 +38,18 @@
#include "colormatch.h"
//#include "bug.h"
+size_t
+strnlen(const char *s, size_t maxlen)
+{
+ size_t len;
+
+ for (len = 0; len < maxlen; len++, s++) {
+ if (!*s)
+ break;
+ }
+ return (len);
+};
+
APDK_BEGIN_NAMESPACE
extern ColorMatcher* Create_ColorMatcher
(
--- ./prnt/hpijs/ljzjscolor.cpp.orig 2010-09-26 21:10:31.000000000 +0400
+++ ./prnt/hpijs/ljzjscolor.cpp 2010-10-30 02:35:49.443533239 +0400
@@ -38,6 +38,8 @@
#include "ljzjs.h"
#include "ljzjscolor.h"
+extern size_t strnlen(const char *s, size_t maxlen);
+
APDK_BEGIN_NAMESPACE
extern uint32_t ulMapGRAY_K_6x6x1[9 * 9 * 9];