aboutsummaryrefslogblamecommitdiff
path: root/graphics/webp/Makefile
blob: 107ebfe37abe1fdfa80d7ebf31effa3a276d0b1a (plain) (tree)
1
2
3
4
5
6
7
8
9
                    

                    
                     
                        

                                                                                       
                                             
 
                                   

                                                        
                          
                                 
 


                                           
 

                                                   
                                         
                                        

                                                               

                             
                   
 




                                 

                                       
                               
                          
 


                                                                  
                      
# Created by: johans

PORTNAME=	webp
PORTVERSION=	1.2.1
CATEGORIES=	graphics
MASTER_SITES=	http://downloads.webmproject.org/releases/webp/ \
		https://storage.googleapis.com/downloads.webmproject.org/releases/webp/
DISTNAME=	lib${PORTNAME}-${PORTVERSION}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Google WebP image format conversion tool

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libgif.so:graphics/giflib \
		libpng.so:graphics/png \
		libtiff.so:graphics/tiff

USES=		compiler:c11 jpeg libtool localbase

CONFIGURE_ARGS=	--enable-libwebpdecoder \
		--enable-libwebpdemux  \
		--enable-libwebpmux \
		--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

PORTSCOUT=	limit:^[0-9\.]*$$

OPTIONS_DEFINE=	X11
OPTIONS_SUB=	yes

X11_CONFIGURE_OFF=	build_vwebp=no
X11_CONFIGURE_ON=	build_vwebp=yes
X11_USE=		GL=glut
X11_USES=		gl

post-patch:
	@${REINPLACE_CMD} '/build_vwebp=yes/d' ${WRKSRC}/configure

.include <bsd.port.mk>