aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/webp/Makefile
blob: 714ecca49472c5cc9d2f2d85bdedb6e9b6036b9c (plain) (blame)
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
# Created by: johans
# $FreeBSD$

PORTNAME=   webp
PORTVERSION=    0.3.1
PORTREVISION=   5
CATEGORIES= graphics
MASTER_SITES=   GOOGLE_CODE
DISTNAME=   lib${PORTNAME}-${PORTVERSION}

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

LIB_DEPENDS=    libjpeg.so:${PORTSDIR}/graphics/jpeg \
        libpng15.so:${PORTSDIR}/graphics/png \
        libgif.so:${PORTSDIR}/graphics/giflib \
        libtiff.so:${PORTSDIR}/graphics/tiff

USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
        --enable-libwebpmux \
        --enable-libwebpdemux  \
        --enable-libwebpdecoder

OPTIONS_DEFINE= X11
OPTIONS_SUB=    yes
X11_USE=    GL=glut
X11_CONFIGURE_OFF=  --with-glincludedir=/dev/null

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libwebp*.so

.include <bsd.port.mk>