ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/textproc/xmlto/Makefile
Revision: 13561
Committed: Tue Feb 26 04:24:25 2013 UTC (11 years, 2 months ago) by laffer1
File size: 2280 byte(s)
Log Message:
cleanup

File Contents

# User Rev Content
1 laffer1 13561 # $MidnightBSD: mports/textproc/xmlto/Makefile,v 1.4 2010/01/02 20:04:22 laffer1 Exp $
2 archite 5260
3     PORTNAME= xmlto
4 laffer1 8711 PORTVERSION= 0.0.21
5 archite 5260 CATEGORIES= textproc
6 laffer1 8711 MASTER_SITES= https://fedorahosted.org/releases/x/m/xmlto/
7 archite 5260
8     MAINTAINER= ports@MidnightBSD.org
9     COMMENT= Front-end to an XSL toolchain
10 crash 6680 LICENSE= gpl2
11 laffer1 9054
12 archite 5260 BUILD_DEPENDS= ${BASH_CMD}:${PORTSDIR}/shells/bash \
13     ${GETOPT_CMD}:${PORTSDIR}/misc/getopt \
14     xmllint:${PORTSDIR}/textproc/libxml2 \
15     xsltproc:${PORTSDIR}/textproc/libxslt \
16     ${XSL_DIR}:${PORTSDIR}/textproc/docbook-xsl
17     RUN_DEPENDS= ${BUILD_DEPENDS}
18    
19 laffer1 8711 OPTIONS= PASSIVETEX "Enable PassiveTeX support for DVI/PS/PDF" OFF \
20     FOP "Add dependency on FOP" OFF \
21     LIBPAPER "Add dependency on libpaper" OFF \
22     DBLATEX "Add dependency on Dblatex (EXPERIMENTAL)" OFF
23 archite 5260
24     USE_BZIP2= yes
25     GNU_CONFIGURE= yes
26     CONFIGURE_ARGS= --with-bash=${BASH_CMD} --with-getopt=${GETOPT_CMD}
27 laffer1 9054 CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd6.1
28 archite 5260
29     BASH_CMD= ${LOCALBASE}/bin/bash
30     GETOPT_CMD= ${LOCALBASE}/bin/getopt
31     XSL_DIR= ${LOCALBASE}/share/xsl/docbook
32    
33     MAN1= xmlif.1 xmlto.1
34     PORTDOCS= AUTHORS COPYING ChangeLog NEWS THANKS
35     # these two documentation files do not convey information useful for
36     # the FreeBSD port at this time:
37     # PORTDOCS+= FAQ README
38    
39     .include <bsd.port.pre.mk>
40    
41     .if defined(WITH_PASSIVETEX)
42     BUILD_DEPENDS+= ${LOCALBASE}/share/texmf-local/tex/passivetex/fotex.sty:${PORTSDIR}/print/passivetex
43     RUN_DEPENDS+= ${LOCALBASE}/share/texmf-local/tex/passivetex/fotex.sty:${PORTSDIR}/print/passivetex
44     PLIST_SUB= PASSIVETEX=""
45     .else
46     PLIST_SUB= PASSIVETEX="@comment "
47     .endif
48    
49 laffer1 8711 .if defined(WITH_FOP)
50     RUN_DEPENDS+= ${LOCALBASE}/bin/fop:${PORTSDIR}/textproc/fop
51     .endif
52    
53     .if defined(WITH_LIBPAPER)
54     RUN_DEPENDS+= ${LOCALBASE}/bin/paperconf:${PORTSDIR}/print/libpaper
55     .endif
56    
57     .if defined(WITH_DBLATEX)
58     RUN_DEPENDS+= ${LOCALBASE}/bin/dblatex:${PORTSDIR}/textproc/dblatex
59     .endif
60    
61 archite 5260 post-patch:
62 laffer1 8711 @${REINPLACE_CMD} -E -e 's,/usr/bin/(dblatex|fop|links|lynx|paperconf|w3m),${LOCALBASE}/bin/\1,g' \
63     ${WRKSRC}/xmlto.in \
64     ${WRKSRC}/format/docbook/txt
65 archite 5260 .if !defined(WITH_PASSIVETEX)
66     @${REINPLACE_CMD} -e '/format\/fo\//d' ${WRKSRC}/Makefile.in
67     .endif
68    
69     .if !defined(NOPORTDOCS)
70     post-install:
71     @${MKDIR} ${DOCSDIR}
72     cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
73     .endif
74    
75     .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.5