Lines 2-9
Link Here
|
2 |
# $FreeBSD: head/graphics/GraphicsMagick13/Makefile 337729 2013-12-27 13:13:47Z thierry $ |
2 |
# $FreeBSD: head/graphics/GraphicsMagick13/Makefile 337729 2013-12-27 13:13:47Z thierry $ |
3 |
|
3 |
|
4 |
PORTNAME= GraphicsMagick |
4 |
PORTNAME= GraphicsMagick |
5 |
PORTVERSION= 1.3.18 |
5 |
PORTVERSION= 1.3.19 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
8 |
MASTER_SITES= SF \ |
7 |
MASTER_SITES= SF \ |
9 |
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/ |
8 |
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/ |
Lines 13-67
Link Here
|
13 |
MAINTAINER= ports@FreeBSD.org |
12 |
MAINTAINER= ports@FreeBSD.org |
14 |
COMMENT= Fast image processing tools based on ImageMagick |
13 |
COMMENT= Fast image processing tools based on ImageMagick |
15 |
|
14 |
|
16 |
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \ |
15 |
LIB_DEPENDS= libjbig.so:${PORTSDIR}/graphics/jbigkit \ |
17 |
libpng15.so:${PORTSDIR}/graphics/png \ |
|
|
18 |
libjbig.so:${PORTSDIR}/graphics/jbigkit \ |
19 |
libjasper.so:${PORTSDIR}/graphics/jasper \ |
16 |
libjasper.so:${PORTSDIR}/graphics/jasper \ |
20 |
libjpeg.so:${PORTSDIR}/graphics/jpeg \ |
17 |
libjpeg.so:${PORTSDIR}/graphics/jpeg \ |
21 |
liblcms.so:${PORTSDIR}/graphics/lcms \ |
18 |
liblcms2.so:${PORTSDIR}/graphics/lcms2 \ |
|
|
19 |
libpng15.so:${PORTSDIR}/graphics/png \ |
22 |
libtiff.so:${PORTSDIR}/graphics/tiff \ |
20 |
libtiff.so:${PORTSDIR}/graphics/tiff \ |
23 |
libxml2.so:${PORTSDIR}/textproc/libxml2 |
21 |
libfreetype.so:${PORTSDIR}/print/freetype2 |
24 |
|
22 |
|
25 |
CONFLICTS= GraphicsMagick-1.[12].* GraphicsMagick12-* |
23 |
CONFLICTS= GraphicsMagick-1.[12].* GraphicsMagick12-* |
26 |
|
24 |
|
27 |
OPTIONS_DEFINE= Q8BIT FPX OPENMP SSE TESTS X11 DOCS |
|
|
28 |
|
29 |
Q8BIT_DESC= Use 8-bit pixels (speed) instead of 16 (quality) |
30 |
DPS_DESC= Enable Display Ghostscript support |
31 |
TESTS_DESC= Run bundled self-tests after build |
32 |
|
33 |
OPTIONS_DEFAULT=FPX DPS OPENMP X11 TESTS DOCS |
34 |
OPTIONS_SINGLE= X11 |
35 |
OPTIONS_SINGLE_X11= DPS |
36 |
|
37 |
PORTSCOUT= limit:^1\.3\. |
25 |
PORTSCOUT= limit:^1\.3\. |
38 |
|
26 |
|
39 |
USES= iconv |
|
|
40 |
USE_AUTOTOOLS= libtool libltdl |
41 |
USE_BZIP2= yes |
27 |
USE_BZIP2= yes |
|
|
28 |
USES= iconv |
29 |
USE_GNOME= libxml2 |
42 |
USE_GHOSTSCRIPT=yes |
30 |
USE_GHOSTSCRIPT=yes |
43 |
GNU_CONFIGURE= yes |
31 |
GNU_CONFIGURE= yes |
44 |
|
32 |
CONFIGURE_ENV= PTHREAD_CFLAGS=" " PTHREAD_LIBS="-pthread" |
45 |
CONFIGURE_ARGS= --without-perl --enable-shared --enable-static \ |
33 |
CONFIGURE_ARGS= --without-perl --enable-shared --enable-static \ |
46 |
--with-ltdl-include=${LOCALBASE}/include \ |
34 |
--with-quantum-depth="${QD}" \ |
47 |
--with-ltdl-lib=${LOCALBASE}/lib |
35 |
--with-windows-font-dir="${WINDOWS_FONT_DIR}" |
48 |
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}" |
|
|
49 |
USE_LDCONFIG= yes |
36 |
USE_LDCONFIG= yes |
50 |
|
37 |
|
51 |
ALL_TARGET= -j`${SYSCTL} -n hw.ncpu` |
38 |
PLIST_SUB= Q="${QD}" |
52 |
|
39 |
|
53 |
CPPFLAGS+= -I${LOCALBASE}/include |
40 |
CPPFLAGS+= -I${LOCALBASE}/include |
54 |
LDFLAGS+= -L${LOCALBASE}/lib |
41 |
LDFLAGS+= -L${LOCALBASE}/lib |
55 |
|
42 |
|
56 |
test check: |
43 |
OPTIONS_DEFINE= DOCS FPX OPENMP Q8BIT SSE TESTS WEBP X11 |
57 |
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check |
44 |
OPTIONS_SINGLE= X11 |
|
|
45 |
OPTIONS_SINGLE_X11= DPS |
46 |
OPTIONS_DEFAULT= DPS OPENMP TESTS WEBP X11 |
47 |
|
48 |
DPS_DESC= Enable Display Ghostscript support |
49 |
DPS_LIB_DEPENDS= libdps.so:${PORTSDIR}/x11/dgs |
50 |
DPS_USE= XORG=xt |
51 |
DPS_CONFIGURE_WITH= dps |
52 |
FPX_LIB_DEPENDS+= libfpx.so.[2-9]:${PORTSDIR}/graphics/libfpx |
53 |
FPX_CONFIGURE_WITH= fpx |
54 |
OPENMP_USES= compiler:openmp |
55 |
OPENMP_CONFIGURE_ON= --with-threads --enable-openmp --disable-openmp-slow |
56 |
OPENMP_CONFIGURE_OFF= --without-threads --disable-openmp |
57 |
Q8BIT_DESC= Use 8-bit pixels (speed) instead of 16 (quality) |
58 |
TESTS_DESC= Run bundled self-tests after build |
59 |
TESTS_BUILD_DEPENDS= webfonts>0:${PORTSDIR}/x11-fonts/webfonts |
60 |
TESTS_RUN_DEPENDS= webfonts>0:${PORTSDIR}/x11-fonts/webfonts |
61 |
WEBP_LIB_DEPENDS= libwebp.so:${PORTSDIR}/graphics/webp |
62 |
WEBP_CONFIGURE_WITH= webp |
63 |
X11_LIB_DEPENDS= libwmflite.so:${PORTSDIR}/graphics/${LIBWMF_PORT} |
64 |
X11_USE= XORG=xext |
65 |
X11_CONFIGURE_WITH= x |
58 |
|
66 |
|
59 |
.include <bsd.port.options.mk> |
67 |
.include <bsd.port.options.mk> |
60 |
|
68 |
|
61 |
.if ${PORT_OPTIONS:MDOCS} == "" |
69 |
.if ${PORT_OPTIONS:MQ8BIT} |
62 |
# Get rid of the Makefile targets that install the documentation |
70 |
QD= 8 |
63 |
# and HTML files into DOCSDIR |
71 |
.else |
64 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in |
72 |
QD= 16 |
65 |
.endif |
73 |
.endif |
66 |
|
74 |
|
67 |
.if ${PORT_OPTIONS:MSSE} |
75 |
.if ${PORT_OPTIONS:MSSE} |
Lines 76-135
Link Here
|
76 |
.endif |
84 |
.endif |
77 |
.endif |
85 |
.endif |
78 |
|
86 |
|
79 |
.if ${PORT_OPTIONS:MFPX} |
87 |
.if ${PORT_OPTIONS:MX11} |
80 |
LIB_DEPENDS+= libfpx.so.[2-9]:${PORTSDIR}/graphics/libfpx |
88 |
LIBWMF_PORT= libwmf |
81 |
CONFIGURE_ARGS+= --with-fpx |
|
|
82 |
.else |
89 |
.else |
83 |
CONFIGURE_ARGS+= --without-fpx |
90 |
LIBWMF_PORT= libwmf-nox11 |
84 |
.endif |
91 |
.endif |
85 |
|
92 |
|
86 |
.if ${PORT_OPTIONS:MDPS} |
93 |
.include <bsd.port.pre.mk> |
87 |
USE_XORG+= xt |
|
|
88 |
LIB_DEPENDS+= libdps.so:${PORTSDIR}/x11/dgs |
89 |
CONFIGURE_ARGS+= --with-dps |
90 |
.else |
91 |
CONFIGURE_ARGS+= --without-dps |
92 |
.endif |
93 |
|
94 |
|
94 |
.if ${PORT_OPTIONS:MOPENMP} |
95 |
.if ${OSVERSION} >= 1000024 |
95 |
.if ${OSVERSION} < 700042 |
96 |
.if ${PORT_OPTIONS:MFPX} && ${PORT_OPTIONS:MOPENMP} |
96 |
IGNORE= does not support OpenMP on FreeBSD version ${OSVERSION} |
97 |
IGNORE= Cause C++ ABI conflict between clang/libc++ and gcc/libstdc++ |
97 |
.endif |
98 |
.endif |
98 |
|
|
|
99 |
LDFLAGS+= ${PTHREAD_LIBS} |
100 |
CONFIGURE_ARGS+= --with-threads --enable-openmp --disable-openmp-slow |
101 |
.else |
102 |
CONFIGURE_ARGS+= --without-threads --disable-openmp |
103 |
.endif |
99 |
.endif |
104 |
|
100 |
|
105 |
.ifndef WINDOWS_FONT_DIR |
101 |
.if !defined(WINDOWS_FONT_DIR) |
106 |
# Use fonts installed by x11-fonts/webfonts by default |
102 |
# Use fonts installed by x11-fonts/webfonts by default |
107 |
WINDOWS_FONT_DIR=${LOCALBASE}/lib/X11/fonts/webfonts |
103 |
WINDOWS_FONT_DIR=${LOCALBASE}/lib/X11/fonts/webfonts |
108 |
.endif |
104 |
.endif |
109 |
|
105 |
|
110 |
.if defined(WITH_WINDOWS_FONT_DIR) |
|
|
111 |
CONFIGURE_ARGS+= --with-windows-font-dir="${WINDOWS_FONT_DIR}" |
112 |
.endif |
113 |
|
114 |
.if ${PORT_OPTIONS:MX11} == "" |
115 |
CONFIGURE_ARGS+=--without-x |
116 |
LIB_DEPENDS+= libwmflite.so:${PORTSDIR}/graphics/libwmf-nox11 |
117 |
.else |
118 |
USE_XORG+= xext |
119 |
LIB_DEPENDS+= libwmflite.so:${PORTSDIR}/graphics/libwmf |
120 |
.endif |
121 |
|
122 |
.if ${PORT_OPTIONS:MQ8BIT} |
123 |
CONFIGURE_ARGS+= --with-quantum-depth=8 |
124 |
QD= 8 |
125 |
.else |
126 |
CONFIGURE_ARGS+= --with-quantum-depth=16 |
127 |
QD= 16 |
128 |
.endif |
129 |
PLIST_SUB+= Q=${QD} |
130 |
|
131 |
.if ${PORT_OPTIONS:MTESTS} |
106 |
.if ${PORT_OPTIONS:MTESTS} |
132 |
post-build:: test |
107 |
post-build:: regression-test |
133 |
.else |
108 |
.else |
134 |
post-build:: |
109 |
post-build:: |
135 |
# |
110 |
# |
Lines 139-145
Link Here
|
139 |
.endif |
114 |
.endif |
140 |
|
115 |
|
141 |
post-install: |
116 |
post-install: |
142 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/GraphicsMagick/modules-Q${QD}/coders \ |
117 |
.for i in coders filters |
143 |
${STAGEDIR}${PREFIX}/lib/GraphicsMagick/modules-Q${QD}/filters |
118 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/GraphicsMagick/modules-Q${QD}/${i} |
|
|
119 |
.endfor |
120 |
|
121 |
regression-test: do-build |
122 |
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ |
123 |
${MAKEFILE} ${MAKE_ARGS} check) |
144 |
|
124 |
|
145 |
.include <bsd.port.mk> |
125 |
.include <bsd.port.post.mk> |