49 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.38 2019/10/01 17:40:30 kili Exp $
2010-04-22 21:48:30 +00:00
COMMENT = lexical analyser generator for Haskell
# Dependency of meta/haskell-platform.
# Please do *not* update without thinking.
PORTROACH = ignore:1
2017-11-07 21:57:15 +00:00
DISTNAME = alex-3.1.7
2010-04-22 21:48:30 +00:00
CATEGORIES = devel
REVISION = 0
2010-04-22 21:48:30 +00:00
HOMEPAGE = http://www.haskell.org/alex/
2010-04-22 21:48:30 +00:00
# BSD3
PERMIT_PACKAGE = Yes
WANTLIB = c charset ffi gmp iconv m pthread util
2016-09-13 14:40:29 +00:00
MODULES = lang/ghc
2010-04-22 21:48:30 +00:00
MODGHC_BUILD = cabal hackage nort
LIB_DEPENDS = converters/libiconv \
devel/gmp \
devel/libffi
2016-09-13 14:40:29 +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}
2012-09-02 20:09:08 +00:00
BUILD_DEPENDS += devel/hs-QuickCheck>=2 \
textproc/docbook-xsl
2010-04-22 21:48:30 +00:00
post-build:
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
cd ${WRKBUILD}/doc && umask 022 && pax -rw alex ${PREFIX}/share/doc
2013-03-11 10:50:00 +00:00
do-test:
2011-04-04 09:54:54 +00:00
cd ${WRKBUILD}/tests && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
2012-12-02 20:29:39 +00:00
all
2010-04-22 21:48:30 +00:00
.include <bsd.port.mk>