2011-06-30 17:30:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2011/06/30 21:30:20 kili Exp $
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2010-04-22 17:48:30 -04:00
|
|
|
COMMENT = lexical analyser generator for Haskell
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2011-04-04 05:54:54 -04:00
|
|
|
DISTNAME = alex-2.3.5
|
2011-06-30 17:30:20 -04:00
|
|
|
REVISION = 1
|
2010-04-22 17:48:30 -04:00
|
|
|
CATEGORIES = devel
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2010-04-22 17:48:30 -04:00
|
|
|
HOMEPAGE = http://www.haskell.org/alex/
|
2007-07-21 13:19:49 -04:00
|
|
|
|
2010-04-22 17:48:30 -04:00
|
|
|
# BSD3
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2007-07-21 13:19:49 -04:00
|
|
|
|
2010-07-17 09:54:30 -04:00
|
|
|
WANTLIB = c gmp m pthread util
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2010-04-22 17:48:30 -04:00
|
|
|
MODULES = lang/ghc converters/libiconv
|
|
|
|
MODGHC_BUILD = cabal hackage nort
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2010-04-22 17:48:30 -04: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 14:29:04 -04:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
BUILD_DEPENDS += textproc/docbook \
|
|
|
|
textproc/docbook-xsl \
|
|
|
|
textproc/libxslt
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
LIB_DEPENDS = devel/gmp
|
2010-06-15 13:59:24 -04:00
|
|
|
|
2010-08-21 16:40:53 -04:00
|
|
|
post-extract:
|
|
|
|
@chmod -R a+r ${WRKSRC}
|
|
|
|
|
2010-04-22 17:48:30 -04:00
|
|
|
post-build:
|
2007-08-01 17:57:37 -04:00
|
|
|
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
|
2007-07-21 13:19:49 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
|
2007-08-01 17:57:37 -04:00
|
|
|
cd ${WRKBUILD}/doc && umask 022 && pax -rw alex ${PREFIX}/share/doc
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2011-04-04 05:54:54 -04:00
|
|
|
# Skip the tokens_bytestring.x test, it's missing from the distfile.
|
2010-04-22 17:48:30 -04:00
|
|
|
do-regress:
|
2011-04-04 05:54:54 -04: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 17:48:30 -04:00
|
|
|
|
2003-08-18 14:29:04 -04:00
|
|
|
.include <bsd.port.mk>
|