aboutsummaryrefslogtreecommitdiff
path: root/graphics/cuneiform/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2008-08-23 12:45:33 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2008-08-23 12:45:33 +0000
commit8f6977c49ac9b75c312dc64e460e59d361dc3226 (patch)
treeff7765a5c7c901da36ba04ade8312e7b984faad1 /graphics/cuneiform/Makefile
parent90f36446f2db28fe48c3398a5680af750919002e (diff)
downloadports-8f6977c49ac9b75c312dc64e460e59d361dc3226.tar.gz
ports-8f6977c49ac9b75c312dc64e460e59d361dc3226.zip
Notes
Diffstat (limited to 'graphics/cuneiform/Makefile')
-rw-r--r--graphics/cuneiform/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/graphics/cuneiform/Makefile b/graphics/cuneiform/Makefile
new file mode 100644
index 000000000000..2c378fa20650
--- /dev/null
+++ b/graphics/cuneiform/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: cuneiform
+# Date created: 2008/08/23
+# Whom: samm
+#
+# $FreeBSD$
+#
+
+PORTNAME= cuneiform
+PORTVERSION= 0.3.1
+CATEGORIES= graphics
+MASTER_SITES= https://launchpad.net/cuneiform-linux/${PORTVERSION:R}/${PORTVERSION:R}/+download/
+
+MAINTAINER= samm@os2.kiev.ua
+COMMENT= OCR system developed and open sourced by Cognitive technologies
+
+LIB_DEPENDS= dlmalloc.2:${PORTSDIR}/devel/libdlmalloc
+
+USE_BZIP2= yes
+USE_CMAKE= yes
+CMAKE_ARGS= -DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib -ldlmalloc"
+USE_LDCONFIG= yes
+
+PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
+WRKSRC= ${WRKDIR}/${DISTNAME}/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 defined(WITH_IMAGEMAGICK)
+LIB_DEPENDS+= MagickWand.1:${PORTSDIR}/graphics/ImageMagick
+.endif
+
+post-extract:
+ ${MKDIR} ${WRKSRC}
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|lib64|lib|' ${WRKSRC}/../CMakeLists.txt
+.if !defined(WITH_IMAGEMAGICK)
+ @${REINPLACE_CMD} -e '/pkg_check_modules.*ImageMagick/ d' \
+ ${WRKSRC}/../cuneiform_src/Kern/CMakeLists.txt
+.endif
+
+.include <bsd.port.post.mk>