2021-04-21 13:40:12 +02:00
|
|
|
# $NetBSD: Makefile,v 1.16 2021/04/21 11:42:30 adam Exp $
|
2020-04-21 13:34:01 +02:00
|
|
|
|
2021-03-16 18:26:12 +01:00
|
|
|
DISTNAME= unison-2.51.3.72
|
2021-04-21 13:40:12 +02:00
|
|
|
PKGREVISION= 1
|
2020-04-21 13:34:01 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=bcpierce00/}
|
2021-03-16 18:26:12 +01:00
|
|
|
# = v2.51.4rc2
|
|
|
|
GITHUB_TAG= 2e12fc4f41b39ca9a5e501d7df5c2c33a75d3b95
|
2020-04-21 13:34:01 +02:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= https://www.cis.upenn.edu/~bcpierce/unison/
|
|
|
|
COMMENT= File-synchronization tool
|
|
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
|
|
|
|
USE_TOOLS+= gmake bash
|
|
|
|
MAKE_FLAGS+= CFLAGS=""
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
.include "../../mk/ocaml.mk"
|
|
|
|
|
2020-09-19 16:38:17 +02:00
|
|
|
.if (${OCAML_USE_OPT_COMPILER} == "yes")
|
2020-04-21 13:34:01 +02:00
|
|
|
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
|
|
|
|
|
2020-10-13 19:14:29 +02:00
|
|
|
TEST_TARGET= test
|
|
|
|
|
2020-04-21 13:34:01 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
INSTALLATION_DIRS+= share/doc/unison
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/unison ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/BUGS.txt ${DESTDIR}${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/CONTRIB ${DESTDIR}${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/COPYING ${DESTDIR}${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/NEWS ${DESTDIR}${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/README ${DESTDIR}${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/ROADMAP.txt ${DESTDIR}${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/TODO.txt ${DESTDIR}${PREFIX}/share/doc/unison
|
|
|
|
|
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|