mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
819f25b36d
The conflict checks compare the patterns first against the package names without version (as reported by "pkg query "%n"), then - if there was no match - agsinst the full package names including the version (as reported by "pkg query "%n-%v"). Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter for the bash package in any version. But that pattern is functionally identical with just "bash". Approved by: portmgr (blanket)
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# Created by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
|
|
|
PORTNAME= nhc98
|
|
PORTVERSION= 1.22
|
|
PORTREVISION= 7
|
|
CATEGORIES= lang haskell
|
|
MASTER_SITES= http://haskell.org/${PORTNAME}/
|
|
DISTFILES= ${PORTNAME}src-${PORTVERSION}${EXTRACT_SUFX}
|
|
DIST_SUBDIR= nhc98
|
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
|
COMMENT= Fully-fledged compiler for Haskell 98
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
USES= gmake
|
|
USE_GCC= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} --heap=4M --buildwith=gcc
|
|
MAKE_ARGS+= ARCH=
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_CONFIGURE_ON= --docdir=${DOCSDIR} +docs
|
|
DOCS_CONFIGURE_OFF= -docs
|
|
|
|
PORTDOCS= *
|
|
CONFLICTS= hs-cpphs
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc
|
|
# The Makefile defines target names based on $(CC) which is
|
|
# problematic when CC=gcc5. The following patch does not affect the
|
|
# compiler used during the build, but makes sure that targets have
|
|
# the correct suffix e.g. 'basic-gcc' instead of 'basic-gcc5':
|
|
@${REINPLACE_CMD} -e 's|$$(CC)|gcc|g' ${WRKSRC}/Makefile
|
|
|
|
post-configure:
|
|
@${ECHO} "LIBDIR=${PREFIX}/lib/nhc98" \
|
|
>> ${WRKSRC}/targets/ix86-FreeBSD/config.cache
|
|
|
|
.include <bsd.port.mk>
|