dbc5e11def
the 2.32 protocol for compatibility with hosts not using FreeBSD ports. [1] Note that other than discussed in the PR, this port installs unison232[-text] commands and documentation into .../unison232 directories so as to avoid conflicts with net/unison and allow parallel installation of both ports. Other changes since repocopy than renaming: - Take maintainership for this new port for now and grant Guido Falsi implicit approval for port changes. - Downgrade to 2.32.52 (the repocopy copied HEAD rather than the specified date) - note I'm not bumping PORTEPOCH since unison232 wasn't hooked to the build before this commit, and we've renamed to installed port/package from unison to unison232, so it's technically a new port. - Query GTK2 support through OPTIONS framework, unless WITHOUT_X11 is defined. Check WITHOUT_GTK2 variable, don't care about WITH_GTK2. - Create ${DESKTOPDIR} before trying to install files into it, for the benefit of systems that install into a fresh PREFIX. - Remove CONFLICTS, add PKGNAMESUFFIX=232. - Clean up the Makefile a bit, and don't hide non-echo/cat commands - Remove pkg-message variants - Hook net/unison232 to the tree in net/Makefile - Add UPDATING entry - Add German translation for the .desktop file. PR: ports/154912 [1] Submitted by: mandree (myself)
85 lines
2.3 KiB
Makefile
85 lines
2.3 KiB
Makefile
# New ports collection makefile for: unison
|
|
# Date created: 4 October 2000
|
|
# Whom: Dan Pelleg <dpelleg+unison@cs.cmu.edu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= unison
|
|
PORTVERSION= 2.32.52
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${DISTNAME}/
|
|
PKGNAMESUFFIX= 232
|
|
DISTFILES= ${EXTRACT_ONLY} ${EXTRA_DOCS}
|
|
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
|
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz
|
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
|
# Implicit approval for port changes granted to Guido Falsi <mad@madpilot.net>
|
|
COMMENT= A user-level file synchronization tool
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
USE_GMAKE= yes
|
|
WANT_GNOME= yes
|
|
MAKE_ARGS= CFLAGS=""
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
LICENCE= GPLv3
|
|
|
|
.if defined(WITHOUT_X11)
|
|
WITHOUT_GTK2= yes
|
|
.else
|
|
OPTIONS= GTK2 "Build a GTK2-based version" on
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
DOCS= BUGS.txt NEWS README
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
|
EXTRA_DOCS= ${PORTNAME}-${PORTVERSION}-manual.html \
|
|
${PORTNAME}-${PORTVERSION}-manual.pdf ${PORTNAME}-${PORTVERSION}-manual.ps
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_GTK2)
|
|
MAKE_ARGS+= UISTYLE=gtk2
|
|
PLIST_SUB+= TEXT=""
|
|
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*
|
|
USE_GNOME= desktopfileutils
|
|
SUB_FILES+= ${PORTNAME}.desktop
|
|
.else
|
|
MAKE_ARGS+= UISTYLE=text
|
|
PLIST_SUB+= TEXT="@comment "
|
|
BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml-nox11
|
|
PATCH_DEPENDS+= ${BUILD_DEPENDS}
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_GTK2)
|
|
post-build:
|
|
@${ECHO} Building text-only version
|
|
@${ECHO} ${WRKSRC}
|
|
${GMAKE} -C ${WRKSRC} UISTYLE=text NAME=${PORTNAME}-text
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
|
|
.endif
|
|
.if !defined(WITHOUT_GTK2)
|
|
${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
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|