2012-09-27 17:26:05 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2012/09/27 17:26:05 ajacoutot Exp $
|
2003-08-18 18:29:04 +00:00
|
|
|
|
2010-04-22 21:48:30 +00:00
|
|
|
COMMENT = lexical analyser generator for Haskell
|
2003-08-18 18:29:04 +00:00
|
|
|
|
2012-09-02 20:09:08 +00:00
|
|
|
DISTNAME = alex-3.0.1
|
2010-04-22 21:48:30 +00:00
|
|
|
CATEGORIES = devel
|
2003-08-18 18:29:04 +00:00
|
|
|
|
2010-04-22 21:48:30 +00:00
|
|
|
HOMEPAGE = http://www.haskell.org/alex/
|
2007-07-21 17:19:49 +00:00
|
|
|
|
2010-04-22 21:48:30 +00:00
|
|
|
# BSD3
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2007-07-21 17:19:49 +00:00
|
|
|
|
2010-07-17 13:54:30 +00:00
|
|
|
WANTLIB = c gmp m pthread util
|
2003-08-18 18:29:04 +00:00
|
|
|
|
2010-04-22 21:48:30 +00:00
|
|
|
MODULES = lang/ghc converters/libiconv
|
|
|
|
MODGHC_BUILD = cabal hackage nort
|
2003-08-18 18:29:04 +00:00
|
|
|
|
2010-04-22 21:48:30 +00:00
|
|
|
# Required for building the documentation:
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
CONFIGURE_STYLE = autoconf no-autoheader
|
|
|
|
AUTOCONF_VERSION = 2.61
|
|
|
|
AUTOCONF_DIR = ${WRKSRC}/doc
|
|
|
|
WRKCONF = ${AUTOCONF_DIR}
|
2003-08-18 18:29:04 +00:00
|
|
|
|
2012-09-02 20:09:08 +00:00
|
|
|
BUILD_DEPENDS += devel/hs-QuickCheck>=2 \
|
2012-09-27 17:26:05 +00:00
|
|
|
textproc/docbook-xsl
|
2003-08-18 18:29:04 +00:00
|
|
|
|
2010-11-15 19:45:56 +00:00
|
|
|
LIB_DEPENDS = devel/gmp
|
2010-06-15 17:59:24 +00:00
|
|
|
|
2010-08-21 20:40:53 +00:00
|
|
|
post-extract:
|
|
|
|
@chmod -R a+r ${WRKSRC}
|
|
|
|
|
2010-04-22 21:48:30 +00:00
|
|
|
post-build:
|
2007-08-01 21:57:37 +00:00
|
|
|
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
|
2007-07-21 17:19:49 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
|
2007-08-01 21:57:37 +00:00
|
|
|
cd ${WRKBUILD}/doc && umask 022 && pax -rw alex ${PREFIX}/share/doc
|
2003-08-18 18:29:04 +00:00
|
|
|
|
2011-04-04 09:54:54 +00:00
|
|
|
# Skip the tokens_bytestring.x test, it's missing from the distfile.
|
2010-04-22 21:48:30 +00:00
|
|
|
do-regress:
|
2011-04-04 09:54:54 +00:00
|
|
|
cd ${WRKBUILD}/tests && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
|
|
all TESTS="simple.x tokens.x tokens_posn.x tokens_gscan.x"
|
2010-04-22 21:48:30 +00:00
|
|
|
|
2003-08-18 18:29:04 +00:00
|
|
|
.include <bsd.port.mk>
|