freebsd-ports/graphics/webp/Makefile
Sunpoet Po-Chuan Hsieh 946d512c25 - Use USES=compiler:c11
9.3-RELEASE users may encounter build failure due to incorrect cast for
_mm_srli_epi64(__A, __B) in emmintrin.h of base gcc. This was fixed in r269948
(head) and MFC'd to stable/9 and stable/10 in r270099.

However, 9.3-RELEASE users do not benefit from the fix. In order to solve this
problem. We use clang or newer gcc from ports to build this port.

Reference:	https://svnweb.freebsd.org/base?view=revision&revision=269948
PR:		ports/192600 [1], ports/192637 [2]
Submitted by:	mandree [1], Vladimir Chukharev <vladimir.chukharev@gmail.com> [2]
Thanks to:	dim
2014-08-17 18:56:58 +00:00

45 lines
1 KiB
Makefile

# Created by: johans
# $FreeBSD$
PORTNAME= webp
PORTVERSION= 0.4.1
CATEGORIES= graphics
MASTER_SITES= http://downloads.webmproject.org/releases/webp/
DISTNAME= lib${PORTNAME}-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Google WebP image format conversion tool
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
libpng15.so:${PORTSDIR}/graphics/png \
libtiff.so:${PORTSDIR}/graphics/tiff
PORTSCOUT= limit:^[0-9\.]*$$
OPTIONS_DEFINE= X11
OPTIONS_SUB= yes
CPPFLAGS+= -I${LOCALBASE}/include
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --enable-libwebpdecoder \
--enable-libwebpdemux \
--enable-libwebpmux \
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
USE_LDCONFIG= yes
USES= compiler:c11 libtool
X11_CONFIGURE_OFF= build_vwebp=no
X11_CONFIGURE_ON= build_vwebp=yes
X11_USE= GL=glut
post-patch:
@${REINPLACE_CMD} '/build_vwebp=yes/d' ${WRKSRC}/configure
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libwebp*.so
.include <bsd.port.mk>