aboutsummaryrefslogtreecommitdiffstats
path: root/www/imgsizer/Makefile
blob: 2cbddb862139d4878f351ddd443b582ca51cc414 (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
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
# $FreeBSD$

PORTNAME=   imgsizer
PORTVERSION=    2.8
CATEGORIES= www textproc
MASTER_SITES=   http://www.catb.org/~esr/imgsizer/ \
        http://www.c-s.li/ports/

MAINTAINER= cs@FreeBSD.org
COMMENT=    Tool to autogenerate WIDTH and HEIGHT for IMG HTML tags

LICENSE=    BSD

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

USE_PYTHON= yes
NO_BUILD=   yes

PLIST_FILES=    bin/${PORTNAME} man/man1/imgsizer.1.gz

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

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

.include <bsd.port.mk>