2008-09-19 17:19:15 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.12 2008/09/19 21:23:19 kili Exp $
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2007-07-21 13:20:57 -04:00
|
|
|
COMMENT= parser generator for the functional language Haskell
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2007-07-21 13:20:57 -04:00
|
|
|
V= 1.16
|
|
|
|
DISTNAME= happy-${V}
|
2008-09-19 17:19:15 -04:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
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
|
|
|
|
2007-07-21 13:20:57 -04:00
|
|
|
# BSD style w/o advertising clause
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
WANTLIB= c m
|
|
|
|
|
|
|
|
MODULES= lang/ghc
|
|
|
|
MODGHC_RUNTIME= No
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2007-07-22 08:24:46 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}dist/${V}/
|
2003-07-23 15:09:34 -04:00
|
|
|
|
2007-07-21 13:20:57 -04:00
|
|
|
BUILD_DEPENDS+= ::textproc/docbook \
|
|
|
|
::textproc/docbook-xsl \
|
|
|
|
::textproc/libxslt
|
|
|
|
LIB_DEPENDS= gmp::devel/gmp
|
2003-07-30 21:19:16 -04:00
|
|
|
|
2007-07-21 13:20:57 -04:00
|
|
|
SETUP_CONF_ARGS= configure -g --prefix=${PREFIX}
|
|
|
|
SETUP_CONF_ENV= HOME=${PORTHOME} ${CONFIGURE_ENV}
|
2007-08-01 17:59:55 -04:00
|
|
|
SETUP_PROG= ${WRKSRC}/Setup
|
2007-07-21 13:20:57 -04:00
|
|
|
SUBST_VARS= V
|
2003-07-23 15:09:34 -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
|
|
|
|
2007-07-21 13:20:57 -04:00
|
|
|
post-configure:
|
2007-08-01 17:59:55 -04:00
|
|
|
@cd ${WRKSRC} && ghc --make -o ${SETUP_PROG} Setup.lhs
|
|
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
|
|
|
|
${SETUP_PROG} ${SETUP_CONF_ARGS}
|
2003-07-30 21:19:16 -04:00
|
|
|
|
2007-07-21 13:20:57 -04:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
2007-08-01 17:59:55 -04:00
|
|
|
${SETUP_PROG} build
|
|
|
|
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} \
|
2007-07-21 13:20:57 -04:00
|
|
|
${MAKE_PROGRAM} html
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
2007-08-01 17:59:55 -04:00
|
|
|
${SETUP_PROG} copy --destdir=${DESTDIR}
|
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} \
|
2007-07-21 13:20:57 -04:00
|
|
|
gmake HAPPY=${WRKBUILD}/dist/build/happy/happy \
|
|
|
|
TEST_HAPPY_OPTS="-t ${WRKBUILD}/templates --strict"
|
2003-07-23 15:09:34 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|