2012-10-11 13:31:28 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2012/10/11 13:31:29 dcoppa Exp $
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2010-04-22 21:48:51 +00:00
|
|
|
COMMENT= parser generator for Haskell
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2012-09-02 20:10:36 +00:00
|
|
|
DISTNAME= happy-1.18.9
|
2012-10-11 13:31:28 +00:00
|
|
|
REVISION= 0
|
2007-07-21 17:20:57 +00:00
|
|
|
CATEGORIES= devel
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2007-07-22 12:24:46 +00:00
|
|
|
HOMEPAGE= http://www.haskell.org/happy/
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2010-04-22 21:48:51 +00:00
|
|
|
# BSD3
|
2007-07-21 17:20:57 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2012-10-11 13:31:28 +00:00
|
|
|
WANTLIB= c m
|
2007-07-21 17:20:57 +00:00
|
|
|
|
2010-04-22 21:48:51 +00:00
|
|
|
MODULES= lang/ghc converters/libiconv
|
|
|
|
MODGHC_BUILD= cabal hackage nort
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2012-09-02 20:10:36 +00:00
|
|
|
BUILD_DEPENDS+= devel/hs-mtl>=1.0 \
|
2012-09-27 17:26:05 +00:00
|
|
|
textproc/docbook-xsl
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2007-07-21 17:20:57 +00:00
|
|
|
# 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}
|
2003-07-31 01:19:16 +00:00
|
|
|
|
2010-04-22 21:48:51 +00:00
|
|
|
post-build:
|
2007-08-01 21:59:55 +00:00
|
|
|
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} \
|
2007-07-21 17:20:57 +00:00
|
|
|
${MAKE_PROGRAM} html
|
|
|
|
|
2003-07-23 19:09:34 +00:00
|
|
|
post-install:
|
2007-07-21 17:20:57 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
|
2007-08-01 21:59:55 +00:00
|
|
|
cd ${WRKBUILD}/doc && umask 022 && pax -rw happy ${PREFIX}/share/doc
|
2003-07-31 01:19:16 +00:00
|
|
|
|
2007-07-21 17:20:57 +00:00
|
|
|
do-regress:
|
2007-08-01 21:59:55 +00:00
|
|
|
@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"
|
2003-07-23 19:09:34 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|