aboutsummaryrefslogtreecommitdiff
path: root/devel/darcs/Makefile
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2003-04-13 22:51:13 +0000
committerOliver Braun <obraun@FreeBSD.org>2003-04-13 22:51:13 +0000
commit65e2d489f34f2030f7a973a08166fd04d948e3a4 (patch)
treefc22db9d94794f71fe7639bf648cd41e0e1c1e23 /devel/darcs/Makefile
parent800dddd27cab4c08c919df62e0a9e95ddc269ed8 (diff)
downloadports-65e2d489f34f2030f7a973a08166fd04d948e3a4.tar.gz
ports-65e2d489f34f2030f7a973a08166fd04d948e3a4.zip
Notes
Diffstat (limited to 'devel/darcs/Makefile')
-rw-r--r--devel/darcs/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/devel/darcs/Makefile b/devel/darcs/Makefile
new file mode 100644
index 000000000000..d155fd363d1e
--- /dev/null
+++ b/devel/darcs/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: darcs
+# Date created: 13 April 2003
+# Whom: Oliver Braun <obraun@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= darcs
+PORTVERSION= 0.9.5
+CATEGORIES= devel
+MASTER_SITES= http://www.abridgegame.org/darcs/
+
+MAINTAINER= obraun@FreeBSD.org
+COMMENT= Yet another replacement for CVS, written in Haskell
+
+BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
+LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
+
+USE_REINPLACE= yes
+USE_GMAKE= yes
+ALL_TARGET= darcs darcs.1
+
+GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
+ ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+
+MAN1= darcs.1
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|<curl|<${PREFIX}/include/curl|' \
+ ${WRKSRC}/hscurl.c
+ @${REINPLACE_CMD} -e \
+ 's|/usr/share/doc/darcs/manual/index.html|http://www.abridgegame.org/darcs/|' \
+ ${WRKSRC}/man.hs
+
+do-configure:
+ @${ECHO_CMD} PREFIX=${PREFIX} >> ${WRKSRC}/make.inc
+ @${ECHO_CMD} CURL_STUFF = hscurl.c -lcurl -optl-pthread -L${PREFIX}/lib/ \
+ >> ${WRKSRC}/make.inc
+ @${ECHO_CMD} GHCINC=-I${PREFIX}/lib/ghc-${GHC_VERSION}/include >> ${WRKSRC}/make.inc
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/darcs ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/darcs.1 ${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>