6acef50409
Problem noticed by kurt@ and steven@, patch verified by steven@ Add some WRKSRC/WRKBUILD tweask (though yet pointless, since SEPARATE_BUILD doesn't work for GHC-related ports). No change for i386, and it this version never built on amd64 after the GHC update, so no pkg bump required.
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.9 2007/08/01 21:57:37 kili Exp $
|
|
|
|
COMMENT= lexical analyser generator for Haskell
|
|
|
|
V= 2.1.0
|
|
DISTNAME= alex-${V}
|
|
CATEGORIES= devel
|
|
|
|
HOMEPAGE= http://www.haskell.org/alex/
|
|
|
|
# BSD style w/o advertising clause
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MAINTAINER= Matthias Kilian <kili@openbsd.org>
|
|
|
|
WANTLIB= c m
|
|
|
|
MODULES= lang/ghc
|
|
MODGHC_RUNTIME= No
|
|
|
|
MASTER_SITES= ${HOMEPAGE}dist/${V}/
|
|
|
|
BUILD_DEPENDS+= ::textproc/docbook \
|
|
::textproc/docbook-xsl \
|
|
::textproc/libxslt
|
|
LIB_DEPENDS= gmp::devel/gmp
|
|
|
|
SETUP_CONF_ARGS= configure -g --prefix=${PREFIX}
|
|
SETUP_CONF_ENV= HOME=${PORTHOME} ${CONFIGURE_ENV}
|
|
SETUP_PROG= ${WRKSRC}/Setup
|
|
SUBST_VARS= V
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
# Required for building the documentation:
|
|
USE_GMAKE= Yes
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
|
AUTOCONF_VERSION= 2.61
|
|
AUTOCONF_DIR= ${WRKSRC}/doc
|
|
WRKCONF= ${AUTOCONF_DIR}
|
|
|
|
post-configure:
|
|
@cd ${WRKSRC} && ghc --make -o ${SETUP_PROG} Setup.lhs
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
|
|
${SETUP_PROG} ${SETUP_CONF_ARGS}
|
|
|
|
do-build:
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${SETUP_PROG} build
|
|
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
|
|
|
|
do-install:
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
|
${SETUP_PROG} copy --destdir=${DESTDIR}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
|
|
cd ${WRKBUILD}/doc && umask 022 && pax -rw alex ${PREFIX}/share/doc
|
|
|
|
.include <bsd.port.mk>
|