1997-07-18 17:46:19 +02:00
|
|
|
# New ports collection makefile for: sgmlformat
|
|
|
|
# Date created: July 16, 1997
|
|
|
|
# Whom: jfieber
|
|
|
|
#
|
1999-08-31 04:11:56 +02:00
|
|
|
# $FreeBSD$
|
1997-07-18 17:46:19 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 23:54:47 +02:00
|
|
|
PORTNAME= sgmlformat
|
2001-02-05 17:35:26 +01:00
|
|
|
PORTVERSION= 1.7
|
2002-01-16 01:44:36 +01:00
|
|
|
PORTREVISION= 2
|
1997-07-18 17:46:19 +02:00
|
|
|
CATEGORIES= textproc print
|
2006-02-20 02:28:59 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= kuriyama
|
|
|
|
#MASTER_SITES= http://fallout.campusview.indiana.edu/ports/distfiles/
|
1997-07-18 17:46:19 +02:00
|
|
|
|
2001-01-29 04:45:45 +01:00
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
2003-02-22 08:48:51 +01:00
|
|
|
COMMENT= Generates groff and HTML from linuxdoc and docbook SGML documents
|
1997-07-18 17:46:19 +02:00
|
|
|
|
|
|
|
# There are two ports that satisfy the nsgmls requirement.
|
|
|
|
# Jade is preferred, but it currently doesn't compile on 2.1.x
|
|
|
|
# system, so use sp in that case.
|
1998-11-11 06:37:39 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-04-12 05:26:56 +02:00
|
|
|
.if ${MACHINE_ARCH} != "i386"
|
2001-03-22 23:50:22 +01:00
|
|
|
WITH_OPENJADE= yes
|
|
|
|
.endif
|
|
|
|
|
1997-07-18 17:46:19 +02:00
|
|
|
.if ${OSVERSION} < 220000
|
|
|
|
RUN_DEPENDS= nsgmls:${PORTSDIR}/textproc/sp
|
2001-03-22 23:50:22 +01:00
|
|
|
.elif defined(WITH_OPENJADE)
|
|
|
|
RUN_DEPENDS= onsgmls:${PORTSDIR}/textproc/openjade
|
1997-07-18 17:46:19 +02:00
|
|
|
.else
|
|
|
|
RUN_DEPENDS= nsgmls:${PORTSDIR}/textproc/jade
|
|
|
|
.endif
|
|
|
|
RUN_DEPENDS+= ${PREFIX}/share/sgml/linuxdoc:${PORTSDIR}/textproc/linuxdoc \
|
2000-10-16 23:33:01 +02:00
|
|
|
${PREFIX}/share/sgml/docbook:${PORTSDIR}/textproc/docbook
|
1998-09-15 23:18:17 +02:00
|
|
|
|
2003-05-07 09:09:34 +02:00
|
|
|
USE_REINPLACE= yes
|
2003-05-07 09:13:28 +02:00
|
|
|
USE_PERL5_RUN= yes
|
1997-07-18 17:46:19 +02:00
|
|
|
|
1998-10-20 04:02:08 +02:00
|
|
|
MAN1= instant.1 sgmlfmt.1
|
|
|
|
MAN5= transpec.5
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
|
2002-01-16 01:44:36 +01:00
|
|
|
.if defined(WITH_OPENJADE)
|
|
|
|
post-patch:
|
2003-05-07 09:09:34 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,nsgmls,onsgmls,g' ${WRKSRC}/sgmlfmt/sgmlfmt.pl
|
|
|
|
@${REINPLACE_CMD} -e 's,nsgmls,onsgmls,g' ${WRKSRC}/instant/traninit.c
|
2002-01-16 01:44:36 +01:00
|
|
|
.endif
|
|
|
|
|
1997-07-18 17:46:19 +02:00
|
|
|
post-install:
|
2000-10-08 12:23:48 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1997-07-18 17:46:19 +02:00
|
|
|
|
1998-11-11 06:37:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|