2000-10-26 01:42:33 +00:00
|
|
|
# New ports collection makefile for: unison
|
|
|
|
# Date created: 4 October 2000
|
|
|
|
# Whom: Dan Pelleg <dpelleg+unison@cs.cmu.edu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-02-05 15:50:41 +00:00
|
|
|
PORTNAME= unison
|
2002-08-20 14:04:27 +00:00
|
|
|
PORTVERSION= 2.9.20
|
2004-02-04 05:10:27 +00:00
|
|
|
PORTREVISION= 2
|
2001-02-05 15:50:41 +00:00
|
|
|
CATEGORIES= net
|
2003-10-23 14:06:52 +00:00
|
|
|
MASTER_SITES= http://www.cis.upenn.edu/~bcpierce/unison/download/beta-test/${DIST_SUBDIR}/
|
|
|
|
DISTFILES= ${EXTRACT_ONLY} ${EXTRA_DOCS}
|
|
|
|
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
|
|
|
EXTRACT_ONLY= src.tar.gz
|
2000-10-26 01:42:33 +00:00
|
|
|
|
2002-07-01 01:48:21 +00:00
|
|
|
MAINTAINER= daniel+unison@pelleg.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= A user-level file synchronization tool
|
2000-10-26 01:42:33 +00:00
|
|
|
|
2001-02-05 15:50:41 +00:00
|
|
|
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
|
2004-07-30 12:52:16 +00:00
|
|
|
PATCH_DEPENDS= ${BUILD_DEPENDS}
|
2000-10-26 01:42:33 +00:00
|
|
|
|
2001-08-29 19:36:53 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ARGS= UISTYLE=text CFLAGS=""
|
2000-10-26 01:42:33 +00:00
|
|
|
|
2003-10-23 14:06:52 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DOCS= BUGS.txt NEWS README
|
|
|
|
EXTRA_DOCS= unison-manual.dvi unison-manual.html \
|
|
|
|
unison-manual.pdf unison-manual.ps
|
|
|
|
.endif
|
|
|
|
|
2004-07-30 12:52:16 +00:00
|
|
|
pre-patch:
|
|
|
|
@if [ `ocamlc -version | ${SED} -e s/\\\.//g -e s/\\\+.*//` -gt 307 ] ; then \
|
|
|
|
if ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/ocaml-external-patch-ab ; then \
|
|
|
|
${TRUE} ; \
|
|
|
|
else \
|
|
|
|
${ECHO_MSG} ">> Patch ocaml-external-patch-ab failed to apply cleanly." ; \
|
|
|
|
${FALSE} ; \
|
|
|
|
fi; \
|
|
|
|
fi
|
|
|
|
|
2000-10-26 01:42:33 +00:00
|
|
|
post-install:
|
2003-10-23 14:06:52 +00:00
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/unison
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2000-10-26 01:42:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|