Changeset View
Changeset View
Standalone View
Standalone View
lang/ghc/Makefile
# Created by: Simon Marlow <simonmar@microsoft.com> | # Created by: Simon Marlow <simonmar@microsoft.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= ghc | PORTNAME= ghc | ||||
PORTVERSION= ${GHC_VERSION} | PORTVERSION= ${GHC_VERSION} | ||||
PORTREVISION= 1 | |||||
CATEGORIES= lang haskell | CATEGORIES= lang haskell | ||||
MASTER_SITES= https://www.haskell.org/ghc/dist/${PORTVERSION}/:source \ | MASTER_SITES= https://www.haskell.org/ghc/dist/${PORTVERSION}/:source \ | ||||
LOCAL/arrowd/:boot \ | LOCAL/arrowd/:boot \ | ||||
https://hackage.haskell.org/package/hscolour-${HSCOLOUR_VERSION}/:docs | https://hackage.haskell.org/package/hscolour-${HSCOLOUR_VERSION}/:docs | ||||
DISTFILES= ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source \ | DISTFILES= ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source \ | ||||
hscolour-${HSCOLOUR_VERSION}.tar.gz:docs | hscolour-${HSCOLOUR_VERSION}.tar.gz:docs | ||||
EXTRACT_ONLY= ${_DISTFILES:C/hscolour.*$//g} | EXTRACT_ONLY= ${_DISTFILES:C/hscolour.*$//g} | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
# Append substitutions for build.mk | # Append substitutions for build.mk | ||||
BOOT_SUB_LIST= HSC2HS=${LOCALBASE}/bin/hsc2hs | BOOT_SUB_LIST= HSC2HS=${LOCALBASE}/bin/hsc2hs | ||||
BOOT_SUB_LIST_OFF= HSC2HS=${BOOT_HSC2HS} | BOOT_SUB_LIST_OFF= HSC2HS=${BOOT_HSC2HS} | ||||
PROFILE_SUB_LIST= WITH_PROFILE="YES" | PROFILE_SUB_LIST= WITH_PROFILE="YES" | ||||
PROFILE_SUB_LIST_OFF= WITH_PROFILE="NO" | PROFILE_SUB_LIST_OFF= WITH_PROFILE="NO" | ||||
GHC_VERSION?= ${GHC_VERSION_DEFAULT} | GHC_VERSION?= ${GHC_VERSION_DEFAULT} | ||||
GHC_VERSION_DEFAULT= 8.6.3 | GHC_VERSION_DEFAULT= 8.6.4 | ||||
GHC_VERSION_MAJOR= ${GHC_VERSION:S/./ /g:[1]} | GHC_VERSION_MAJOR= ${GHC_VERSION:S/./ /g:[1]} | ||||
GHC_VERSION_MINOR= ${GHC_VERSION:S/./ /g:[2]} | GHC_VERSION_MINOR= ${GHC_VERSION:S/./ /g:[2]} | ||||
HSCOLOUR_VERSION= 1.24.4 | HSCOLOUR_VERSION= 1.24.4 | ||||
.if ${GHC_VERSION_MAJOR} >= 8 && ${GHC_VERSION_MINOR} >= 6 | .if ${GHC_VERSION_MAJOR} >= 8 && ${GHC_VERSION_MINOR} >= 6 | ||||
ONLY_FOR_ARCHS+= aarch64 armv6 armv7 powerpc64 | ONLY_FOR_ARCHS+= aarch64 armv6 armv7 powerpc64 | ||||
.endif | .endif | ||||
Show All 30 Lines | |||||
_EXECUTABLES= ${GHC_LIBDIR}/bin/unlit \ | _EXECUTABLES= ${GHC_LIBDIR}/bin/unlit \ | ||||
${GHC_LIBDIR}/bin/hpc \ | ${GHC_LIBDIR}/bin/hpc \ | ||||
${GHC_LIBDIR}/bin/ghc-iserv \ | ${GHC_LIBDIR}/bin/ghc-iserv \ | ||||
${GHC_LIBDIR}/bin/ghc-pkg \ | ${GHC_LIBDIR}/bin/ghc-pkg \ | ||||
${GHC_LIBDIR}/bin/hsc2hs \ | ${GHC_LIBDIR}/bin/hsc2hs \ | ||||
${GHC_LIBDIR}/bin/runghc \ | ${GHC_LIBDIR}/bin/runghc \ | ||||
${GHC_LIBDIR}/bin/ghc \ | ${GHC_LIBDIR}/bin/ghc \ | ||||
${GHC_LIBDIR}/bin/hp2ps \ | ${GHC_LIBDIR}/bin/hp2ps | ||||
${GHC_LIBDIR}/bin/haddock | |||||
.if ${PORT_OPTIONS:MDOCS} | |||||
_EXECUTABLES+= ${GHC_LIBDIR}/bin/haddock | |||||
.endif | |||||
.if ${PORT_OPTIONS:MPROFILE} | .if ${PORT_OPTIONS:MPROFILE} | ||||
_EXECUTABLES+= ${GHC_LIBDIR}/bin/ghc-iserv-prof | _EXECUTABLES+= ${GHC_LIBDIR}/bin/ghc-iserv-prof | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MDYNAMIC} | .if ${PORT_OPTIONS:MDYNAMIC} | ||||
_EXECUTABLES+= ${GHC_LIBDIR}/bin/ghc-iserv-dyn | _EXECUTABLES+= ${GHC_LIBDIR}/bin/ghc-iserv-dyn | ||||
.endif | .endif | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |