2003-04-14 00:51:13 +02:00
|
|
|
# New ports collection makefile for: darcs
|
|
|
|
# Date created: 13 April 2003
|
|
|
|
# Whom: Oliver Braun <obraun@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= darcs
|
2005-02-04 20:38:21 +01:00
|
|
|
PORTVERSION= 1.0.2
|
2003-04-14 00:51:13 +02:00
|
|
|
CATEGORIES= devel
|
2004-11-09 19:36:33 +01:00
|
|
|
MASTER_SITES= http://darcs.net/
|
2003-04-14 00:51:13 +02:00
|
|
|
|
2004-03-06 22:29:59 +01:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
2003-04-14 00:51:13 +02:00
|
|
|
COMMENT= Yet another replacement for CVS, written in Haskell
|
|
|
|
|
2004-01-16 11:06:20 +01:00
|
|
|
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
2004-11-20 12:16:12 +01:00
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
|
|
|
|
gmp.6:${PORTSDIR}/math/libgmp4
|
2003-04-14 00:51:13 +02:00
|
|
|
|
2004-06-08 21:40:29 +02:00
|
|
|
OPTIONS= SERVER "install server" off
|
2003-04-14 00:51:13 +02:00
|
|
|
USE_REINPLACE= yes
|
2003-07-12 23:42:42 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
2004-08-05 17:31:25 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${PREFIX}/lib/ ${PTHREAD_LIBS}" \
|
2003-07-12 23:42:42 +02:00
|
|
|
CFLAGS=""
|
2003-04-14 00:51:13 +02:00
|
|
|
USE_GMAKE= yes
|
2003-07-12 23:42:42 +02:00
|
|
|
MAKEFILE= GNUmakefile
|
|
|
|
ALL_TARGET= darcs darcs.1
|
2004-06-08 21:40:29 +02:00
|
|
|
INSTALL_TARGET= installbin
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2003-04-14 00:51:13 +02:00
|
|
|
|
2003-07-12 23:42:42 +02:00
|
|
|
.if defined(WITH_SERVER)
|
2004-10-19 20:42:56 +02:00
|
|
|
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt
|
|
|
|
RUN_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt
|
2004-12-17 21:44:53 +01:00
|
|
|
ALL_TARGET+= darcs-createrepo
|
2004-06-08 21:40:29 +02:00
|
|
|
INSTALL_TARGET+= installserver
|
2003-04-26 18:40:49 +02:00
|
|
|
.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache)
|
|
|
|
CGIDIR?= share/apache/cgi-bin
|
|
|
|
.else
|
|
|
|
CGIDIR?= www/cgi-bin
|
|
|
|
.endif
|
2003-07-12 23:42:42 +02:00
|
|
|
PLIST_SUB+= CGIDIR=${CGIDIR} SERVER=""
|
2003-04-26 18:40:49 +02:00
|
|
|
.else
|
2003-07-12 23:42:42 +02:00
|
|
|
PLIST_SUB+= SERVER="@comment "
|
2003-04-26 18:40:49 +02:00
|
|
|
.endif
|
2004-06-08 21:40:29 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
INSTALL_TARGET+= installdocs
|
|
|
|
.endif
|
2003-04-26 18:40:49 +02:00
|
|
|
|
2003-04-14 00:51:13 +02:00
|
|
|
MAN1= darcs.1
|
|
|
|
|
|
|
|
post-patch:
|
2003-07-12 23:42:42 +02:00
|
|
|
.if defined(WITH_SERVER)
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(libexecdir)/cgi-bin|${PREFIX}/${CGIDIR}| ; \
|
2004-06-12 18:59:15 +02:00
|
|
|
s|darcs/cgi.conf|cgi.conf.sample| ; /ln/d' \
|
2003-07-12 23:42:42 +02:00
|
|
|
${WRKSRC}/${MAKEFILE}
|
|
|
|
@${REINPLACE_CMD} -e '/$$(sysconfdir)\/darcs/d' ${WRKSRC}/${MAKEFILE}
|
2003-04-26 18:40:49 +02:00
|
|
|
.endif
|
2003-07-12 23:42:42 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -e '/$$(datadir)/d' ${WRKSRC}/${MAKEFILE}
|
|
|
|
.else
|
2004-06-08 21:40:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/^\(installdocs:.\)darcs.ps/\1/ ; \
|
|
|
|
s/^\(installbin:\).*/\1/ ; /darcs\.ps/d ' \
|
|
|
|
${WRKSRC}/${MAKEFILE}
|
2003-07-12 23:42:42 +02:00
|
|
|
.endif
|
|
|
|
|
2004-11-26 16:50:57 +01:00
|
|
|
post-install:
|
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/darcs
|
|
|
|
|
2004-06-08 21:40:29 +02:00
|
|
|
.include <bsd.port.post.mk>
|