2011-06-30 17:30:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2011/06/30 21:30:20 kili Exp $
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2010-04-22 17:48:51 -04:00
|
|
|
COMMENT= parser generator for Haskell
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2011-04-04 05:55:13 -04:00
|
|
|
DISTNAME= happy-1.18.6
|
2011-06-30 17:30:20 -04:00
|
|
|
REVISION= 2
|
2007-07-21 13:20:57 -04:00
|
|
|
CATEGORIES= devel
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2007-07-22 08:24:46 -04:00
|
|
|
HOMEPAGE= http://www.haskell.org/happy/
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2010-04-22 17:48:51 -04:00
|
|
|
# BSD3
|
2007-07-21 13:20:57 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-09-12 07:35:17 -04:00
|
|
|
WANTLIB= c gmp m
|
2007-07-21 13:20:57 -04:00
|
|
|
|
2010-04-22 17:48:51 -04:00
|
|
|
MODULES= lang/ghc converters/libiconv
|
|
|
|
MODGHC_BUILD= cabal hackage nort
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2011-04-23 10:32:50 -04:00
|
|
|
BUILD_DEPENDS+= devel/hs-mtl \
|
|
|
|
textproc/docbook \
|
2010-11-15 14:45:56 -05:00
|
|
|
textproc/docbook-xsl \
|
|
|
|
textproc/libxslt
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
LIB_DEPENDS = devel/gmp
|
2010-07-17 09:54:30 -04:00
|
|
|
|
2007-07-21 13:20:57 -04: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-30 21:19:16 -04:00
|
|
|
|
2010-04-22 17:48:51 -04:00
|
|
|
post-build:
|
2007-08-01 17:59:55 -04:00
|
|
|
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} \
|
2007-07-21 13:20:57 -04:00
|
|
|
${MAKE_PROGRAM} html
|
|
|
|
|
2003-07-23 15:09:34 -04:00
|
|
|
post-install:
|
2007-07-21 13:20:57 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
|
2007-08-01 17:59:55 -04:00
|
|
|
cd ${WRKBUILD}/doc && umask 022 && pax -rw happy ${PREFIX}/share/doc
|
2003-07-30 21:19:16 -04:00
|
|
|
|
2007-07-21 13:20:57 -04:00
|
|
|
do-regress:
|
2007-08-01 17:59:55 -04:00
|
|
|
@cd ${WRKBUILD}/tests && exec ${SETENV} ${MAKE_ENV} \
|
2010-04-22 17:48:51 -04:00
|
|
|
${MAKE_PROGRAM} HAPPY=${WRKBUILD}/dist/build/happy/happy \
|
|
|
|
TEST_HAPPY_OPTS="-t ${WRKBUILD} --strict"
|
2003-07-23 15:09:34 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|