summaryrefslogtreecommitdiff
path: root/graphics/exiftran/Makefile
blob: e83a453d9244eb2443e1ebf15687e25121a97f5f (plain)
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
PORTNAME=	exiftran
PORTVERSION=	2.14
CATEGORIES=	graphics
MASTER_SITES=	http://www.kraxel.org/releases/fbida/
DISTNAME=	fbida-${PORTVERSION}

MAINTAINER=	mm@FreeBSD.org
COMMENT=	Command line utility to transform jpeg files
WWW=		https://www.kraxel.org/blog/linux/fbida/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libexif.so:graphics/libexif

USES=		jpeg uidfix xorg
USE_XORG=	pixman

CONFLICTS_INSTALL=	ida

MAKE_ARGS+=	WRKSRC=${WRKSRC} BINDIR=${PREFIX}/bin MANDIR=${MANPREFIX}/man
PLIST_FILES=	bin/exiftran bin/thumbnail.cgi \
		man/man1/exiftran.1.gz

CFLAGS+=	-I${LOCALBASE}/include

post-patch:
	@${MKDIR} ${WRKSRC}/build/exiftran ${WRKSRC}/build/thumbnail.cgi
	@${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
	@${CP} ${FILESDIR}/Makefile.exiftran \
		${WRKSRC}/build/exiftran/Makefile
	@${CP} ${FILESDIR}/Makefile.thumbnail.cgi \
		${WRKSRC}/build/thumbnail.cgi/Makefile

post-install:
	${INSTALL_MAN} ${WRKSRC}/man/exiftran.1 \
		${STAGEDIR}${PREFIX}/man/man1/exiftran.1

.include <bsd.port.mk>