blob: fd50308e2e8aaa13db32ec688288ff4e3c1b51d0 (
plain)
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
|
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_LIB_DEPENDS= libMagickWand-${IMAGEMAGICK_DEFAULT}.so:graphics/ImageMagick${IMAGEMAGICK_DEFAULT}
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>
|