openbsd-ports/textproc/xml2rfc/Makefile

58 lines
1.3 KiB
Makefile
Raw Normal View History

2001-06-29 12:08:11 -04:00
# $OpenBSD: Makefile,v 1.16 2001/06/29 16:08:11 jakob Exp $
2001-03-30 09:49:37 -05:00
COMMENT= convert memos written in XML to the RFC format
1999-07-20 15:46:28 -04:00
2001-06-29 12:08:11 -04:00
VERSION= 1.4
2001-03-08 14:32:22 -05:00
DISTNAME= xml2rfc.${VERSION}
PKGNAME= xml2rfc-${VERSION}
1999-07-20 15:46:28 -04:00
CATEGORIES= textproc
2001-03-30 09:49:37 -05:00
NEED_VERSION= 1.363
MASTER_SITES= http://xml.resource.org/authoring/
1999-07-20 15:46:28 -04:00
2001-03-30 09:49:37 -05:00
HOMEPAGE= http://xml.resource.org/
2000-10-04 17:53:59 -04:00
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
1999-07-20 15:46:28 -04:00
2000-03-05 13:30:21 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 03:41:07 -05:00
WRKDIST= ${WRKDIR}
1999-07-20 15:46:28 -04:00
DOCS= README.xml README.txt \
rfc2629-author.xml rfc2629-author.txt \
rfc2629.dtd
2001-03-30 10:53:13 -05:00
RUN_DEPENDS= tclsh8.3::lang/tcl/8.3 \
${PREFIX}/lib/tcl8.3/TclXML::textproc/TclXML \
FLAVORS= no_x11
FLAVOR?=
.if ${FLAVOR:L} == "no_x11"
USE_X11= No
.else
USE_X11= Yes
RUN_DEPENDS+= wish8.3::x11/tk/8.3
.endif
do-build:
.if ${FLAVOR:L} == "no_x11"
sed s,y0y0y0,${PREFIX}, ${FILESDIR}/xml2rfc.no_x11 >${WRKSRC}/xml2rfc
.else
sed s,y0y0y0,${PREFIX}, ${FILESDIR}/xml2rfc >${WRKSRC}/xml2rfc
.endif
1999-07-20 15:46:28 -04:00
do-install:
2001-03-30 10:53:13 -05:00
@${INSTALL_SCRIPT} ${WRKSRC}/xml2rfc ${PREFIX}/bin/xml2rfc
@${INSTALL_DATA_DIR} ${PREFIX}/share/xml2rfc
@${INSTALL_DATA} ${WRKSRC}/xml2rfc.tcl ${PREFIX}/share/xml2rfc
1999-07-20 15:46:28 -04:00
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xml2rfc
.for file in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xml2rfc
.endfor
.include <bsd.port.mk>