aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/dcraw-m/Makefile
blob: 619327cd3fea74257019b0a62a6753aa22472828 (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
# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
# $FreeBSD$

PORTNAME=   dcraw-m
PORTVERSION=    9.22
PORTREVISION=   1
CATEGORIES= graphics

MAINTAINER= waitman@waitman.net
COMMENT=    Modified Decoder for RAW files from digital cameras

LICENSE=    GPLv2

LIB_DEPENDS=    libjasper.so:${PORTSDIR}/graphics/jasper \
        liblcms2.so:${PORTSDIR}/graphics/lcms2 \
        libMagickWand-6.so:${PORTSDIR}/graphics/ImageMagick

USE_GITHUB= yes
GH_ACCOUNT= waitman
GH_TAGNAME= 1392579

USES=       jpeg pkgconfig

CFLAGS +=   -Wall -I${LOCALBASE}/include \
        `MagickWand-config --cflags --cppflags` \
        -DMAGICKCORE_HDRI_ENABLE=0 \
        -DMAGICKCORE_QUANTUM_DEPTH=16
LDFLAGS +=  `MagickWand-config --ldflags --libs` -lm -llcms2 -ljpeg \
        -ljasper
LIBS    +=      -L${LOCALBASE}/lib

PLIST_FILES=    bin/dcraw-m

do-build:
    ( cd ${WRKSRC} ; \
    ${CC} ${CFLAGS} ${LIBS} ${LDFLAGS} -o ${PORTNAME} ${PORTNAME}.c )

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>