aboutsummaryrefslogtreecommitdiffstats
path: root/www/wml/Makefile
blob: 26b82acdde63e0495e937f13b33577287a1926c1 (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
# Created by: Ralf S. Engelschall <rse@engelschall.com>
# $FreeBSD$

PORTNAME=   wml
PORTVERSION=    2.0.12
PORTREVISION=   4
PORTEPOCH=  1
CATEGORIES= www lang
MASTER_SITES=   ${MASTER_SITE_BERLIOS}
MASTER_SITE_SUBDIR=thewml

MAINTAINER= rodrigo@FreeBSD.org
COMMENT=    Website META Language, webdesign toolkit for HTML generation

LIB_DEPENDS=    libpng15.so:${PORTSDIR}/graphics/png
RUN_DEPENDS=    \
        p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
        p5-Bit-Vector>=5.2:${PORTSDIR}/math/p5-Bit-Vector \
        p5-File-PathConvert>0:${PORTSDIR}/devel/p5-File-PathConvert \
        p5-Image-Size>=2.6:${PORTSDIR}/graphics/p5-Image-Size \
        p5-Term-ReadKey>=2.11:${PORTSDIR}/devel/p5-Term-ReadKey \
        p5-HTML-Clean>0:${PORTSDIR}/www/p5-HTML-Clean \
        p5-GD>0:${PORTSDIR}/graphics/p5-GD
BUILD_DEPENDS=  lynx:${PORTSDIR}/www/lynx \
        ${RUN_DEPENDS}

GNU_CONFIGURE=  yes
USES=       gettext perl5 gmake
USE_PERL5=  run build patch
CONFIGURE_ARGS= --with-perl=${PERL5} --with-catdir=man \
        --prefix=${PREFIX}

.include <bsd.port.pre.mk>

post-patch:
    @${PERL5} -pi -e 's!^(\s+have_\S+)=\S+!\1=1!' \
        ${WRKSRC}/wml_common/Makefile.in

do-configure:
    @[ -f ${CONFIGURE_COOKIE}] || (cd ${WRKSRC} && ./configure ${CONFIGURE_ARGS})

post-build:
    @${ECHO_MSG} "===>  Use 'make test' to run a quick test suite."

test:
    @cd ${WRKSRC} && ${GMAKE} test

.include <bsd.port.post.mk>