Use patches and libgmp port on -STABLE, too.

Submitted by:	Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Approved by:	maintainer
This commit is contained in:
Oliver Braun 2003-12-16 10:08:52 +00:00
parent a4c5a6c109
commit fa375a1e3d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95943
14 changed files with 6 additions and 30 deletions

View file

@ -26,14 +26,10 @@ DISTFILES= ${SRC_DIST}
DISTFILES+= ${BOOT_DIST}
.else
DISTFILES+= ${BOOT_DIST5}
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ghc-compiler-nativeGen-MachMisc.lhs \
${FILESDIR}/extra-patch-ghc-compiler-nativeGen-RegAllocInfo.lhs \
${FILESDIR}/extra-patch-ghc-rts-RtsFlags.c \
${FILESDIR}/extra-patch-ghc-rts-rts.conf.in \
${FILESDIR}/extra-patch-ghc-utils-prof-cgprof-cgprof.c
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
.endif
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
MAINTAINER= simonmar@microsoft.com
COMMENT= A Compiler for the functional language Haskell
@ -54,16 +50,11 @@ PLIST_SUB+= PROFILE=""
BOOT_DIR= ${WRKDIR}/ghc-${PORTVERSION}-boot
BOOT_GHC= ${BOOT_DIR}/bin/i386-unknown-freebsd/ghc-${PORTVERSION}
CONFIGURE_ARGS= --with-ghc=${BOOT_GHC}
CONFIGURE_ARGS= --with-ghc=${BOOT_GHC} --with-gcc=${CC}
# specifying CONFIGURE_TARGET doesn't work for some reason.
CONFIGURE_TARGET=
# libgmp:
.if ${OSVERSION} >= 500000
CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
PLIST_SUB+= GMP="@comment "
.else
PLIST_SUB+= GMP=""
.endif
# override TMPDIR because /tmp often doesn't have enough space
# to build some of the larger libraries.
@ -83,9 +74,7 @@ post-extract:
.if defined(WITHOUT_PROFILE)
@${ECHO} >>${WRKSRC}/mk/build.mk GhcLibWays=
.endif
.if ${OSVERSION} >= 500000
@${ECHO} >>${WRKSRC}/mk/build.mk SplitObjs=NO
.endif
post-patch:
@${PERL} -pi -e 's/DrIFT/DrIFT-ghc/g; \

View file

@ -819,7 +819,6 @@ lib/ghc-%%GHC_VERSION%%/libHStext_cbits.a
lib/ghc-%%GHC_VERSION%%/libHSutil.a
lib/ghc-%%GHC_VERSION%%/libHSutil_cbits.a
%%PROFILE%%lib/ghc-%%GHC_VERSION%%/libHSutil_p.a
%%GMP%%lib/ghc-%%GHC_VERSION%%/libgmp.a
lib/ghc-%%GHC_VERSION%%/package.conf
lib/ghc-%%GHC_VERSION%%/parse-gcstats.prl
lib/ghc-%%GHC_VERSION%%/process-gcstats.prl

View file

@ -26,14 +26,10 @@ DISTFILES= ${SRC_DIST}
DISTFILES+= ${BOOT_DIST}
.else
DISTFILES+= ${BOOT_DIST5}
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ghc-compiler-nativeGen-MachMisc.lhs \
${FILESDIR}/extra-patch-ghc-compiler-nativeGen-RegAllocInfo.lhs \
${FILESDIR}/extra-patch-ghc-rts-RtsFlags.c \
${FILESDIR}/extra-patch-ghc-rts-rts.conf.in \
${FILESDIR}/extra-patch-ghc-utils-prof-cgprof-cgprof.c
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
.endif
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
MAINTAINER= simonmar@microsoft.com
COMMENT= A Compiler for the functional language Haskell
@ -54,16 +50,11 @@ PLIST_SUB+= PROFILE=""
BOOT_DIR= ${WRKDIR}/ghc-${PORTVERSION}-boot
BOOT_GHC= ${BOOT_DIR}/bin/i386-unknown-freebsd/ghc-${PORTVERSION}
CONFIGURE_ARGS= --with-ghc=${BOOT_GHC}
CONFIGURE_ARGS= --with-ghc=${BOOT_GHC} --with-gcc=${CC}
# specifying CONFIGURE_TARGET doesn't work for some reason.
CONFIGURE_TARGET=
# libgmp:
.if ${OSVERSION} >= 500000
CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
PLIST_SUB+= GMP="@comment "
.else
PLIST_SUB+= GMP=""
.endif
# override TMPDIR because /tmp often doesn't have enough space
# to build some of the larger libraries.
@ -83,9 +74,7 @@ post-extract:
.if defined(WITHOUT_PROFILE)
@${ECHO} >>${WRKSRC}/mk/build.mk GhcLibWays=
.endif
.if ${OSVERSION} >= 500000
@${ECHO} >>${WRKSRC}/mk/build.mk SplitObjs=NO
.endif
post-patch:
@${PERL} -pi -e 's/DrIFT/DrIFT-ghc/g; \

View file

@ -819,7 +819,6 @@ lib/ghc-%%GHC_VERSION%%/libHStext_cbits.a
lib/ghc-%%GHC_VERSION%%/libHSutil.a
lib/ghc-%%GHC_VERSION%%/libHSutil_cbits.a
%%PROFILE%%lib/ghc-%%GHC_VERSION%%/libHSutil_p.a
%%GMP%%lib/ghc-%%GHC_VERSION%%/libgmp.a
lib/ghc-%%GHC_VERSION%%/package.conf
lib/ghc-%%GHC_VERSION%%/parse-gcstats.prl
lib/ghc-%%GHC_VERSION%%/process-gcstats.prl