blob: 32f045cc0ee29dd789d1c9608a23e48357928e02 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# New ports collection makefile for: cuneiform
# Date created: 2008/08/23
# Whom: samm
#
# $FreeBSD$
#
PORTNAME= cuneiform
PORTVERSION= 0.8.0
CATEGORIES= graphics
MASTER_SITES= https://launchpad.net/cuneiform-linux/${PORTVERSION:R}/${PORTVERSION:R}/+download/
DISTNAME= ${PORTNAME}-linux-${PORTVERSION}
MAINTAINER= samm@os2.kiev.ua
COMMENT= OCR system developed and open sourced by Cognitive technologies
ONLY_FOR_ARCHS= i386 amd64
USE_BZIP2= yes
USE_CMAKE= yes
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-linux-${PORTVERSION}/build
CMAKE_SOURCE_PATH=..
CPPFLAGS+= -I${LOCALBASE}/include
CFLAGS+= -I${LOCALBASE}/include
OPTIONS= IMAGEMAGICK "Enable support of different graphic formats" off
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700000
LIB_DEPENDS= dlmalloc.2:${PORTSDIR}/devel/libdlmalloc
CMAKE_ARGS= -DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib -ldlmalloc"
.endif
.if defined(WITH_IMAGEMAGICK)
LIB_DEPENDS+= MagickWand.3:${PORTSDIR}/graphics/ImageMagick
.endif
post-extract:
${MKDIR} ${WRKSRC}
post-patch:
.if !defined(WITH_IMAGEMAGICK)
@${REINPLACE_CMD} -e '/pkg_check_modules.*ImageMagick/ d' \
${WRKSRC}/../cuneiform_src/Kern/CMakeLists.txt
.endif
.if ${OSVERSION} < 700000
@${REINPLACE_CMD} -e 's|malloc_np.h|dlmalloc/malloc.h|' \
${WRKSRC}/../cuneiform_src/Kern/cfcompat/cfcompat.c \
${WRKSRC}/../cuneiform_src/Kern/rbal/src/statsearchbl.cpp
.endif
.include <bsd.port.post.mk>
|