blob: 4aaeed75b1cdd28163a90504f454180e1dc6b752 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# Created by: Ron van Daal
# $FreeBSD$
PORTNAME= GraphicsMagick
PORTVERSION= 1.3.19
PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= SF \
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/
MASTER_SITE_SUBDIR= ${PORTNAME:tl}/${PORTNAME:tl}/${PORTVERSION}
PKGNAMESUFFIX= 13
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast image processing tools based on ImageMagick
LIB_DEPENDS= libjbig.so:${PORTSDIR}/graphics/jbigkit \
libjasper.so:${PORTSDIR}/graphics/jasper \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
liblcms2.so:${PORTSDIR}/graphics/lcms2 \
libpng15.so:${PORTSDIR}/graphics/png \
libtiff.so:${PORTSDIR}/graphics/tiff \
libfreetype.so:${PORTSDIR}/print/freetype2
CONFLICTS= GraphicsMagick-1.[12].* GraphicsMagick12-*
PORTSCOUT= limit:^1\.3\.
USES= iconv tar:bzip2
USE_GNOME= libxml2
USE_GHOSTSCRIPT=yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS= --without-perl --enable-shared --enable-static \
--with-quantum-depth="${QD}" \
--with-windows-font-dir="${WINDOWS_FONT_DIR}"
USE_LDCONFIG= yes
PLIST_SUB= Q="${QD}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS FPX OPENMP Q8BIT SSE TESTS WEBP X11
OPTIONS_SINGLE= X11
OPTIONS_SINGLE_X11= DPS
OPTIONS_DEFAULT= DPS OPENMP WEBP X11
DPS_DESC= Enable Display Ghostscript support
DPS_LIB_DEPENDS= libdps.so:${PORTSDIR}/x11/dgs
DPS_USE= XORG=xt
DPS_CONFIGURE_WITH= dps
FPX_LIB_DEPENDS+= libfpx.so.[2-9]:${PORTSDIR}/graphics/libfpx
FPX_CONFIGURE_WITH= fpx
OPENMP_USES= compiler:openmp
OPENMP_CONFIGURE_ON= --with-threads --enable-openmp --disable-openmp-slow
OPENMP_CONFIGURE_OFF= --without-threads --disable-openmp
Q8BIT_DESC= Use 8-bit pixels (speed) instead of 16 (quality)
TESTS_DESC= Run bundled self-tests after build
TESTS_BUILD_DEPENDS= webfonts>0:${PORTSDIR}/x11-fonts/webfonts
TESTS_RUN_DEPENDS= webfonts>0:${PORTSDIR}/x11-fonts/webfonts
WEBP_LIB_DEPENDS= libwebp.so:${PORTSDIR}/graphics/webp
WEBP_CONFIGURE_WITH= webp
X11_LIB_DEPENDS= libwmflite.so:${PORTSDIR}/graphics/${LIBWMF_PORT}
X11_USE= XORG=xext
X11_CONFIGURE_WITH= x
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MQ8BIT}
QD= 8
.else
QD= 16
.endif
.if ${PORT_OPTIONS:MSSE}
.if ${MACHINE_CPU:Msse}
CFLAGS+= -msse
.endif
.if ${MACHINE_CPU:Msse2}
CFLAGS+= -msse2
.endif
.if ${MACHINE_CPU:Msse3}
CFLAGS+= -msse3
.endif
.endif
.if ${PORT_OPTIONS:MX11}
LIBWMF_PORT= libwmf
.else
LIBWMF_PORT= libwmf-nox11
.endif
.include <bsd.port.pre.mk>
.if !defined(WINDOWS_FONT_DIR)
# Use fonts installed by x11-fonts/webfonts by default
WINDOWS_FONT_DIR=${LOCALBASE}/lib/X11/fonts/webfonts
.endif
.if ${PORT_OPTIONS:MTESTS}
post-build:: regression-test
.else
post-build::
#
# You are strongly advised to run ``make test'' now
# and report any failures to ${MAINTAINER}.
#
.endif
post-install:
.for i in coders filters
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/GraphicsMagick/modules-Q${QD}/${i}
.endfor
regression-test: do-build
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} check)
.include <bsd.port.post.mk>
# The OPENMP option may select gcc as compiler but on architectures
# that have switched to libc++ clang should be used for C++ code.
CXX= c++
|