aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/jhead/Makefile
blob: e3e85b52a5c40b3a9ec6c8b49b65c33dd361ba71 (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
# Created by: Jamie Hermans <jamie@hermans.ca>
# $FreeBSD$

PORTNAME=   jhead
PORTVERSION=    2.96
CATEGORIES= graphics
MASTER_SITES=   http://www.sentex.net/~mwandel/jhead/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Exif Jpeg camera setting parser, rotator, and much more

RUN_DEPENDS=    jpegtran:${PORTSDIR}/graphics/jpeg

MAKEFILE=   makefile

MAKE_JOBS_SAFE= yes
PORTDOCS=   usage.html
PLIST_FILES=    bin/jhead
MAN1=       jhead.1

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -E '/^CFLAGS=/d' ${WRKSRC}/makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/jhead ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/jhead.1 ${PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/usage.html ${DOCSDIR}
.endif

.include <bsd.port.mk>