Lines 1-99
Link Here
|
1 |
# Created by: Ron van Daal |
1 |
# Created by: Ron van Daal |
2 |
|
2 |
|
3 |
PORTNAME= GraphicsMagick |
3 |
PORTNAME= GraphicsMagick |
4 |
PORTVERSION= 1.3.36 |
4 |
DISTVERSION= 1.3.37 |
5 |
PORTREVISION= 1 |
|
|
6 |
PORTEPOCH= 1 |
5 |
PORTEPOCH= 1 |
7 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
8 |
MASTER_SITES= SF \ |
7 |
MASTER_SITES= SF |
9 |
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/${PORTVERSION:R}/ |
|
|
10 |
|
8 |
|
11 |
MAINTAINER= sunpoet@FreeBSD.org |
9 |
MAINTAINER= sunpoet@FreeBSD.org |
12 |
COMMENT= Fast image processing tools based on ImageMagick |
10 |
COMMENT= Fast image processing tools based on ImageMagick |
13 |
|
11 |
|
14 |
LICENSE= MIT |
12 |
LICENSE= MIT |
15 |
|
13 |
|
16 |
USES= cpe libtool localbase pathfix tar:bzip2 |
14 |
USES= cpe libtool localbase pathfix tar:xz |
|
|
15 |
GNU_CONFIGURE= yes |
16 |
USE_LDCONFIG= yes |
17 |
|
18 |
INSTALL_TARGET= install-strip |
19 |
TEST_TARGET= check |
17 |
|
20 |
|
|
|
21 |
CONFIGURE_ENV= PTHREAD_LIBS=-lpthread |
18 |
CONFIGURE_ARGS= --enable-shared --enable-static \ |
22 |
CONFIGURE_ARGS= --enable-shared --enable-static \ |
19 |
--with-windows-font-dir=${WINDOWS_FONT_DIR} \ |
23 |
--with-windows-font-dir=${WINDOWS_FONT_DIR} \ |
20 |
--without-perl --without-trio |
24 |
--without-perl --without-trio |
21 |
CONFIGURE_ENV= PTHREAD_LIBS=-lpthread |
|
|
22 |
GNU_CONFIGURE= yes |
23 |
INSTALL_TARGET= install-strip |
24 |
TEST_TARGET= check |
25 |
USE_LDCONFIG= yes |
26 |
|
25 |
|
27 |
# Use fonts installed by x11-fonts/webfonts by default |
26 |
# Use fonts installed by x11-fonts/webfonts by default |
28 |
WINDOWS_FONT_DIR?= ${LOCALBASE}/share/fonts/webfonts |
27 |
WINDOWS_FONT_DIR?= ${LOCALBASE}/share/fonts/webfonts |
29 |
|
28 |
|
30 |
OPTIONS_DEFINE= BZIP2 DOCS FPX FREETYPE JASPER JBIG JPEG LCMS2 LZMA OPENMP Q8BIT PNG SSE TEST TIFF UMEM WEBP WMF X11 XML ZLIB ZSTD |
29 |
OPTIONS_DEFINE= DOCS FPX FREETYPE JASPER JBIG JPEG LCMS2 OPENMP Q8BIT PNG TEST TIFF WEBP WMF X11 XML ZSTD |
31 |
OPTIONS_DEFAULT=BZIP2 FREETYPE JASPER JBIG JPEG LCMS2 LZMA OPENMP PNG TIFF WEBP WMF X11 XML ZLIB |
30 |
OPTIONS_DEFAULT=FREETYPE JASPER JBIG JPEG LCMS2 OPENMP PNG TIFF WEBP WMF X11 XML |
32 |
Q8BIT_DESC= Use 8-bit pixels (speed) instead of 16-bit (quality) |
31 |
Q8BIT_DESC= Use 8-bit pixels (speed) instead of 16-bit (quality) |
33 |
UMEM_DESC= UMEM memory allocation library support |
32 |
UMEM_DESC= UMEM memory allocation library support |
34 |
TEST_DESC= Run bundled self-tests after build |
33 |
TEST_DESC= Run bundled self-tests after build |
35 |
|
34 |
|
36 |
BZIP2_CONFIGURE_WITH= bzlib |
|
|
37 |
FPX_CONFIGURE_WITH= fpx |
38 |
FPX_LIB_DEPENDS= libfpx.so:graphics/libfpx |
35 |
FPX_LIB_DEPENDS= libfpx.so:graphics/libfpx |
39 |
FREETYPE_CONFIGURE_WITH=ttf |
36 |
FPX_CONFIGURE_WITH= fpx |
40 |
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 |
37 |
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 |
41 |
JASPER_CONFIGURE_WITH= jp2 |
38 |
FREETYPE_CONFIGURE_WITH=ttf |
42 |
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper |
39 |
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper |
43 |
JBIG_CONFIGURE_WITH= jbig |
40 |
JASPER_CONFIGURE_WITH= jp2 |
44 |
JBIG_LIB_DEPENDS= libjbig.so:graphics/jbigkit |
41 |
JBIG_LIB_DEPENDS= libjbig.so:graphics/jbigkit |
45 |
JPEG_CONFIGURE_WITH= jpeg |
42 |
JBIG_CONFIGURE_WITH= jbig |
46 |
JPEG_USES= jpeg |
43 |
JPEG_USES= jpeg |
47 |
LCMS2_CONFIGURE_WITH= lcms2 |
44 |
JPEG_CONFIGURE_WITH= jpeg |
48 |
LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2 |
45 |
LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2 |
49 |
LZMA_CONFIGURE_WITH= lzma |
46 |
LCMS2_CONFIGURE_WITH= lcms2 |
50 |
OPENMP_CONFIGURE_OFF= --disable-openmp --without-threads |
47 |
OPENMP_CONFIGURE_OFF= --disable-openmp --without-threads |
51 |
OPENMP_CONFIGURE_ON= --disable-openmp-slow --enable-openmp --with-threads |
48 |
OPENMP_CONFIGURE_ON= --disable-openmp-slow --enable-openmp --with-threads |
52 |
PNG_CONFIGURE_WITH= png |
|
|
53 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
49 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
|
|
50 |
PNG_CONFIGURE_WITH= png |
54 |
Q8BIT_CONFIGURE_OFF= --with-quantum-depth=16 |
51 |
Q8BIT_CONFIGURE_OFF= --with-quantum-depth=16 |
55 |
Q8BIT_CONFIGURE_ON= --with-quantum-depth=8 |
52 |
Q8BIT_CONFIGURE_ON= --with-quantum-depth=8 |
56 |
Q8BIT_PLIST_SUB= Q=8 |
53 |
Q8BIT_PLIST_SUB= Q=8 |
57 |
Q8BIT_PLIST_SUB_OFF= Q=16 |
54 |
Q8BIT_PLIST_SUB_OFF= Q=16 |
58 |
TEST_BUILD_DEPENDS= webfonts>=0:x11-fonts/webfonts |
55 |
TEST_BUILD_DEPENDS= webfonts>=0:x11-fonts/webfonts |
59 |
TEST_RUN_DEPENDS= webfonts>=0:x11-fonts/webfonts |
56 |
TEST_RUN_DEPENDS= webfonts>=0:x11-fonts/webfonts |
60 |
TIFF_CONFIGURE_WITH= tiff |
|
|
61 |
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff |
57 |
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff |
62 |
UMEM_CONFIGURE_WITH= umem |
58 |
TIFF_CONFIGURE_WITH= tiff |
63 |
WEBP_CONFIGURE_WITH= webp |
|
|
64 |
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp |
59 |
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp |
|
|
60 |
WEBP_CONFIGURE_WITH= webp |
65 |
WMF_CONFIGURE_WITH= wmf |
61 |
WMF_CONFIGURE_WITH= wmf |
66 |
X11_CONFIGURE_OFF= ac_cv_lib_ICE_IceConnectionNumber=no |
|
|
67 |
X11_CONFIGURE_WITH= x |
68 |
X11_USES= xorg |
62 |
X11_USES= xorg |
69 |
X11_USE= XORG=ice,sm,x11,xext |
63 |
X11_USE= XORG=ice,sm,x11,xext |
70 |
XML_CONFIGURE_WITH= xml |
64 |
X11_CONFIGURE_OFF= ac_cv_lib_ICE_IceConnectionNumber=no |
71 |
XML_USE= GNOME=libxml2 |
65 |
X11_CONFIGURE_WITH= x |
72 |
XML_USES= gnome |
66 |
XML_USES= gnome |
73 |
ZLIB_CONFIGURE_WITH= zlib |
67 |
XML_USE= GNOME=libxml2 |
74 |
ZSTD_CONFIGURE_WITH= zstd |
68 |
XML_CONFIGURE_WITH= xml |
75 |
ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd |
69 |
ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd |
|
|
70 |
ZSTD_CONFIGURE_WITH= zstd |
76 |
|
71 |
|
77 |
.include <bsd.port.options.mk> |
72 |
.include <bsd.port.options.mk> |
78 |
|
73 |
|
79 |
.if ${PORT_OPTIONS:MOPENMP} |
74 |
.if ${PORT_OPTIONS:MOPENMP} |
80 |
.if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != powerpc64 && ${ARCH} != powerpc64le |
75 |
.if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != i386 && ${ARCH} != powerpc64 && ${ARCH} != powerpc64le |
81 |
USES+= compiler:gcc-c++11-lib |
76 |
USES+= compiler:gcc-c++11-lib |
82 |
.endif |
77 |
.endif |
83 |
.endif |
78 |
.endif |
84 |
|
79 |
|
85 |
.if ${PORT_OPTIONS:MSSE} |
|
|
86 |
.if ${MACHINE_CPU:Msse} |
87 |
CFLAGS+= -msse |
88 |
.endif |
89 |
.if ${MACHINE_CPU:Msse2} |
90 |
CFLAGS+= -msse2 |
91 |
.endif |
92 |
.if ${MACHINE_CPU:Msse3} |
93 |
CFLAGS+= -msse3 |
94 |
.endif |
95 |
.endif |
96 |
|
97 |
.if ${PORT_OPTIONS:MWMF} |
80 |
.if ${PORT_OPTIONS:MWMF} |
98 |
.if ${PORT_OPTIONS:MX11} |
81 |
.if ${PORT_OPTIONS:MX11} |
99 |
LIB_DEPENDS+= libwmflite.so:graphics/libwmf |
82 |
LIB_DEPENDS+= libwmflite.so:graphics/libwmf |