mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
109269205e
- Update Haskell Platform to version 2013.2.0.0 Please note that port revisions for all the Haskell ports without version changes are bumped. Some highlights of the update: - Fix PDF generation for pandoc [1] - From now on, PREFIX/{lib,share,share/doc}/cabal/ghc-GHC_VERSION are used for hs- ports (Cabal packages) as prefixes to avoid problems when upgrading with portmaster(8) [2] - Experimental support for LLVM-based code generation (disabled by default) - Many simplifications, refactoring in bsd.cabal.mk New ports (11): devel/hs-asn1-types 0.1.3 devel/hs-data-default-class 0.0.1 devel/hs-data-default-instances-base 0.0.1 devel/hs-data-default-instances-containers 0.0.1 devel/hs-data-default-instances-dlist 0.0.1 devel/hs-data-default-instances-old-locale 0.0.1 devel/hs-extensible-exceptions 0.1.1.4 devel/hs-mmorph 1.0.0 devel/hs-quickcheck-io 0.1.0 x11-toolkits/hs-GLURaw 1.3.0.0 x11-toolkits/hs-OpenGLRaw 1.3.0.0 Updated ports (104): archivers/hs-zlib 0.5.4.0_1 --> 0.5.4.1 databases/hs-persistent 1.1.5.1 --> 1.2.0.1 databases/hs-persistent-sqlite 1.1.5 --> 1.2.0 databases/hs-persistent-template 1.1.2.4 --> 1.2.0 devel/hs-HUnit 1.2.5.1_1 --> 1.2.5.2 devel/hs-IORefCAS 0.2_3 --> 0.2.0.1 devel/hs-MonadRandom 0.1.8 --> 0.1.9 devel/hs-QuickCheck 2.5.1.1_1 --> 2.6 devel/hs-abstract-deque 0.1.6_1 --> 0.2 devel/hs-alex 3.0.2_1 --> 3.0.5 devel/hs-async 2.0.1.3_1 --> 2.0.1.4 devel/hs-basic-prelude 0.3.4.0 --> 0.3.5.0 devel/hs-blaze-builder 0.3.1.0_4 --> 0.3.1.1 devel/hs-byteorder 1.0.3_4 --> 1.0.4 devel/hs-cabal-install 0.14.0_4 --> 1.16.0.2 devel/hs-classy-prelude 0.5.3 --> 0.5.7 devel/hs-cmdargs 0.10.2 --> 0.10.3 devel/hs-conduit 1.0.2 --> 1.0.5 devel/hs-data-default 0.5.0_1 --> 0.5.3 devel/hs-fsnotify 0.0.6 --> 0.0.11 devel/hs-generic-deriving 1.4.0 --> 1.5.0 devel/hs-git-annex 4.20130323_1 --> 4.20130601 devel/hs-haddock 2.11.0_1 --> 2.13.2 devel/hs-hashable 1.2.0.5 --> 1.1.2.5,1 devel/hs-hlint 1.8.43 --> 1.8.45 devel/hs-hspec 1.4.4 --> 1.5.4 devel/hs-hspec-expectations 0.3.0.3_1 --> 0.3.2 devel/hs-largeword 1.0.4 --> 1.0.5 devel/hs-lens 3.8.7.3 --> 3.9.0.2 devel/hs-lifted-base 0.2.0.2 --> 0.2.0.5 devel/hs-monad-control 0.3.1.4_1 --> 0.3.2.1 devel/hs-monad-logger 0.3.0.1 --> 0.3.1.1 devel/hs-monad-par 0.3.4.1 --> 0.3.4.2 devel/hs-pool-conduit 0.1.1_1 --> 0.1.2 devel/hs-profunctors 3.3 --> 3.3.0.1 devel/hs-reflection 1.1.7 --> 1.3.2 devel/hs-resourcet 0.4.5 --> 0.4.7.1 devel/hs-show 0.5 --> 0.6 devel/hs-split 0.2.1.1_1 --> 0.2.2 devel/hs-stm 2.4_1 --> 2.4.2 devel/hs-syb 0.3.7_1 --> 0.4.0 devel/hs-tagged 0.4.4_1 --> 0.6 devel/hs-text 0.11.2.3_1 --> 0.11.3.1 devel/hs-unix-compat 0.4.1.0 --> 0.4.1.1 devel/hs-unix-time 0.1.5 --> 0.1.8 devel/hs-unordered-containers 0.2.3.0 --> 0.2.3.1 devel/hs-utility-ht 0.0.8_3 --> 0.0.9 devel/hs-uuagc 0.9.42.2_3 --> 0.9.42.3 devel/hs-uuid 1.2.9 --> 1.2.13 devel/hs-void 0.5.11 --> 0.6 math/hs-NumInstances 1.2 --> 1.3 math/hs-comonad-transformers 3.0.1_1 --> 3.0.2 math/hs-semigroups 0.9 --> 0.9.1 math/hs-statistics 0.10.2.0_2 --> 0.10.3.1 net/hs-network 2.3.1.0_1 --> 2.4.1.2 net/hs-publicsuffixlist 0.0.3 --> 0.1 net/hs-socks 0.5.0 --> 0.5.1 security/hs-certificate 1.3.5_1 --> 1.3.7 security/hs-cipher-aes 0.1.7 --> 0.1.8 security/hs-clientsession 0.8.1_1 --> 0.9 security/hs-crypto-api 0.11 --> 0.12.1 security/hs-crypto-conduit 0.5.0 --> 0.5.2 security/hs-crypto-pubkey 0.1.2_1 --> 0.1.3 security/hs-crypto-pubkey-types 0.2.0_1 --> 0.3.2 security/hs-cryptocipher 0.4.0_1 --> 0.5.0 security/hs-cryptohash 0.8.3_1 --> 0.9.0 security/hs-skein 0.1.0.12 --> 1.0.3 textproc/hs-HaXml 1.23.3_2 --> 1.24 textproc/hs-attoparsec-conduit 1.0.0 --> 1.0.1 textproc/hs-blaze-html 0.6.0.0 --> 0.6.1.1 textproc/hs-blaze-markup 0.5.1.4 --> 0.5.1.5 textproc/hs-case-insensitive 1.0 --> 1.0.0.2 textproc/hs-highlighting-kate 0.5.3.8 --> 0.5.3.9 textproc/hs-hs-bibutils 4.17 --> 5.0 textproc/hs-polyparse 1.8_3 --> 1.9 textproc/hs-texmath 0.6.1.3 --> 0.6.1.5 textproc/hs-xml 1.3.12_4 --> 1.3.13 textproc/hs-yaml 0.8.2.3 --> 0.8.2.4 www/hs-HTTP 4000.2.5_1 --> 4000.2.8 www/hs-cgi 3001.1.7.4_6,1 --> 3001.1.7.5,1 www/hs-hamlet 1.1.6.3 --> 1.1.7.1 www/hs-happstack-server 7.1.7 --> 7.1.7.1 www/hs-heist 0.11.1 --> 0.12.0 www/hs-http-conduit 1.9.0 --> 1.9.3 www/hs-http-reverse-proxy 0.1.1.3 --> 0.1.1.6 www/hs-shakespeare 1.0.3.1 --> 1.0.5 www/hs-shakespeare-css 1.0.3 --> 1.0.5.1 www/hs-shakespeare-js 1.1.2.1 --> 1.1.4 www/hs-snap 0.11.2 --> 0.12.0 www/hs-wai-extra 1.3.2.4 --> 1.3.4 www/hs-wai-test 1.3.0.4 --> 1.3.1 www/hs-warp 1.3.7.4 --> 1.3.8.1 www/hs-yesod 1.1.9.2 --> 1.2.0.1 www/hs-yesod-auth 1.1.5.3 --> 1.2.0 www/hs-yesod-core 1.1.8.2 --> 1.2.0.4 www/hs-yesod-form 1.2.1.3 --> 1.3.0 www/hs-yesod-persistent 1.1.0.1_1 --> 1.2.0 www/hs-yesod-platform 1.1.8 --> 1.2.0.1 www/hs-yesod-routes 1.1.2 --> 1.2.0 www/hs-yesod-static 1.1.2.2 --> 1.2.0 www/hs-yesod-test 0.3.5 --> 1.2.0 x11-toolkits/hs-GLUT 2.1.2.1_7,1 --> 2.4.0.0,1 x11-toolkits/hs-OpenGL 2.2.3.1_4,1 --> 2.8.0.0,1 x11/hs-xmobar 0.16_2 --> 0.17 Removed ports (2): www/hs-yesod-default 1.1.3.2 www/hs-yesod-json 1.1.2.1 PR: ports/179146 [1] Requested by: Omar Thameen <omar@biglist.com> [1] Reported by: sperber, bapt [2] Tested by: sperber [2] Obtained from: FreeBSD Haskell
324 lines
11 KiB
Makefile
324 lines
11 KiB
Makefile
# Created by: Simon Marlow <simonmar@microsoft.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ghc
|
|
PORTVERSION= 7.6.3
|
|
CATEGORIES= lang haskell
|
|
MASTER_SITES= http://www.haskell.org/ghc/dist/${PORTVERSION}/:source \
|
|
${MASTER_SITE_LOCAL:S/$/:boot/}
|
|
MASTER_SITE_SUBDIR= pgj/:boot
|
|
DISTFILES= ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source
|
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
|
COMMENT= Compiler for the functional language Haskell
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
GHC_VERSION= ${PORTVERSION}
|
|
BOOT_GHC_VERSION= 7.4.1
|
|
HSCOLOUR_VERSION= 1.20.2
|
|
|
|
DATADIR= ${PREFIX}/share/ghc-${GHC_VERSION}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/ghc-${GHC_VERSION}
|
|
|
|
CONFLICTS= ghc-6.8.* ghc-6.10.* ghc-6.12.* ghc-7.0.* ghc-7.2.* ghc-7.4.*
|
|
|
|
USE_BZIP2= yes
|
|
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
|
|
|
|
USE_AUTOTOOLS= autoconf autoheader
|
|
USE_PERL5_BUILD= yes
|
|
USE_GMAKE= yes
|
|
USES= iconv ncurses
|
|
USE_BINUTILS= yes
|
|
USE_GCC= 4.6+
|
|
|
|
LICENSE= BSD
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
MAKE_ENV= LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
|
|
|
|
# The configure process accepts,filters and canonicalises
|
|
# the CONFIGURE_TARGET variable. You can read the files
|
|
# ${WRKSRC}/configure and ${WRKSRC}/config.sub.
|
|
# This is better fixed in the ${WRKSRC}/mk/build.mk.
|
|
# You can view below.
|
|
GNU_CONFIGURE= yes
|
|
|
|
OPTIONS_DEFINE= PROFILE DYNAMIC DOCS
|
|
OPTIONS_DEFAULT= PROFILE DYNAMIC DOCS
|
|
|
|
BOOT_DESC= Use installed GHC for bootstrapping
|
|
BOOTH_DESC= Use installed HsColour for bootstrapping
|
|
PROFILE_DESC= Add support for performance profiling
|
|
DYNAMIC_DESC= Add support for dynamic linking
|
|
DOCS_DESC= Install HTML documentation
|
|
|
|
LOCALBASE?= /usr/local
|
|
|
|
.if exists(${LOCALBASE}/bin/ghc)
|
|
OPTIONS_DEFINE+= BOOT
|
|
.endif
|
|
|
|
.if exists(${LOCALBASE}/bin/HsColour)
|
|
OPTIONS_DEFINE+= BOOTH
|
|
.endif
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDYNAMIC}
|
|
LIB_DEPENDS+= ffi.6:${PORTSDIR}/devel/libffi
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MBOOT)
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/nopatch-.._ghc-${BOOT_GHC_VERSION}-boot_rts_package.conf.in
|
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
.if ${OSVERSION} >= 900000
|
|
DISTFILES+= ghc-${BOOT_GHC_VERSION}-i386-freebsd9-boot${EXTRACT_SUFX}:boot
|
|
.elif ${OSVERSION} >= 800000
|
|
DISTFILES+= ghc-${BOOT_GHC_VERSION}-i386-freebsd8-boot${EXTRACT_SUFX}:boot
|
|
.elif ${OSVERSION} >= 700000
|
|
DISTFILES+= ghc-${BOOT_GHC_VERSION}-i386-freebsd7-boot${EXTRACT_SUFX}:boot
|
|
.else
|
|
IGNORE= unsupported
|
|
.endif
|
|
|
|
.elif ${ARCH} == "amd64"
|
|
|
|
.if ${OSVERSION} >= 900000
|
|
DISTFILES+= ghc-${BOOT_GHC_VERSION}-amd64-freebsd9-boot${EXTRACT_SUFX}:boot
|
|
.elif ${OSVERSION} >= 800000
|
|
DISTFILES+= ghc-${BOOT_GHC_VERSION}-amd64-freebsd8-boot${EXTRACT_SUFX}:boot
|
|
.elif ${OSVERSION} >= 700000
|
|
DISTFILES+= ghc-${BOOT_GHC_VERSION}-amd64-freebsd7-boot${EXTRACT_SUFX}:boot
|
|
.else
|
|
IGNORE= unsupported
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endif # MBOOT
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
|
|
GHC_LIBDIR= ${PREFIX}/lib/ghc-${GHC_VERSION}
|
|
GHC_LIBDIR_REL= lib/ghc-${GHC_VERSION}
|
|
|
|
PLIST_SUB+= GHC_VERSION=${GHC_VERSION} GHC_LIBDIR=${GHC_LIBDIR_REL}
|
|
|
|
HACKAGE_SITE?= http://hackage.haskell.org/
|
|
HACKAGE_ARCH?= packages/archive/
|
|
|
|
CONFIGURE_ARGS= --with-gcc=${CC} \
|
|
--with-ld=${LD} \
|
|
--with-gmp-includes=${LOCALBASE}/include \
|
|
--with-gmp-libraries=${LOCALBASE}/lib \
|
|
--with-iconv-includes=${LOCALBASE}/include \
|
|
--with-iconv-libraries=${LOCALBASE}/lib
|
|
|
|
.if ${PORT_OPTIONS:MDYNAMIC}
|
|
CONFIGURE_ARGS+= --with-system-libffi \
|
|
--with-ffi-includes=${LOCALBASE}/include \
|
|
--with-ffi-libraries=${LOCALBASE}/lib
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MBOOT)
|
|
|
|
BOOT_DIR= ${WRKDIR}/ghc-${BOOT_GHC_VERSION}-boot
|
|
BOOT_GHC= ${BOOT_DIR}/bin/ghc-${BOOT_GHC_VERSION}
|
|
BOOT_GHC-PKG= ${BOOT_DIR}/bin/ghc-pkg-${BOOT_GHC_VERSION}
|
|
BOOT_HSC2HS= ${BOOT_DIR}/bin/hsc2hs
|
|
|
|
SLAVE_CMD= ${SETENV} PATH=${BOOT_DIR}/bin:${PATH}
|
|
|
|
CONFIGURE_ARGS_BOOT= --prefix=${BOOT_DIR} --with-gcc=${CC}
|
|
CONFIGURE_ARGS+= --with-ghc=${BOOT_GHC}
|
|
|
|
.else # MBOOT
|
|
|
|
SLAVE_CMD= # empty
|
|
|
|
CONFIGURE_ARGS+= --with-ghc=${LOCALBASE}/bin/ghc
|
|
|
|
.endif # MBOOT
|
|
|
|
# libgmp:
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
# override TMPDIR because /tmp often doesn't have enough space
|
|
# to build some of the larger libraries.
|
|
TMPDIR= ${WRKSRC}/tmp
|
|
MAKE_ENV+= TMPDIR=${TMPDIR}
|
|
|
|
# Defining with documentation:
|
|
# An in place installation and registration of hscolour will be
|
|
# activated. In this way it's possible to use it directly into
|
|
# the build tree, without needing to install it. At the end
|
|
# you could view the output of: ${BOOT_GHC} describe hscolour
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
.if empty(PORT_OPTIONS:MBOOTH)
|
|
|
|
MASTER_SITES+= ${HACKAGE_SITE}${HACKAGE_ARCH}hscolour/${HSCOLOUR_VERSION}/:docs
|
|
DISTFILES+= hscolour-${HSCOLOUR_VERSION}.tar.gz:docs
|
|
|
|
EXTRACT_ONLY= ${_DISTFILES:C/hscolour.*$//g}
|
|
|
|
.endif # MBOOTH
|
|
|
|
MAN1= ghc.1
|
|
|
|
.if empty(PORT_OPTIONS:MBOOTH)
|
|
|
|
SLAVES_PREFIX= ${WRKDIR}/slaves_prefix
|
|
SLAVES_WRKDIRPREFIX= ${WRKDIR}/slaves_wrkdirprefix
|
|
|
|
MAKE_ENV+= PATH=${SLAVES_PREFIX}/bin:${PATH}
|
|
MAKE_ENV+= LC_ALL=en_US.UTF-8
|
|
CONFIGURE_ENV+= PATH=${SLAVES_PREFIX}/bin:${PATH}
|
|
|
|
.endif # MBOOTH
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \
|
|
${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
|
|
.endif
|
|
|
|
post-extract:
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "docdir = ${PREFIX}/share/doc/ghc-${GHC_VERSION}"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "htmldir = ${PREFIX}/share/doc/ghc-${GHC_VERSION}"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "mandir = ${PREFIX}/man"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "infodir = ${PREFIX}/info"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "GhcLibWays = v"
|
|
.if ${PORT_OPTIONS:MPROFILE}
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "GhcLibWays += p"
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDYNAMIC}
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "GhcLibWays += dyn"
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "XMLDocWays = html"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "HADDOCK_DOCS = YES"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "HSCOLOUR_SRCS = YES"
|
|
.else
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "XMLDocWays ="
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "HADDOCK_DOCS ="
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "HSCOLOUR_SRCS ="
|
|
.endif
|
|
.if ${PORT_OPTIONS:MBOOT}
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "BSD_PATH_TO_HSC2HS = ${LOCALBASE}/bin/hsc2hs"
|
|
.else
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "BSD_PATH_TO_HSC2HS = ${BOOT_HSC2HS}"
|
|
.endif
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "SRC_HC_OPTS += -I${NCURSESINC} -L${NCURSESLIB} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "SRC_CC_OPTS += ${CFLAGS}"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "EXTRA_HSC2HS_OPTS += -I${LOCALBASE}/include --lflag=-L${LOCALBASE}/lib"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "EXTRA_LD_OPTS += -L${LOCALBASE}/lib"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "EXTRA_CABAL_CONFIGURE_FLAGS += --extra-include-dirs=${LOCALBASE}/include"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "EXTRA_CABAL_CONFIGURE_FLAGS += --extra-lib-dirs=${LOCALBASE}/lib"
|
|
@${ECHO} >> ${WRKSRC}/mk/build.mk "libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes=${NCURSESINC} --configure-option=--with-curses-libraries=${NCURSESLIB}"
|
|
# @${ECHO} >> ${WRKSRC}/mk/build.mk "BIN_DIST_NAME = ghc-\$$(ProjectVersion)-boot"
|
|
# @${ECHO} >> ${WRKSRC}/mk/build.mk "BIN_DIST_TAR = ghc-\$$(ProjectVersion)-amd64-ash0-freebsd8-boot.tar"
|
|
|
|
post-install-script:
|
|
@${FIND} -ds ${GHC_LIBDIR} -type f -print | ${SED} -E -e \
|
|
'/^${GHC_LIBDIR:C/\//\\\//g}\/package.conf.d\/package\.cache/d' -e \
|
|
's,^${PREFIX}/?,,' >> ${TMPPLIST}
|
|
@${FIND} -ds ${DOCSDIR} -type f -print | ${SED} -E -e \
|
|
'/^${DOCSDIR:C/\//\\\//g}\/html\/libraries\/doc-index-[^.]+\.html/d' -e \
|
|
'/^${DOCSDIR:C/\//\\\//g}\/html\/libraries\/index[^\/.]*\.html/d' -e \
|
|
'/^${DOCSDIR:C/\//\\\//g}\/html\/libraries\/[^\/]+\.png/d' -e \
|
|
's,^${PREFIX}/?,,' >> ${TMPPLIST}
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
# Cleanup the indexen created by gen_contents_index
|
|
@${ECHO} "@unexec ${RM} -f %D/${DOCSDIR_REL}/html/libraries/doc-index-*.html" >> ${TMPPLIST}
|
|
@${ECHO} "@unexec ${RM} -f %D/${DOCSDIR_REL}/html/libraries/index*.html" >> ${TMPPLIST}
|
|
@${ECHO} "@unexec ${RM} -f %D/${DOCSDIR_REL}/html/libraries/*.png" >> ${TMPPLIST}
|
|
.endif
|
|
@${ECHO} "@exec %D/bin/ghc-pkg recache" >>${TMPPLIST}
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${ECHO} '@exec ${SH} -c "cd %D/${DOCSDIR_REL}/html/libraries && ./gen_contents_index"' >> ${TMPPLIST}
|
|
.endif
|
|
@${ECHO} '@unexec ${RM} -f %D/${GHC_LIBDIR_REL}/package.conf.d/package.cache' >>${TMPPLIST}
|
|
@${FIND} -ds ${DOCSDIR} -type d -print | ${SED} -E -e \
|
|
's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
|
|
@${FIND} -ds ${GHC_LIBDIR} -type d -print | ${SED} -E -e \
|
|
's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
#post-build:
|
|
# @(cd ${WRKSRC} && ${GMAKE} binary-dist)
|
|
#
|
|
#do-install:
|
|
# @${NONE}
|
|
|
|
post-patch:
|
|
# Hack don't to install the internal haddock.
|
|
@${REINPLACE_CMD} -e 's+\(DO_NOT_INSTALL =\)+\1 haddock+' \
|
|
${WRKSRC}/utils/Makefile
|
|
|
|
.if ${PORT_OPTIONS:MBOOT}
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
${WRKSRC}/rts/package.conf.in \
|
|
${WRKSRC}/libraries/Makefile
|
|
.else
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
${WRKSRC}/../ghc-${BOOT_GHC_VERSION}-boot/rts/package.conf.in \
|
|
${WRKSRC}/rts/package.conf.in \
|
|
${WRKSRC}/libraries/Makefile
|
|
.endif
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
${WRKSRC}/configure
|
|
|
|
pre-configure:
|
|
@${MKDIR} ${TMPDIR}
|
|
.if empty(PORT_OPTIONS:MBOOT)
|
|
@(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS_BOOT})
|
|
@(cd ${BOOT_DIR} && PACKAGES='' ${GMAKE} install)
|
|
.endif
|
|
|
|
# Defining with documentation:
|
|
# Defining "SLAVE" in devel/hs-haddock and print/hs-hscolour flips the building process
|
|
# functionally to this port.
|
|
.if ${PORT_OPTIONS:MDOCS} && empty(PORT_OPTIONS:MBOOTH)
|
|
@${ECHO_MSG} -e "\a"
|
|
@${ECHO_MSG} "======================================================================"
|
|
@${ECHO_MSG} " WARNING: Now HsColour will be built, the respective port will not "
|
|
@${ECHO_MSG} " be installed, but an in-place installation and "
|
|
@${ECHO_MSG} " registration of both takes place. "
|
|
@${ECHO_MSG} "======================================================================"
|
|
@${ECHO_MSG} ""
|
|
@sleep 3
|
|
|
|
@${MKDIR} ${SLAVES_PREFIX}
|
|
@${MKDIR} ${SLAVES_WRKDIRPREFIX}
|
|
|
|
@(cd ${SLAVES_WRKDIRPREFIX} && \
|
|
${TAR} xvf ${DISTDIR}/hscolour-${HSCOLOUR_VERSION}.tar.gz && \
|
|
cd hscolour-${HSCOLOUR_VERSION} && \
|
|
${SLAVE_CMD} ghc --make -o Setup Setup.hs -package Cabal && \
|
|
${SLAVE_CMD} ./Setup configure --ghc --prefix=${SLAVES_PREFIX} && \
|
|
${SLAVE_CMD} ./Setup build && \
|
|
${SLAVE_CMD} ./Setup install)
|
|
.endif
|
|
|
|
post-install:
|
|
# cabalised hs-foo-ghc ports
|
|
@${MKDIR} ${PREFIX}/lib/cabal/ghc-${GHC_VERSION}
|
|
@${MKDIR} ${PREFIX}/share/cabal/ghc-${GHC_VERSION}
|
|
@${MKDIR} ${PREFIX}/share/doc/cabal/ghc-${GHC_VERSION}
|
|
@${MKDIR} ${PREFIX}/share/examples/cabal/ghc-${GHC_VERSION}
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
cd ${DOCSDIR}/html/libraries && ./gen_contents_index
|
|
.endif
|
|
@${RM} -f ${PREFIX}/bin/haddock
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${LN} -sf ${PREFIX}/bin/haddock-ghc-${GHC_VERSION} ${PREFIX}/bin/haddock
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|