aboutsummaryrefslogtreecommitdiff
path: root/net/unison/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-01-26 17:31:57 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-01-26 17:31:57 +0000
commiteea207b065171056983e77cc199176e62ff320d9 (patch)
treeedd2d6ba38278be9a83f4dd4945ec7558039ffd9 /net/unison/Makefile
parent5e03024b6a5de8ab9223ea851b810bcfd5fce9f8 (diff)
downloadports-eea207b065171056983e77cc199176e62ff320d9.tar.gz
ports-eea207b065171056983e77cc199176e62ff320d9.zip
Notes
Diffstat (limited to 'net/unison/Makefile')
-rw-r--r--net/unison/Makefile51
1 files changed, 34 insertions, 17 deletions
diff --git a/net/unison/Makefile b/net/unison/Makefile
index 149126354848..3e74de040f44 100644
--- a/net/unison/Makefile
+++ b/net/unison/Makefile
@@ -6,45 +6,62 @@
#
PORTNAME= unison
-PORTVERSION= 2.9.20
-PORTREVISION= 2
+PORTVERSION= 2.10.2
CATEGORIES= net
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
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz
MAINTAINER= daniel+unison@pelleg.org
COMMENT= A user-level file synchronization tool
-BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
+BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml-nox11
PATCH_DEPENDS= ${BUILD_DEPENDS}
+PLIST_SUB= PORTVERSION=${PORTVERSION}
USE_GMAKE= yes
-MAKE_ARGS= UISTYLE=text CFLAGS=""
+MAKE_ARGS= CFLAGS=""
+
+.include <bsd.port.pre.mk>
.if !defined(NOPORTDOCS)
DOCS= BUGS.txt NEWS README
-EXTRA_DOCS= unison-manual.dvi unison-manual.html \
- unison-manual.pdf unison-manual.ps
+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
.endif
-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
+.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
post-install:
@${STRIP_CMD} ${PREFIX}/bin/unison
+.if defined(WITH_GTK2)
+ @${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${PREFIX}/bin
+.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
.endif
+ @${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>