aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libraw/Makefile
blob: 82698adf8d10e0743b3a5b62b6183a835ad625cd (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
# New ports collection makefile for:    raw images library
# Date created:         26 Apr 2008
# Whom:                 osa
#
# $FreeBSD$
#

PORTNAME=   libraw
PORTVERSION=    0.5.3
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   http://www.libraw.su/data/
DISTNAME=   LibRaw-${PORTVERSION}

MAINTAINER= osa@FreeBSD.org
COMMENT=    Library for manipulating raw images

LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
        lcms.1:${PORTSDIR}/graphics/lcms

MAKE_ENV+=  CXX="${CXX}" CC="${CC}" CFLAGS="${CFLAGS}" \
        PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}

USE_LDCONFIG=   yes

do-install:
    @${MKDIR} ${PREFIX}/include/libraw

.for f in libraw.h libraw_alloc.h libraw_const.h libraw_internal.h libraw_io.h libraw_types.h
    @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${f} ${PREFIX}/include/libraw
.endfor
.for f in libraw.a libraw.so.0 libraw_r.a libraw_r.so.0
    @${INSTALL_DATA} ${WRKSRC}/lib/${f} ${PREFIX}/lib
.endfor
.for f in libraw libraw_r
    @ cd ${PREFIX}/lib ; ${LN} -sf ${f}.so.0 ${f}.so
.endfor

.include <bsd.port.mk>