summaryrefslogtreecommitdiff
path: root/net/unison/Makefile
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2017-11-14 13:03:35 +0000
committerjaapb <jaapb@pkgsrc.org>2017-11-14 13:03:35 +0000
commit959eeb954d04fdb6bd1adf831838d2f3d5863e9b (patch)
tree65f747be96cd8c46257a89e831adcb0d8e41b423 /net/unison/Makefile
parentf6dd203db6bc4f0e6500f70dd389c7504eae909d (diff)
downloadpkgsrc-959eeb954d04fdb6bd1adf831838d2f3d5863e9b.tar.gz
Updated net/unison to latest version, 2.48.15.
I can't find a good changelog, but upstream changes seem to be fairly minor. A lot of local patches have been added to ensure compatibility with the latest version of OCaml and lablgtk, and I have cleaned up the package Makefile a little.
Diffstat (limited to 'net/unison/Makefile')
-rw-r--r--net/unison/Makefile29
1 files changed, 15 insertions, 14 deletions
diff --git a/net/unison/Makefile b/net/unison/Makefile
index dce8225e162..9fcf7d8051b 100644
--- a/net/unison/Makefile
+++ b/net/unison/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.111 2017/09/18 09:53:32 maya Exp $
+# $NetBSD: Makefile,v 1.112 2017/11/14 13:03:35 jaapb Exp $
-DISTNAME= unison-2.48.4
-PKGREVISION= 9
+DISTNAME= unison-2.48.15
CATEGORIES= net
-MASTER_SITES= http://www.seas.upenn.edu/~bcpierce/unison/download/releases/stable/
+MASTER_SITES= ${MASTER_SITE_GITHUB:=bcpierce00/}
MAINTAINER= tonio@NetBSD.org
HOMEPAGE= http://www.cis.upenn.edu/~bcpierce/unison/
@@ -22,15 +21,17 @@ BUILDLINK_ABI_DEPENDS.ocaml+= ocaml>=3.11.2
BUILDLINK_API_DEPENDS.ocaml-lablgtk+= ocaml-lablgtk>=2.16.0
# docs: unison-manual.pdf/html/ps/dvi
-WRKSRC= ${WRKDIR}/src
+#WRKSRC= ${WRKDIR}/src
USE_TOOLS+= gmake
-MAKE_FLAGS+= CFLAGS=""
+MAKE_FLAGS+= CFLAGS="" -C src
MAKE_ENV+= HOME=${WRKDIR:Q}
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
-.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH}=="arm") || (${MACHINE_ARCH} == "x86_64")
+.include "../../mk/ocaml.mk"
+
+.if (${OCAML_USE_OPT_COMPILER} == "true")
MAKE_FLAGS+= NATIVE=true
.else
MAKE_FLAGS+= NATIVE=false
@@ -48,13 +49,13 @@ INSTALLATION_DIRS= bin
INSTALLATION_DIRS+= share/doc/unison
post-install:
- ${INSTALL_MAN} ${WRKSRC}/BUGS.txt ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/CONTRIB ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/ROADMAP.txt ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/TODO.txt ${DESTDIR}${PREFIX}/share/doc/unison
+ ${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"