50 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.36 2019/09/30 12:51:25 kili Exp $
2010-04-22 21:48:51 +00:00
COMMENT= parser generator for Haskell
# Dependency of meta/haskell-platform.
# Please do *not* update without thinking.
PORTROACH = ignore:1
2015-09-19 07:50:58 +00:00
DISTNAME= happy-1.19.5
REVISION= 1
CATEGORIES= devel
HOMEPAGE= http://www.haskell.org/happy/
2010-04-22 21:48:51 +00:00
# BSD3
PERMIT_PACKAGE= Yes
WANTLIB= c charset ffi gmp iconv m pthread
2016-09-13 14:40:29 +00:00
MODULES= lang/ghc
2010-04-22 21:48:51 +00:00
MODGHC_BUILD= cabal hackage nort
LIB_DEPENDS= converters/libiconv \
devel/gmp \
devel/libffi
BUILD_DEPENDS+= textproc/docbook-xsl
# Required for building the documentation and for the regression tests:
USE_GMAKE= Yes
CONFIGURE_STYLE= autoconf no-autoheader
AUTOCONF_VERSION= 2.61
AUTOCONF_DIR= ${WRKSRC}/doc
WRKCONF= ${AUTOCONF_DIR}
2010-04-22 21:48:51 +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 happy ${PREFIX}/share/doc
2013-03-11 10:50:00 +00:00
do-test:
@cd ${WRKBUILD}/tests && exec ${SETENV} ${MAKE_ENV} \
2010-04-22 21:48:51 +00:00
${MAKE_PROGRAM} HAPPY=${WRKBUILD}/dist/build/happy/happy \
TEST_HAPPY_OPTS="-t ${WRKBUILD} --strict"
.include <bsd.port.mk>