Update math/R-cran-xts to version 0.10.0
[dports.git] / graphics / dcraw-m / Makefile
1 # Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
2 # $FreeBSD$
3
4 PORTNAME=       dcraw-m
5 PORTVERSION=    9.22
6 PORTREVISION=   2
7 CATEGORIES=     graphics
8
9 MAINTAINER=     waitman@waitman.net
10 COMMENT=        Modified Decoder for RAW files from digital cameras
11
12 LICENSE=        GPLv2
13
14 LIB_DEPENDS=    libjasper.so:graphics/jasper \
15                 liblcms2.so:graphics/lcms2 \
16                 libMagickWand-6.so:graphics/ImageMagick
17
18 USE_GITHUB=     yes
19 GH_ACCOUNT=     waitman
20 GH_TAGNAME=     1392579
21
22 USES=           jpeg pkgconfig
23
24 CFLAGS +=       -Wall -I${LOCALBASE}/include \
25                 `MagickWand-config --cflags --cppflags` \
26                 -DMAGICKCORE_HDRI_ENABLE=0 \
27                 -DMAGICKCORE_QUANTUM_DEPTH=16
28 LDFLAGS +=      `MagickWand-config --ldflags --libs` -lm -llcms2 -ljpeg \
29                 -ljasper
30 LIBS    +=      -L${LOCALBASE}/lib
31
32 PLIST_FILES=    bin/dcraw-m
33
34 do-build:
35         ( cd ${WRKSRC} ; \
36         ${CC} ${CFLAGS} ${LIBS} ${LDFLAGS} -o ${PORTNAME} ${PORTNAME}.c )
37
38 do-install:
39         ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
40
41 .include <bsd.port.mk>