aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/webp/Makefile
blob: 83c4b28f485cd2ee377fb4e57a98366d2249df06 (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
37
38
39
40
41
42
# New ports collection makefile for:    webp
# Date created:     1 October 2010
# Whom:         johans
#
# $FreeBSD$
#

PORTNAME=   webp
PORTVERSION=    0.0.2
CATEGORIES= graphics
MASTER_SITES=   GOOGLE_CODE
DISTNAME=   ${PORTNAME}-leptonica-${PORTVERSION}

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

LIB_DEPENDS=    vpx.0:${PORTSDIR}/multimedia/libvpx \
        jpeg.11:${PORTSDIR}/graphics/jpeg \
        png.6:${PORTSDIR}/graphics/png

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_WRKSRC=   ${WRKSRC}/libwebp
CONFIGURE_ARGS+=    LDFLAGS="-L${WRKSRC}/leptonlib-1.066/lib/nodebug"
CFLAGS+=    -I${WRKSRC}/leptonlib-1.066/src
WRKSRC=     ${WRKDIR}/${PORTNAME}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}

PLIST_FILES=    bin/webpconv

pre-configure:
.for f in missing depcomp install-sh
        @cd ${WRKSRC}/libwebp && ${LN} -sf ../leptonlib-1.066/config/$f
.endfor
        @${REINPLACE_CMD} -e '/^CFLAGS =/s:$$: -I/usr/local/include:' \
            ${WRKSRC}/leptonlib-1.066/src/makefile

do-build:
        ${GMAKE} -C ${WRKSRC}/leptonlib-1.066/src
        ${MAKE} -C ${WRKSRC}/libwebp

.include <bsd.port.mk>