pkgsrc/net/unison2.51/Makefile
2021-04-21 11:40:12 +00:00

63 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.33 2021/04/21 11:42:30 adam Exp $
# Currently, 2.51.x is the standard approach, and thus this package
# produces a "unison-2.51.x" package which installs a "unison" binary.
# When the next unison branch is released, we will likely again have
# multiple unison packages, with whichever is the standard approach
# using the unversioned name.
DISTNAME= unison-2.51.3
PKGREVISION= 3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=bcpierce00/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= https://www.cis.upenn.edu/~bcpierce/unison/
COMMENT= File-synchronization tool
LICENSE= gnu-gpl-v3
# \todo Explain
# docs: unison-manual.pdf/html/ps/dvi
#WRKSRC= ${WRKDIR}/src
USE_TOOLS+= gmake bash
MAKE_FLAGS+= CFLAGS=""
MAKE_ENV+= HOME=${WRKDIR:Q}
MAKE_JOBS_SAFE= no
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.include "../../mk/ocaml.mk"
.if (${OCAML_USE_OPT_COMPILER} == "yes")
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
TEST_TARGET= test
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"