summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2017-07-13 11:53:15 +0000
committerjaapb <jaapb@pkgsrc.org>2017-07-13 11:53:15 +0000
commit1db037dcb20173ef7a3a5b2d7fb3607c3c4643c8 (patch)
treede8feeb7bed53a53f8b7c6d1d78e86d3f954b23d /x11
parentd525cf07794a37c9e04e65a93740109924b56475 (diff)
downloadpkgsrc-1db037dcb20173ef7a3a5b2d7fb3607c3c4643c8.tar.gz
Updated package to deal with changes to ocamlfind wrapper
Diffstat (limited to 'x11')
-rw-r--r--x11/ocaml-lablgtk/Makefile6
-rw-r--r--x11/ocaml-lablgtk/distinfo5
-rw-r--r--x11/ocaml-lablgtk/patches/patch-configure14
-rw-r--r--x11/ocaml-lablgtk/patches/patch-src_Makefile13
4 files changed, 27 insertions, 11 deletions
diff --git a/x11/ocaml-lablgtk/Makefile b/x11/ocaml-lablgtk/Makefile
index b74f33325a4..32b66266e84 100644
--- a/x11/ocaml-lablgtk/Makefile
+++ b/x11/ocaml-lablgtk/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2017/07/11 14:19:23 jaapb Exp $
+# $NetBSD: Makefile,v 1.26 2017/07/13 11:53:15 jaapb Exp $
DISTNAME= lablgtk-2.18.5
PKGNAME= ocaml-${DISTNAME}
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= x11
MASTER_SITES= https://forge.ocamlcore.org/frs/download.php/1627/
@@ -26,6 +26,8 @@ BUILDLINK_DEPMETHOD.ocaml= full
CONFLICTS= lablgtk-[0-9]*
SUPERSEDES= lablgtk-[0-9]*
+CONFIGURE_ENV+= OCAML_SITELIBDIR="${OCAML_SITELIBDIR}"
+
.include "../../mk/bsd.prefs.mk"
# Stub libraries for functions missing from base system.
diff --git a/x11/ocaml-lablgtk/distinfo b/x11/ocaml-lablgtk/distinfo
index 5f4d3ee04c2..d8dce34c321 100644
--- a/x11/ocaml-lablgtk/distinfo
+++ b/x11/ocaml-lablgtk/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.7 2016/08/24 10:51:53 wiz Exp $
+$NetBSD: distinfo,v 1.8 2017/07/13 11:53:15 jaapb Exp $
SHA1 (lablgtk-2.18.5.tar.gz) = 8e0a64ba9c194a8affb03856a6acf6fcd06ad1e4
RMD160 (lablgtk-2.18.5.tar.gz) = c9dcdff500a67b02b32ac8d2d965bd1bde6eaba3
SHA512 (lablgtk-2.18.5.tar.gz) = 7b6ba1a4dfa82cc3bbc502082ff4fccc23cc06ee4f30d01a2e423f3f99e945a4befe450d230b5aa19c5b810e9f46f2838655099d49da2db7c8a2e52eac213024
Size (lablgtk-2.18.5.tar.gz) = 808005 bytes
-SHA1 (patch-src_Makefile) = a24fafdbc273863e110d4becb79f849053ec9a9c
+SHA1 (patch-configure) = 8863e7bb0597e472063021f01c307e8e14c9b3b0
+SHA1 (patch-src_Makefile) = 79d133a88af4ee3efd668ebeff1767eae1a0ca76
diff --git a/x11/ocaml-lablgtk/patches/patch-configure b/x11/ocaml-lablgtk/patches/patch-configure
new file mode 100644
index 00000000000..61a5766a266
--- /dev/null
+++ b/x11/ocaml-lablgtk/patches/patch-configure
@@ -0,0 +1,14 @@
+$NetBSD: patch-configure,v 1.1 2017/07/13 11:53:16 jaapb Exp $
+
+The ocamlfind wrapper now includes DESTDIR, so do not use it
+--- configure.orig 2016-08-10 03:33:56.000000000 +0000
++++ configure
+@@ -2679,7 +2679,7 @@ if test "$OCAMLFIND" = no; then
+ FINDLIBDIR=""
+ OCAMLLDCONF=""
+ else
+-FINDLIBDIR="`ocamlfind printconf destdir | tr -d '\\r'`"
++FINDLIBDIR="${PREFIX}/${OCAML_SITELIBDIR}"
+ echo "$OCAMLFIND library path is $FINDLIBDIR"
+ OCAMLLDCONF="`ocamlfind printconf ldconf | tr -d '\\r'`"
+ echo "$OCAMLFIND ldconf path is $OCAMLLDCONF"
diff --git a/x11/ocaml-lablgtk/patches/patch-src_Makefile b/x11/ocaml-lablgtk/patches/patch-src_Makefile
index 4ce23e960bc..e806f1fd780 100644
--- a/x11/ocaml-lablgtk/patches/patch-src_Makefile
+++ b/x11/ocaml-lablgtk/patches/patch-src_Makefile
@@ -1,18 +1,17 @@
-$NetBSD: patch-src_Makefile,v 1.1 2014/10/10 08:37:49 jaapb Exp $
+$NetBSD: patch-src_Makefile,v 1.2 2017/07/13 11:53:16 jaapb Exp $
Do not create an ld.conf, this is done afterwards through the PLIST
---- src/Makefile.orig 2013-10-01 08:31:50.000000000 +0000
+--- src/Makefile.orig 2016-08-10 03:33:56.000000000 +0000
+++ src/Makefile
-@@ -395,10 +395,10 @@ findlib-install:
+@@ -402,10 +402,7 @@ findlib-install:
exit 2; fi
mkdir -p "$(BINDIR)"
mkdir -p "$(DESTDIR)$(FINDLIBDIR)"
- @if test -f "$(DESTDIR)$(OCAMLLDCONF)"; then :; else \
-+# @if test -f "$(DESTDIR)$(OCAMLLDCONF)"; then :; else \
- touch "$(DESTDIR)$(OCAMLLDCONF)"; fi
- $(OCAMLFIND) install -destdir "$(DESTDIR)$(FINDLIBDIR)" \
+- touch "$(DESTDIR)$(OCAMLLDCONF)"; fi
+- $(OCAMLFIND) install -destdir "$(DESTDIR)$(FINDLIBDIR)" \
- -ldconf "$(DESTDIR)$(OCAMLLDCONF)" \
-+ -ldconf ignore \
++ $(OCAMLFIND) install \
lablgtk2 ../META \
build.ml \
$(CLIBS) \