mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
45526ecbee
A new USES has been added to depend on ImageMagick. USES=magick adds a LIB_DEPENDS on graphics/ImageMagick${IMAGEMAGICK_DEFAULT}. If a specific version is required, use for example USES=magick:6 resp. USES=magick:7 If only a build, run or test is required, use for example USES=magick:build resp. USES=magick:6,build,test If a dependency on the nox11 flavor is required, use for example USES=magick:nox11 resp. USES=magick:7,nox11,run,test See magick.mk for more details on the available flags. The tree has been completely converted to make use of this. Approved by: bapt Differential Revision: https://reviews.freebsd.org/D32754
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
PORTNAME= libwraster
|
|
PORTVERSION= 0.95.9
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11-wm windowmaker
|
|
MASTER_SITES= http://windowmaker.org/pub/source/release/
|
|
DISTNAME= WindowMaker-${PORTVERSION}
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= Window Maker raster graphics library
|
|
|
|
LICENSE= LGPL21
|
|
|
|
LIB_DEPENDS= libgif.so:graphics/giflib \
|
|
libpng.so:graphics/png \
|
|
libjbig.so:graphics/jbigkit \
|
|
libtiff.so:graphics/tiff \
|
|
libwebp.so:graphics/webp
|
|
|
|
USES= jpeg libtool localbase pathfix pkgconfig xorg
|
|
USE_LDCONFIG= yes
|
|
USE_XORG= x11 xext xft xinerama xmu xpm
|
|
BUILD_WRKSRC= ${WRKSRC}/wrlib
|
|
INSTALL_WRKSRC= ${WRKSRC}/wrlib
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-pixmapdir=${PREFIX}/include/X11/pixmaps \
|
|
--with-localedir=${PREFIX}/share/locale \
|
|
--with-libs-from="-L${LOCALBASE}/lib" \
|
|
--with-incs-from="-I${LOCALBASE}/include" \
|
|
--with-gnustepdir="${PREFIX}/GNUstep" \
|
|
--enable-modelock \
|
|
--enable-xinerama \
|
|
--enable-usermenu \
|
|
--enable-wmreplace \
|
|
--with-x
|
|
INSTALL_TARGET= install-strip
|
|
|
|
OPTIONS_DEFINE= IMAGEMAGICK
|
|
OPTIONS_DEFAULT= IMAGEMAGICK
|
|
|
|
IMAGEMAGICK_USES= magick
|
|
IMAGEMAGICK_CONFIGURE_OFF= --disable-magick
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch-IMAGEMAGICK-on:
|
|
.if ${IMAGEMAGICK_DEFAULT} == 6
|
|
@${REINPLACE_CMD} -e '/MagickWand\.h/s,MagickWand/,wand/,' \
|
|
${WRKSRC}/configure ${WRKSRC}/wrlib/load_magick.c
|
|
.endif
|
|
|
|
pre-build:
|
|
cd ${WRKSRC} && ${MAKE_CMD} config-paths.h
|
|
|
|
.include <bsd.port.mk>
|