freebsd-ports/graphics/webp/Makefile

46 lines
1 KiB
Makefile
Raw Normal View History

# Created by: johans
# $FreeBSD$
PORTNAME= webp
PORTVERSION= 0.4.1
CATEGORIES= graphics
MASTER_SITES= http://downloads.webmproject.org/releases/webp/
DISTNAME= lib${PORTNAME}-${PORTVERSION}
2014-05-06 18:05:17 +02:00
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
2014-05-08 06:27:44 +02:00
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
2014-06-07 18:33:40 +02:00
X11_CONFIGURE_OFF= build_vwebp=no
X11_CONFIGURE_ON= build_vwebp=yes
X11_USE= GL=glut
2014-06-07 18:33:40 +02:00
post-patch:
@${REINPLACE_CMD} '/build_vwebp=yes/d' ${WRKSRC}/configure
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libwebp*.so
.include <bsd.port.mk>