Import graphics/dcraw-m version 9.22_1
[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=   1
7 CATEGORIES=     graphics
8 MASTER_SITES=   GH
9
10 MAINTAINER=     waitman@waitman.net
11 COMMENT=        Modified Decoder for RAW files from digital cameras
12
13 LICENSE=        GPLv2
14
15 LIB_DEPENDS=    libjasper.so:${PORTSDIR}/graphics/jasper \
16                 libjpeg.so:${PORTSDIR}/graphics/jpeg \
17                 liblcms2.so:${PORTSDIR}/graphics/lcms2 \
18                 libMagickWand-6.so:${PORTSDIR}/graphics/ImageMagick
19
20 USE_GITHUB=     yes
21 GH_ACCOUNT=     waitman
22 GH_PROJECT=     dcraw-m
23 GH_TAGNAME=     ${GH_COMMIT}
24 GH_COMMIT=      1392579
25
26 USES=           pkgconfig
27
28 CFLAGS +=       -Wall -I${LOCALBASE}/include \
29                 `MagickWand-config --cflags --cppflags` \
30                 -DMAGICKCORE_HDRI_ENABLE=0 \
31                 -DMAGICKCORE_QUANTUM_DEPTH=16
32 LDFLAGS +=      `MagickWand-config --ldflags --libs` -lm -llcms2 -ljpeg \
33                 -ljasper
34 LIBS    +=      -L${LOCALBASE}/lib
35
36 PLIST_FILES=    bin/dcraw-m
37
38 do-build:
39         ( cd ${WRKSRC} ; \
40         ${CC} ${CFLAGS} ${LIBS} ${LDFLAGS} -o ${PORTNAME} ${PORTNAME}.c )
41
42 do-install:
43         ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
44
45 .include <bsd.port.mk>