2008-09-19 17:19:15 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2008/09/19 21:19:15 kili Exp $
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2007-07-21 13:19:49 -04:00
|
|
|
COMMENT= lexical analyser generator for Haskell
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2007-07-21 13:19:49 -04:00
|
|
|
V= 2.1.0
|
2003-08-18 14:29:04 -04:00
|
|
|
DISTNAME= alex-${V}
|
2008-09-19 17:19:15 -04:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2003-08-18 14:29:04 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.haskell.org/alex/
|
2007-07-21 13:19:49 -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
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2004-08-10 04:23:36 -04:00
|
|
|
MODULES= lang/ghc
|
2007-07-21 13:19:49 -04:00
|
|
|
MODGHC_RUNTIME= No
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2007-07-21 13:19:49 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}dist/${V}/
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2007-07-21 13:19:49 -04:00
|
|
|
BUILD_DEPENDS+= ::textproc/docbook \
|
|
|
|
::textproc/docbook-xsl \
|
|
|
|
::textproc/libxslt
|
|
|
|
LIB_DEPENDS= gmp::devel/gmp
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2007-07-21 13:19:49 -04:00
|
|
|
SETUP_CONF_ARGS= configure -g --prefix=${PREFIX}
|
|
|
|
SETUP_CONF_ENV= HOME=${PORTHOME} ${CONFIGURE_ENV}
|
2007-08-01 17:57:37 -04:00
|
|
|
SETUP_PROG= ${WRKSRC}/Setup
|
2007-07-21 13:19:49 -04:00
|
|
|
SUBST_VARS= V
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2007-07-21 13:19:49 -04:00
|
|
|
NO_REGRESS= Yes
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2007-07-21 13:19:49 -04: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}
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2007-07-21 13:19:49 -04:00
|
|
|
post-configure:
|
2007-08-01 17:57:37 -04:00
|
|
|
@cd ${WRKSRC} && ghc --make -o ${SETUP_PROG} Setup.lhs
|
|
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
|
|
|
|
${SETUP_PROG} ${SETUP_CONF_ARGS}
|
2003-08-18 14:29:04 -04:00
|
|
|
|
2007-07-21 13:19:49 -04:00
|
|
|
do-build:
|
2007-08-01 17:57:37 -04:00
|
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${SETUP_PROG} build
|
|
|
|
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
|
2007-07-21 13:19:49 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
2007-08-01 17:57:37 -04:00
|
|
|
${SETUP_PROG} copy --destdir=${DESTDIR}
|
2007-07-21 13:19:49 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
|
2007-08-01 17:57:37 -04:00
|
|
|
cd ${WRKBUILD}/doc && umask 022 && pax -rw alex ${PREFIX}/share/doc
|
2003-08-18 14:29:04 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|