View | Details | Raw Unified | Return to bug 181611
Collapse All | Expand All

(-)Makefile (-5 / +7 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	cuneiform
4
PORTNAME=	cuneiform
5
PORTVERSION=	1.1.0
5
PORTVERSION=	1.1.0
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
MASTER_SITES=	http://launchpadlibrarian.net/69906918/
8
MASTER_SITES=	http://launchpadlibrarian.net/69906918/
9
DISTNAME=	${PORTNAME}-linux-${PORTVERSION}
9
DISTNAME=	${PORTNAME}-linux-${PORTVERSION}
Lines 11-16 Link Here
11
MAINTAINER=	samm@os2.kiev.ua
11
MAINTAINER=	samm@os2.kiev.ua
12
COMMENT=	OCR system developed and open sourced by Cognitive technologies
12
COMMENT=	OCR system developed and open sourced by Cognitive technologies
13
13
14
LICENSE=	BSD
15
LICENSE_FILE=	${WRKSRC}/cuneiform_src/Kern/license.txt
16
14
ONLY_FOR_ARCHS=	i386 amd64
17
ONLY_FOR_ARCHS=	i386 amd64
15
18
16
USE_BZIP2=	yes
19
USE_BZIP2=	yes
Lines 25-39 Link Here
25
.include <bsd.port.options.mk>
28
.include <bsd.port.options.mk>
26
29
27
.if ${PORT_OPTIONS:MIMAGEMAGICK}
30
.if ${PORT_OPTIONS:MIMAGEMAGICK}
28
LIB_DEPENDS+=	MagickWand:${PORTSDIR}/graphics/ImageMagick
31
LIB_DEPENDS+=	libMagickWand.so:${PORTSDIR}/graphics/ImageMagick
29
.endif
32
.endif
30
33
31
post-extract:
32
	${MKDIR} ${WRKSRC}
33
34
post-patch:
34
post-patch:
35
	${MV} ${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/strings.h \
35
	${MV} ${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/strings.h \
36
		${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/cf_strings.h
36
		${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/cf_strings.h
37
	@${REINPLACE_CMD} -e 's:\[(uchar):\[(uchar)L:' \
38
		${WRKSRC}/cuneiform_src/Kern/leo/src/leo_dll.c
37
.if ! ${PORT_OPTIONS:MIMAGEMAGICK}
39
.if ! ${PORT_OPTIONS:MIMAGEMAGICK}
38
	@${REINPLACE_CMD} -e '/pkg_check_modules.*ImageMagick/ d' \
40
	@${REINPLACE_CMD} -e '/pkg_check_modules.*ImageMagick/ d' \
39
		${WRKSRC}/cuneiform_src/Kern/CMakeLists.txt
41
		${WRKSRC}/cuneiform_src/Kern/CMakeLists.txt

Return to bug 181611