2012-10-13 08:42:36 +00:00
|
|
|
# Created by: Dan Pelleg <dpelleg+unison@cs.cmu.edu>
|
2007-10-19 03:05:02 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= unison
|
2012-11-15 08:01:55 +00:00
|
|
|
PORTVERSION= 2.45.28
|
2007-10-19 03:05:02 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${DISTNAME}/
|
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
DISTFILES= ${EXTRACT_ONLY} ${EXTRA_DOCS}
|
|
|
|
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz
|
|
|
|
|
2012-04-14 18:45:07 +00:00
|
|
|
MAINTAINER= madpilot@FreeBSD.org
|
2012-10-13 08:42:36 +00:00
|
|
|
COMMENT= User-level file synchronization tool
|
2007-10-19 03:05:02 +00:00
|
|
|
|
2012-04-12 21:11:11 +00:00
|
|
|
LICENSE= GPLv3
|
2011-02-19 12:51:26 +00:00
|
|
|
|
2007-10-19 03:05:02 +00:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
USE_GMAKE= yes
|
2012-04-12 21:11:11 +00:00
|
|
|
WANT_GNOME= yes
|
2007-10-19 03:05:02 +00:00
|
|
|
MAKE_ARGS= CFLAGS=""
|
2008-09-29 18:52:06 +00:00
|
|
|
CONFLICTS= unison-[0-9]* unison-nox11-[0-9]*
|
2007-10-19 03:05:02 +00:00
|
|
|
|
2012-06-02 17:40:16 +00:00
|
|
|
OPTIONS_DEFINE= DOCS X11
|
|
|
|
OPTIONS_DEFAULT= DOCS X11
|
2012-05-31 21:12:14 +00:00
|
|
|
|
2011-02-11 09:24:21 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2010-11-29 20:44:34 +00:00
|
|
|
ALL_TARGET= unison all
|
2010-10-27 18:52:00 +00:00
|
|
|
|
2012-05-31 21:12:14 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2007-10-19 03:05:02 +00:00
|
|
|
|
2012-05-31 21:12:14 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-10-19 03:05:02 +00:00
|
|
|
DOCS= BUGS.txt NEWS README
|
|
|
|
EXTRA_DOCS= unison-${PORTVERSION}-manual.html \
|
|
|
|
unison-${PORTVERSION}-manual.pdf unison-${PORTVERSION}-manual.ps
|
|
|
|
.endif
|
|
|
|
|
2012-06-02 17:40:16 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2007-10-19 03:05:02 +00:00
|
|
|
MAKE_ARGS+= UISTYLE=gtk2
|
|
|
|
PLIST_SUB+= TEXT=""
|
|
|
|
BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml \
|
2012-10-13 08:42:36 +00:00
|
|
|
lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2 \
|
|
|
|
icotool:${PORTSDIR}/graphics/icoutils
|
2007-10-19 03:05:02 +00:00
|
|
|
RUN_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
|
|
|
PATCH_DEPENDS+= ${BUILD_DEPENDS}
|
|
|
|
CONFLICTS+= ocaml-nox11*
|
2012-04-12 21:11:11 +00:00
|
|
|
USE_GNOME= desktopfileutils
|
|
|
|
SUB_FILES+= ${PORTNAME}.desktop
|
2012-10-13 08:42:36 +00:00
|
|
|
PLIST_FILES+= share/pixmaps/${PORTNAME}.png
|
2007-10-19 03:05:02 +00:00
|
|
|
.else
|
|
|
|
MAKE_ARGS+= UISTYLE=text
|
|
|
|
PLIST_SUB+= TEXT="@comment "
|
|
|
|
BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml-nox11
|
|
|
|
PATCH_DEPENDS+= ${BUILD_DEPENDS}
|
|
|
|
.endif
|
|
|
|
|
2012-06-02 17:40:16 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2007-10-19 03:05:02 +00:00
|
|
|
post-build:
|
|
|
|
@${ECHO} Building text-only version
|
|
|
|
@${ECHO} ${WRKSRC}
|
|
|
|
@${GMAKE} -C ${WRKSRC} UISTYLE=text NAME=unison-text
|
2012-10-13 08:42:36 +00:00
|
|
|
@cd ${WRKSRC}/win32rc && ${LOCALBASE}/bin/icotool -x U.ico
|
2007-10-19 03:05:02 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unison ${PREFIX}/bin
|
|
|
|
|
|
|
|
post-install:
|
2012-06-02 17:40:16 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2007-10-19 03:05:02 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${PREFIX}/bin
|
|
|
|
.endif
|
2012-05-31 21:12:14 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-10-19 03:05:02 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2012-06-02 17:40:16 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2012-04-12 21:11:11 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${PREFIX}/bin
|
|
|
|
@${MKDIR} ${DESKTOPDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${DESKTOPDIR}
|
|
|
|
@-update-desktop-database > /dev/null
|
2012-10-13 08:42:36 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/win32rc/U_4_48x48x32.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
|
2007-10-19 03:05:02 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2012-04-12 21:11:11 +00:00
|
|
|
.else
|
|
|
|
@${CAT} ${PKGMESSAGE}.nox11
|
|
|
|
.endif
|
2007-10-19 03:05:02 +00:00
|
|
|
|
2012-05-31 21:12:14 +00:00
|
|
|
.include <bsd.port.mk>
|