1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-06 11:41:52 +00:00
Koop Mast bb89f80c35 Update ImageMagick to 6.9.0.4.
- Normalize the ImageMagick library name so it stays the same regardless of
  what the 16-bit and HDRI option are set to [1]. Teach cmake to look for
  the new name. Bump ports that link to the libraries due to this.
- As a result do away with the "HALFSUPPORTED" option block, and list
  16-bit and HDRI with the other options.
- ImageMagick ships a basic SVG plugin when not using librsvg2 for SVG
  support. This basic SVG plugin needs libxml2 to work [2]. Make libxml2
  a mandatory dependency (instead of only when the SVG option was selected).
- Don't touch .keep files in the modules directory, there files there so
  it useless.

PR:		194949 [1]
PR:		195227 [2]
Requested by:	many [1]
Submitted by:	software-freebsd@interfasys.ch [2]
2015-01-18 21:12:42 +00:00

44 lines
1.1 KiB
Makefile

# Created by: samm
# $FreeBSD$
PORTNAME= cuneiform
PORTVERSION= 1.1.0
PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= http://launchpadlibrarian.net/69906918/
DISTNAME= ${PORTNAME}-linux-${PORTVERSION}
MAINTAINER= samm@os2.kiev.ua
COMMENT= OCR system developed and open sourced by Cognitive technologies
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/cuneiform_src/Kern/license.txt
ONLY_FOR_ARCHS= i386 amd64
USES= cmake:outsource tar:bzip2
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
CFLAGS+= -I${LOCALBASE}/include
OPTIONS_DEFINE= IMAGEMAGICK
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIMAGEMAGICK}
LIB_DEPENDS+= libMagickWand-6.so:${PORTSDIR}/graphics/ImageMagick
.endif
post-patch:
${MV} ${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/strings.h \
${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/cf_strings.h
@${REINPLACE_CMD} -e 's:\[(uchar):\[(uchar)L:' \
${WRKSRC}/cuneiform_src/Kern/leo/src/leo_dll.c
.if ! ${PORT_OPTIONS:MIMAGEMAGICK}
@${REINPLACE_CMD} -e '/pkg_check_modules.*ImageMagick/ d' \
${WRKSRC}/cuneiform_src/Kern/CMakeLists.txt
.endif
.include <bsd.port.mk>