summaryrefslogtreecommitdiff
path: root/lang/nhc98/Makefile
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2002-01-23 18:14:52 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2002-01-23 18:14:52 +0000
commit2dc3cda712732235c2dbed7a962cacfb3727f89b (patch)
tree43ebcb7693acd169dab0c2d82d17b1e5a0b64c67 /lang/nhc98/Makefile
parentupdate to 2002.01.22. (diff)
update official patch.
respect CFLAGS. PR: 34206 Submitted by: maintainer
Diffstat (limited to 'lang/nhc98/Makefile')
-rw-r--r--lang/nhc98/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/nhc98/Makefile b/lang/nhc98/Makefile
index cff9b316a10f..cc7cb492a6e3 100644
--- a/lang/nhc98/Makefile
+++ b/lang/nhc98/Makefile
@@ -6,9 +6,11 @@
PORTNAME= nhc98
PORTVERSION= 1.10
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
DISTNAME= ${PORTNAME}src-${PORTVERSION}
+DIST_SUBDIR= nhc98
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= patch-1.10-IO \
@@ -42,7 +44,6 @@ MAKE_ENV+= PATH=${PREFIX}/jdk1.1.8/bin:$$PATH
USE_GMAKE= yes
HAS_CONFIGURE= yes
-DIST_SUBDIR= nhc98
.if !defined(NOPORTDOCS)
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/nhc98 +docs
@@ -63,6 +64,9 @@ pre-fetch:
@${ECHO} ""
.endif
+post-patch:
+ @${PERL} -pi.orig -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc
+
# We need this to ensure that the libs will be installed into
# ${PREFIX}/lib/nhc98. Otherwise the libs will be installed
# into the build directory. The configure option won't work in the