aboutsummaryrefslogtreecommitdiffstats
path: root/www/imgsizer/Makefile
blob: 4b30ba426e48174da1173b7c173467e8fad13aad (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
# New ports collection makefile for:    imgsizer
# Date created:         08 Jun 2004
# Whom:             Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=       imgsizer
PORTVERSION=        2.7
PORTREVISION=   2
CATEGORIES=     www textproc
MASTER_SITES=       http://www.catb.org/~esr/imgsizer/

MAINTAINER=     jylefort@FreeBSD.org
COMMENT=        A tool to autogenerate WIDTH and HEIGHT for IMG HTML tags

RUN_DEPENDS=        rdjpgcom:${PORTSDIR}/graphics/jpeg \
            identify:${PORTSDIR}/graphics/ImageMagick

USE_PYTHON=     yes
NO_BUILD=       yes
MAN1=           imgsizer.1

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/imgsizer

do-install:
    ${MKDIR} ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/imgsizer ${PREFIX}/bin
    ${MKDIR} ${MAN1PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/imgsizer.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>