mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# New ports collection makefile for: alex
|
|
# Date created: 29 January 2003
|
|
# Whom: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= alex
|
|
PORTVERSION= 2.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel haskell
|
|
MASTER_SITES= http://www.haskell.org/alex/dist/
|
|
PKGNAMEPREFIX= hs-
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
|
COMMENT= Alex is a tool for generating lexical analysers in Haskell
|
|
|
|
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
|
.if !defined(NOPORTDOCS)
|
|
BUILD_DEPENDS+= jade:${PORTSDIR}/textproc/jade \
|
|
jadetex:${PORTSDIR}/print/jadetex \
|
|
dvips:${PORTSDIR}/print/dvipsk-tetex \
|
|
${LOCALBASE}/share/sgml/docbook/3.1/docbook.dtd:${PORTSDIR}/textproc/docbook-310 \
|
|
${LOCALBASE}/share/sgml/docbook/dsssl:${PORTSDIR}/textproc/dsssl-docbook-modular
|
|
.endif
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
PLIST_SUB= PORTVERSION="${PORTVERSION}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} > 503001
|
|
BROKEN= "Does not compile on FreeBSD >= 5.x"
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-build:
|
|
${GMAKE} -C ${WRKSRC}/alex/doc ps
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${FIND} ${WRKSRC}/alex/examples -type f -exec ${INSTALL_DATA} \{\} ${EXAMPLESDIR} \;
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/alex/doc/alex.ps ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|