b1557f9832
This is a re-import of net/unison, but with all paths changed from "unison" to "unison-2.48". This way, you can install it in parallel with unison2.51. Run unison-2.48 with "-addversionno" to run the appropriate unison binary on the other side. Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other. This package contains the outdated 2.48 release.
64 lines
1.9 KiB
Makefile
64 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.1 2019/07/29 18:07:10 wiz Exp $
|
|
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
DISTNAME= unison-2.48.15v4
|
|
PKGNAME= ${DISTNAME:S/unison/unison2.48/}
|
|
PKGREVISION= 5
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=bcpierce00/}
|
|
|
|
MAINTAINER= tonio@NetBSD.org
|
|
HOMEPAGE= http://www.cis.upenn.edu/~bcpierce/unison/
|
|
COMMENT= File-synchronization tool (2.48 branch)
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
# File "/data/scratch/net/unison/work/src/fswatch.mli", line 18, characters 17-29:
|
|
# Error: Unbound module Prefs
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
.if (${MACHINE_ARCH} == "arm")
|
|
BUILDLINK_ABI_DEPENDS.ocaml+= ocaml>=3.12.0nb2
|
|
.else
|
|
BUILDLINK_ABI_DEPENDS.ocaml+= ocaml>=3.11.2
|
|
.endif
|
|
BUILDLINK_API_DEPENDS.ocaml-lablgtk+= ocaml-lablgtk>=2.16.0
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
USE_TOOLS+= gmake
|
|
MAKE_FLAGS+= CFLAGS="" -C src
|
|
MAKE_ENV+= HOME=${WRKDIR:Q}
|
|
|
|
.include "options.mk"
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "../../mk/ocaml.mk"
|
|
|
|
.if (${OCAML_USE_OPT_COMPILER} == "true")
|
|
MAKE_FLAGS+= NATIVE=true
|
|
.else
|
|
MAKE_FLAGS+= NATIVE=false
|
|
.endif
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} != "none")
|
|
MAKE_FLAGS+= THREADS=true
|
|
.endif
|
|
|
|
BUILD_TARGET= buildexecutable
|
|
|
|
INSTALLATION_DIRS= bin
|
|
INSTALLATION_DIRS+= share/doc/unison-2.48
|
|
|
|
post-install:
|
|
${MV} ${DESTDIR}${PREFIX}/bin/unison ${DESTDIR}${PREFIX}/bin/unison-2.48
|
|
${INSTALL_MAN} ${WRKSRC}/src/BUGS.txt ${DESTDIR}${PREFIX}/share/doc/unison-2.48
|
|
${INSTALL_MAN} ${WRKSRC}/src/CONTRIB ${DESTDIR}${PREFIX}/share/doc/unison-2.48
|
|
${INSTALL_MAN} ${WRKSRC}/src/COPYING ${DESTDIR}${PREFIX}/share/doc/unison-2.48
|
|
${INSTALL_MAN} ${WRKSRC}/src/NEWS ${DESTDIR}${PREFIX}/share/doc/unison-2.48
|
|
${INSTALL_MAN} ${WRKSRC}/src/README ${DESTDIR}${PREFIX}/share/doc/unison-2.48
|
|
${INSTALL_MAN} ${WRKSRC}/src/ROADMAP.txt ${DESTDIR}${PREFIX}/share/doc/unison-2.48
|
|
${INSTALL_MAN} ${WRKSRC}/src/TODO.txt ${DESTDIR}${PREFIX}/share/doc/unison-2.48
|
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|