mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
0992624943
This option brings webfonts which is restricted and prevents building around 100 ports on the package builders
127 lines
3.2 KiB
Makefile
127 lines
3.2 KiB
Makefile
# Created by: Ron van Daal
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= GraphicsMagick
|
|
PORTVERSION= 1.3.19
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF \
|
|
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:L}/${PORTNAME:L}/${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\.
|
|
|
|
USE_BZIP2= yes
|
|
USES= iconv
|
|
USE_GNOME= libxml2
|
|
USE_GHOSTSCRIPT=yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= PTHREAD_CFLAGS=" " PTHREAD_LIBS="-pthread"
|
|
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 ${OSVERSION} >= 1000024
|
|
.if ${PORT_OPTIONS:MFPX} && ${PORT_OPTIONS:MOPENMP}
|
|
IGNORE= Cause C++ ABI conflict between clang/libc++ and gcc/libstdc++
|
|
.endif
|
|
.endif
|
|
|
|
.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>
|