1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

Build without vwebp demo binary (requires X) by default

Submitted by:	poyopoyo@puripuri.plala.or.jp
This commit is contained in:
Johan van Selst 2013-12-29 08:51:10 +00:00
parent 0da6350a9f
commit 46f25a6df4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337945
2 changed files with 17 additions and 3 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= webp
PORTVERSION= 0.3.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= GOOGLE_CODE
DISTNAME= lib${PORTNAME}-${PORTVERSION}
@ -17,7 +17,6 @@ LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
libtiff.so:${PORTSDIR}/graphics/tiff
USE_LDCONFIG= yes
USE_GL= glut
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
@ -26,4 +25,19 @@ CONFIGURE_ARGS+=--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
--enable-libwebpdemux \
--enable-libwebpdecoder
OPTIONS_DEFINE= X11
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
USE_GL= glut
PLIST_SUB= X11=""
.else
CONFIGURE_ARGS+=--with-glincludedir=/dev/null
PLIST_SUB= X11="@comment "
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libwebp*.so
.include <bsd.port.mk>

View File

@ -1,7 +1,7 @@
bin/cwebp
bin/dwebp
bin/gif2webp
bin/vwebp
%%X11%%bin/vwebp
bin/webpmux
include/webp/decode.h
include/webp/demux.h