2000-10-26 03:42:33 +02:00
|
|
|
# New ports collection makefile for: unison
|
|
|
|
# Date created: 4 October 2000
|
|
|
|
# Whom: Dan Pelleg <dpelleg+unison@cs.cmu.edu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-02-05 16:50:41 +01:00
|
|
|
PORTNAME= unison
|
2005-08-31 13:37:57 +02:00
|
|
|
PORTVERSION= 2.13.16
|
2005-11-05 06:22:06 +01:00
|
|
|
PORTREVISION= 1
|
2001-02-05 16:50:41 +01:00
|
|
|
CATEGORIES= net
|
2005-08-31 13:37:57 +02:00
|
|
|
MASTER_SITES= http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/
|
2003-10-23 16:06:52 +02:00
|
|
|
DISTFILES= ${EXTRACT_ONLY} ${EXTRA_DOCS}
|
|
|
|
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
2005-01-26 18:31:57 +01:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz
|
2000-10-26 03:42:33 +02:00
|
|
|
|
2002-07-01 03:48:21 +02:00
|
|
|
MAINTAINER= daniel+unison@pelleg.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= A user-level file synchronization tool
|
2000-10-26 03:42:33 +02:00
|
|
|
|
2005-01-26 18:31:57 +01:00
|
|
|
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml-nox11
|
2004-07-30 14:52:16 +02:00
|
|
|
PATCH_DEPENDS= ${BUILD_DEPENDS}
|
2000-10-26 03:42:33 +02:00
|
|
|
|
2005-01-26 18:31:57 +01:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
2001-08-29 21:36:53 +02:00
|
|
|
USE_GMAKE= yes
|
2005-01-26 18:31:57 +01:00
|
|
|
MAKE_ARGS= CFLAGS=""
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2000-10-26 03:42:33 +02:00
|
|
|
|
2003-10-23 16:06:52 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DOCS= BUGS.txt NEWS README
|
2005-01-26 18:31:57 +01:00
|
|
|
EXTRA_DOCS= unison-${PORTVERSION}-manual.html \
|
|
|
|
unison-${PORTVERSION}-manual.pdf unison-${PORTVERSION}-manual.ps
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_GTK2) && !defined(WITHOUT_X11) && exists(${LOCALBASE}/bin/lablgtk2)
|
|
|
|
WITH_GTK2= yes
|
2003-10-23 16:06:52 +02:00
|
|
|
.endif
|
|
|
|
|
2005-01-26 18:31:57 +01:00
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
MAKE_ARGS+= UISTYLE=gtk2
|
|
|
|
RUN_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
|
|
|
BUILD_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
|
|
|
PLIST_SUB+= TEXT=""
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= UISTYLE=text
|
|
|
|
PLIST_SUB+= TEXT="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
post-build:
|
|
|
|
@${ECHO} Building text-only version
|
|
|
|
@${ECHO} ${WRKSRC}
|
|
|
|
@${GMAKE} -C ${WRKSRC} UISTYLE=text NAME=unison-text
|
|
|
|
.endif
|
2004-07-30 14:52:16 +02:00
|
|
|
|
2006-04-21 09:29:15 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unison ${PREFIX}/bin
|
|
|
|
|
2000-10-26 03:42:33 +02:00
|
|
|
post-install:
|
2005-01-26 18:31:57 +01:00
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${PREFIX}/bin
|
|
|
|
.endif
|
2003-10-23 16:06:52 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2005-01-26 18:31:57 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-10-26 03:42:33 +02:00
|
|
|
|
2005-01-26 18:31:57 +01:00
|
|
|
.include <bsd.port.post.mk>
|