pkgsrc/net/unison2.51/Makefile

60 lines
1.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.18 2019/11/03 11:45:56 rillig Exp $
# This package is "unison-2.51.x" because 2.51 is the standard
# approach, and hence uses the bare name.
DISTNAME= unison-2.51.2
PKGREVISION= 14
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=bcpierce00/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://www.cis.upenn.edu/~bcpierce/unison/
COMMENT= File-synchronization tool
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
# docs: unison-manual.pdf/html/ps/dvi
#WRKSRC= ${WRKDIR}/src
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.51
post-install:
${MV} ${DESTDIR}${PREFIX}/bin/unison ${DESTDIR}${PREFIX}/bin/unison-2.51
${INSTALL_MAN} ${WRKSRC}/src/BUGS.txt ${DESTDIR}${PREFIX}/share/doc/unison-2.51
${INSTALL_MAN} ${WRKSRC}/src/CONTRIB ${DESTDIR}${PREFIX}/share/doc/unison-2.51
${INSTALL_MAN} ${WRKSRC}/src/COPYING ${DESTDIR}${PREFIX}/share/doc/unison-2.51
${INSTALL_MAN} ${WRKSRC}/src/NEWS ${DESTDIR}${PREFIX}/share/doc/unison-2.51
${INSTALL_MAN} ${WRKSRC}/src/README ${DESTDIR}${PREFIX}/share/doc/unison-2.51
${INSTALL_MAN} ${WRKSRC}/src/ROADMAP.txt ${DESTDIR}${PREFIX}/share/doc/unison-2.51
${INSTALL_MAN} ${WRKSRC}/src/TODO.txt ${DESTDIR}${PREFIX}/share/doc/unison-2.51
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"