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
|
2011-02-28 02:56:40 +01:00
|
|
|
PORTVERSION= 2.32.52
|
2012-06-02 19:40:16 +02:00
|
|
|
PORTREVISION= 2
|
2001-02-05 16:50:41 +01:00
|
|
|
CATEGORIES= net
|
2007-12-12 00:02:44 +01:00
|
|
|
MASTER_SITES= http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${DISTNAME}/
|
2011-02-28 02:56:40 +01:00
|
|
|
PKGNAMESUFFIX= 232
|
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
|
|
|
|
2011-02-28 02:56:40 +01:00
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
2012-04-17 19:47:38 +02:00
|
|
|
# Implicit approval for port changes granted to Guido Falsi <madpilot@FreeBSD.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
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
2001-08-29 21:36:53 +02:00
|
|
|
USE_GMAKE= yes
|
2011-02-11 15:48:44 +01:00
|
|
|
WANT_GNOME= yes
|
2005-01-26 18:31:57 +01:00
|
|
|
MAKE_ARGS= CFLAGS=""
|
|
|
|
|
2011-02-11 09:52:17 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2011-02-11 15:48:44 +01:00
|
|
|
LICENCE= GPLv3
|
|
|
|
|
2012-06-02 19:40:16 +02:00
|
|
|
OPTIONS_DEFINE= DOCS X11
|
|
|
|
OPTIONS_DEFAULT= DOCS X11
|
2011-02-28 02:56:40 +01:00
|
|
|
|
2012-05-31 23:12:14 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2000-10-26 03:42:33 +02:00
|
|
|
|
2012-05-31 23:12:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2003-10-23 16:06:52 +02:00
|
|
|
DOCS= BUGS.txt NEWS README
|
2011-02-28 02:56:40 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
EXTRA_DOCS= ${PORTNAME}-${PORTVERSION}-manual.html \
|
|
|
|
${PORTNAME}-${PORTVERSION}-manual.pdf ${PORTNAME}-${PORTVERSION}-manual.ps
|
2005-01-26 18:31:57 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-02 19:40:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2005-01-26 18:31:57 +01:00
|
|
|
MAKE_ARGS+= UISTYLE=gtk2
|
|
|
|
PLIST_SUB+= TEXT=""
|
2007-12-12 00:02:44 +01:00
|
|
|
BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml \
|
|
|
|
lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
|
|
|
RUN_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
|
|
|
PATCH_DEPENDS+= ${BUILD_DEPENDS}
|
|
|
|
CONFLICTS+= ocaml-nox11*
|
2011-02-11 15:48:44 +01:00
|
|
|
USE_GNOME= desktopfileutils
|
|
|
|
SUB_FILES+= ${PORTNAME}.desktop
|
2005-01-26 18:31:57 +01:00
|
|
|
.else
|
|
|
|
MAKE_ARGS+= UISTYLE=text
|
|
|
|
PLIST_SUB+= TEXT="@comment "
|
2007-12-12 00:02:44 +01:00
|
|
|
BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml-nox11
|
|
|
|
PATCH_DEPENDS+= ${BUILD_DEPENDS}
|
2005-01-26 18:31:57 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-02 19:40:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2005-01-26 18:31:57 +01:00
|
|
|
post-build:
|
|
|
|
@${ECHO} Building text-only version
|
|
|
|
@${ECHO} ${WRKSRC}
|
2011-02-28 02:56:40 +01:00
|
|
|
${GMAKE} -C ${WRKSRC} UISTYLE=text NAME=${PORTNAME}-text
|
2005-01-26 18:31:57 +01:00
|
|
|
.endif
|
2004-07-30 14:52:16 +02:00
|
|
|
|
2006-04-21 09:29:15 +02:00
|
|
|
do-install:
|
2011-02-28 02:56:40 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
|
2006-04-21 09:29:15 +02:00
|
|
|
|
2000-10-26 03:42:33 +02:00
|
|
|
post-install:
|
2012-05-31 23:12:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2011-02-28 02:56:40 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2003-10-23 16:06:52 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2012-06-02 19:40:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2011-02-28 02:56:40 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-text ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}-text
|
|
|
|
${MKDIR} ${DESKTOPDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${DESKTOPDIR}/${PORTNAME}${PKGNAMESUFFIX}.desktop
|
|
|
|
-update-desktop-database > /dev/null
|
2008-09-24 16:01:32 +02:00
|
|
|
.endif
|
2000-10-26 03:42:33 +02:00
|
|
|
|
2012-05-31 23:12:14 +02:00
|
|
|
.include <bsd.port.mk>
|