# Created by: John Reynolds <johnjen@reynoldsnet.org>
# $FreeBSD: tags/RELEASE_10_1_0/graphics/imageindex/Makefile 367888 2014-09-10 20:50:31Z gerald $

PORTNAME=	imageindex
PORTVERSION=	1.1
PORTREVISION=	6
CATEGORIES=	graphics
MASTER_SITES=	http://www.edwinh.org/imageindex/release/ \
		http://www.reynoldsnet.org/imageindex/release/

MAINTAINER=	johnjen@reynoldsnet.org
COMMENT=	Digital photo gallery tool

LIB_DEPENDS=	libjpeg.so:${PORTSDIR}/graphics/jpeg
RUN_DEPENDS=	convert:${PORTSDIR}/graphics/ImageMagick \
		mplayer:${PORTSDIR}/multimedia/mplayer \
		p5-Image-Info>=0:${PORTSDIR}/graphics/p5-Image-Info

USES=		perl5
USE_PERL5=	run
MAKE_ARGS+=	PERLPATH=${PERL} PREFIX=${STAGEDIR}${PREFIX}

PLIST_FILES=	bin/imageindex bin/autocaption \
		man/man1/imageindex.1.gz
PORTDOCS=	README
OPTIONS_DEFINE=	DOCS

post-patch:
	${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/Makefile

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
