aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/argyllcms/Makefile
blob: 131f5d74f94b0bbc480b8f9ba0798064b156581b (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
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$

PORTNAME=   argyllcms
PORTVERSION=    1.9.2
PORTREVISION=   5
CATEGORIES= graphics
MASTER_SITES=   http://www.argyllcms.com/
DISTNAME=   Argyll_V${PORTVERSION}_src

MAINTAINER= kwm@FreeBSD.org
COMMENT=    ICC compatible color management system

LICENSE=    AGPLv3

BUILD_DEPENDS=  jam:devel/jam
LIB_DEPENDS=    libtiff.so:graphics/tiff \
        libpng.so:graphics/png

WRKSRC=     ${WRKDIR}/Argyll_V${PORTVERSION}

USES=       compiler:c11 cpe jpeg ssl zip
USE_XORG=   x11 xau xdmcp xext xinerama xrandr xscrnsaver xxf86vm

post-patch:
    @${REINPLACE_CMD} 's:711:755:g' ${WRKSRC}/Jambase

do-build:
    @cd ${WRKSRC} && ${MAKE_ENV} jam -dx -q -fJambase -j${MAKE_JOBS_NUMBER}

do-install:
    @cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${MAKE_ENV} \
        REFSUBDIR=share/argyll/ref \
        jam -dx -q -fJambase -j${MAKE_JOBS_NUMBER} install
    ${MV} ${STAGEDIR}${PREFIX}/bin/License.txt \
        ${STAGEDIR}${PREFIX}/share/argyll/
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*

.include <bsd.port.mk>