summaryrefslogtreecommitdiff
path: root/www/wml/Makefile
blob: 6c6ba7bc8f91247d0b74a42efa25bc3b5c102d74 (plain)
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
# $NetBSD: Makefile,v 1.44 2016/06/08 19:25:19 wiz Exp $

DISTNAME=	wml-2.0.11
PKGREVISION=	4
CATEGORIES=	www perl5
MASTER_SITES=	http://thewml.org/distrib/

MAINTAINER=	kim@tac.nyc.ny.us
HOMEPAGE=	http://thewml.org/
COMMENT=	Web Meta Language

DEPENDS+=	p5-Bit-Vector>=5.2:../../devel/p5-Bit-Vector
DEPENDS+=	p5-Image-Size>=2.6:../../graphics/p5-Image-Size
DEPENDS+=	p5-Term-ReadKey>=2.11:../../devel/p5-Term-ReadKey
#DEPENDS+=	tidy-[0-9]*:../../www/tidy
BUILD_DEPENDS+=	lynx-[0-9]*:../../www/lynx

.include "../../mk/bsd.prefs.mk"

USE_TOOLS+=	automake bash
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+= --with-perl=${PERL5:Q} \
		--with-openworld \
		--with-tidy=${LOCALBASE}/bin/tidy
CONFIG_SHELL=	${TOOLS_PATH.bash}
TEST_TARGET=	test

PERL_ARCHNAME_cmd=	eval `${PERL5} -V:archname 2>/dev/null`; \
			${ECHO} $${archname}
PLIST_SUBST+=		PERL_ARCHNAME=${PERL_ARCHNAME_cmd:sh}

pre-configure:
	for i in \
	    wml_aux/iselect \
	    wml_backend/p3_eperl \
	    wml_backend/p4_gm4 \
	    wml_common/gd \
	    ; \
	do \
	    cd ${WRKSRC}/$$i && autoreconf --force || exit 1; \
	done

.include "../../devel/ncurses/buildlink3.mk"
.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"