aboutsummaryrefslogtreecommitdiff
path: root/graphics/recoverjpeg/Makefile
blob: 2d18f1d64178e6dbd34b987f2acb1f80b4be35f5 (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
# New ports collection makefile for:	recoverjpeg
# Date created:				25 Sep 2005
# Whom:					Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=	recoverjpeg
PORTVERSION=	1.1.1
PORTREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	http://www.rfc1149.net/download/recoverjpeg/ \
		http://critical.ch/distfiles/ \
		http://energy.critical.ch/distfiles/

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Recoverjpeg tries to recover JFIF (JPEG) pictures from a peripheral

GNU_CONFIGURE=	yes
MANCOMPRESSED=	no

# recoverjpeg scripts require many dependencies
OPTIONS=	SCRIPTS	"Install sort-pictures and remove-duplicates scripts" on

CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

PLIST_FILES=	bin/recoverjpeg
MAN1=		recoverjpeg.1

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_SCRIPTS)
RUN_DEPENDS=	exif:${PORTSDIR}/graphics/exif \
		identify:${PORTSDIR}/graphics/ImageMagick
PLIST_FILES+=	bin/sort-pictures bin/remove-duplicates
MAN1+=		sort-pictures.1
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if !defined(WITHOUT_SCRIPTS)
.for f in sort-pictures remove-duplicates
	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
.endif
.for f in ${MAN1}
	${INSTALL_MAN} ${WRKSRC}/${f} ${MANPREFIX}/man/man1
.endfor

.include <bsd.port.post.mk>