2013-05-06 10:31:29 +02:00
|
|
|
# Created by: samm
|
2008-08-23 14:45:33 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cuneiform
|
2011-06-18 10:49:29 +02:00
|
|
|
PORTVERSION= 1.1.0
|
2015-01-18 22:12:42 +01:00
|
|
|
PORTREVISION= 4
|
2008-08-23 14:45:33 +02:00
|
|
|
CATEGORIES= graphics
|
2011-06-18 10:49:29 +02:00
|
|
|
MASTER_SITES= http://launchpadlibrarian.net/69906918/
|
2009-09-02 18:32:47 +02:00
|
|
|
DISTNAME= ${PORTNAME}-linux-${PORTVERSION}
|
2008-08-23 14:45:33 +02:00
|
|
|
|
|
|
|
MAINTAINER= samm@os2.kiev.ua
|
|
|
|
COMMENT= OCR system developed and open sourced by Cognitive technologies
|
|
|
|
|
2014-12-06 23:13:42 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2013-08-28 14:47:11 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/cuneiform_src/Kern/license.txt
|
|
|
|
|
2008-11-09 23:53:27 +01:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
2014-07-29 20:41:15 +02:00
|
|
|
USES= cmake:outsource tar:bzip2
|
2008-08-23 14:45:33 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
OPTIONS_DEFINE= IMAGEMAGICK
|
2008-08-23 14:45:33 +02:00
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2008-08-23 14:45:33 +02:00
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MIMAGEMAGICK}
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS+= libMagickWand-6.so:graphics/ImageMagick
|
2008-08-23 14:45:33 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2010-09-07 07:08:03 +02:00
|
|
|
${MV} ${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/strings.h \
|
|
|
|
${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/cf_strings.h
|
2013-08-28 14:47:11 +02:00
|
|
|
@${REINPLACE_CMD} -e 's:\[(uchar):\[(uchar)L:' \
|
|
|
|
${WRKSRC}/cuneiform_src/Kern/leo/src/leo_dll.c
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MIMAGEMAGICK}
|
2008-08-23 14:45:33 +02:00
|
|
|
@${REINPLACE_CMD} -e '/pkg_check_modules.*ImageMagick/ d' \
|
2010-09-07 07:08:03 +02:00
|
|
|
${WRKSRC}/cuneiform_src/Kern/CMakeLists.txt
|
2008-08-23 14:45:33 +02:00
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.include <bsd.port.mk>
|