aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tiffgt/Makefile
blob: 8d3b80dd02986d787c32eb99842c5ff7db4bfe66 (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
# $FreeBSD$

PORTNAME=   tiffgt
DISTVERSION=    4.0.9
CATEGORIES= graphics
MASTER_SITES=   ftp://ftp.remotesensing.org/pub/libtiff/ \
        http://download.osgeo.org/libtiff/
DISTNAME=   tiff-${DISTVERSION}

MAINTAINER= bofh@FreeBSD.org
COMMENT=    X11 Tools for working with TIFF images

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/COPYRIGHT

LIB_DEPENDS=    libjbig.so:graphics/jbigkit \
        libtiff.so:graphics/tiff

USES=       cpe jpeg libtool pathfix
CPE_PRODUCT=    libtiff
CPE_VERSION=    ${DISTVERSION:C/[a-z]+//}
CPE_UPDATE= ${DISTVERSION:C/[0-9.]+//}
USE_XORG=   sm ice xmu xi x11
USE_GL=     glut glu gl
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=    --with-jpeg-include-dir=${LOCALBASE}/include \
            --with-jpeg-lib-dir=${LOCALBASE}/lib --with-x
PLIST_FILES=    bin/tiffgt man/man1/tiffgt.1.gz

pre-configure:
    ${REINPLACE_CMD} -e 's|^docfiles|no-docfiles|' \
        -e 's|man html|man|' ${WRKSRC}/Makefile.in

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/tools/.libs/tiffgt ${STAGEDIR}/${PREFIX}/bin/
    ${INSTALL_MAN} ${WRKSRC}/man/tiffgt.1 ${STAGEDIR}${PREFIX}/man/man1/

.include <bsd.port.mk>