aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/aaphoto/Makefile
blob: cde5ed737a0b1e4d5a698c42915ad32eb9779026 (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
43
44
45
46
47
48
49
50
51
52
53
# New ports collection makefile for:    aaphoto
# Date created:             2009-12-24
# Whom:                 Andras Horvath <han@log69.com>
#
# $FreeBSD$
#

PORTNAME=   aaphoto
PORTVERSION=    0.41
CATEGORIES= graphics
MASTER_SITES=   http://log69.com/downloads/
DISTNAME=   ${PORTNAME}_sources_v${PORTVERSION}

MAINTAINER= han@log69.com
COMMENT=    Auto Adjust Photo, automatic color correction of photos

LIB_DEPENDS=    jasper:${PORTSDIR}/graphics/jasper \
        jpeg:${PORTSDIR}/graphics/jpeg \
        png:${PORTSDIR}/graphics/png

LICENSE=    GPLv3

USE_AUTOTOOLS=  autoheader
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_FILES=    bin/aaphoto
PORTDOCS=   AUTHORS ChangeLog COPYING COPYRIGHT INSTALL LICENSE \
        NEWS README TODO

.include <bsd.port.pre.mk>

.if (${ARCH} == "amd64" || ${ARCH} == "i386") && ${OSVERSION} >= 700000
CFLAGS+=    -fopenmp -D__OPENMP__
.endif

do-install:
.for FILE in aaphoto
    ${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${PREFIX}/bin
.endfor

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>