pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc DESTDIR support
details: https://anonhg.NetBSD.org/pkgsrc/rev/7eb4d96f02be
branches: trunk
changeset: 570516:7eb4d96f02be
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat Jan 30 19:36:35 2010 +0000
description:
DESTDIR support
diffstat:
lang/ocamlduce/Makefile | 8 ++++++--
net/ocamlnet/Makefile | 4 +++-
net/ocamlnet/distinfo | 4 +++-
net/ocamlnet/patches/patch-aa | 17 +++++++++++++++++
net/ocamlnet/patches/patch-ab | 15 +++++++++++++++
security/ocaml-ssl/Makefile | 4 +++-
security/ocaml-ssl/distinfo | 3 ++-
security/ocaml-ssl/patches/patch-aa | 14 ++++++++++++++
8 files changed, 63 insertions(+), 6 deletions(-)
diffs (146 lines):
diff -r 9f68c53acc32 -r 7eb4d96f02be lang/ocamlduce/Makefile
--- a/lang/ocamlduce/Makefile Sat Jan 30 19:16:42 2010 +0000
+++ b/lang/ocamlduce/Makefile Sat Jan 30 19:36:35 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/09/07 21:53:30 tonio Exp $
+# $NetBSD: Makefile,v 1.6 2010/01/30 19:36:35 joerg Exp $
#
DISTNAME= ocamlduce-3.11.1.0
@@ -15,6 +15,8 @@
HOMEPAGE= http://ocamlduce.ocamlcore.org/
COMMENT= Library to integrate XML features into OCaml
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
USE_TOOLS+= gmake
@@ -22,7 +24,9 @@
INSTALL_TARGET= installbyte
MAKE_JOBS_SAFE= no
-MAKE_ENV= BINDIR=${PREFIX}/bin LIBDIR=${PREFIX}/lib/ocaml/site-lib
+MAKE_ENV+= BINDIR=${PREFIX}/bin LIBDIR=${PREFIX}/lib/ocaml/site-lib
+INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin \
+ LIBDIR=${DESTDIR}${PREFIX}/lib/ocaml/site-lib
PLIST_SRC= PLIST
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
diff -r 9f68c53acc32 -r 7eb4d96f02be net/ocamlnet/Makefile
--- a/net/ocamlnet/Makefile Sat Jan 30 19:16:42 2010 +0000
+++ b/net/ocamlnet/Makefile Sat Jan 30 19:36:35 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/10/18 19:50:06 zafer Exp $
+# $NetBSD: Makefile,v 1.4 2010/01/30 19:43:18 joerg Exp $
#
DISTNAME= ocamlnet-1.1.2
@@ -9,6 +9,8 @@
HOMEPAGE= http://projects.camlcity.org/projects/ocamlnet.html
COMMENT= Library focusing on application-level network protocols (OCaml)
+PKG_DESTDIR_SUPPORT= user-destdir
+
MAKE_JOBS_SAFE= no
DEPENDS+= pcre-ocaml-[0-9]*:../../devel/pcre-ocaml
diff -r 9f68c53acc32 -r 7eb4d96f02be net/ocamlnet/distinfo
--- a/net/ocamlnet/distinfo Sat Jan 30 19:16:42 2010 +0000
+++ b/net/ocamlnet/distinfo Sat Jan 30 19:36:35 2010 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/08/11 15:43:36 wiz Exp $
+$NetBSD: distinfo,v 1.2 2010/01/30 19:43:18 joerg Exp $
SHA1 (ocamlnet-1.1.2.tar.gz) = 09683bd8d2116449deaf96873424cebf569d65e7
RMD160 (ocamlnet-1.1.2.tar.gz) = 2c554571f53b99e7cd23dcf043bebc3c3f779435
Size (ocamlnet-1.1.2.tar.gz) = 817450 bytes
+SHA1 (patch-aa) = 17926b7a3096615f773fa3241030fb514b4a5f5d
+SHA1 (patch-ab) = d5815fae4ccb258c134d860b823a8c82aeff275a
diff -r 9f68c53acc32 -r 7eb4d96f02be net/ocamlnet/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ocamlnet/patches/patch-aa Sat Jan 30 19:36:35 2010 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1 2010/01/30 19:43:18 joerg Exp $
+
+--- src/netstring/Makefile.orig 2010-01-30 19:35:56.000000000 +0000
++++ src/netstring/Makefile
+@@ -172,9 +172,9 @@ netdb-packlist: mk_netdb
+
+ .PHONY: install-netdb
+ install-netdb:
+- mkdir -p $(NET_DB_DIR)
+- cp netdb/*.netdb $(NET_DB_DIR)
+- @echo "Installed .netdb files into $(NET_DB_DIR)"
++ mkdir -p ${DESTDIR}$(NET_DB_DIR)
++ cp netdb/*.netdb ${DESTDIR}$(NET_DB_DIR)
++ @echo "Installed .netdb files into ${DESTDIR}$(NET_DB_DIR)"
+ if [ "$(INSTMETHOD)" != "findlib" ]; then \
+ cat netdb-packlist >>$(LIBDIR)/packlist-$(PKGNAME); \
+ fi
diff -r 9f68c53acc32 -r 7eb4d96f02be net/ocamlnet/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ocamlnet/patches/patch-ab Sat Jan 30 19:36:35 2010 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2010/01/30 19:43:18 joerg Exp $
+
+--- src/Makefile.rules.orig 2006-03-06 16:59:47.000000000 +0000
++++ src/Makefile.rules
+@@ -92,8 +92,9 @@ uninstall: $(UNINSTOTHER) uninstall-$(IN
+
+ .PHONY: install-findlib
+ install-findlib:
++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}`$(OCAMLC) -where`/site-lib
+ files=`$(COLLECT_FILES) *.mli *.cmi *.cma *.cmxa *.a META $(INSTALL_EXTRA)` && \
+- $(OCAMLFIND) install $(PKGNAME) $$files
++ $(OCAMLFIND) install -destdir ${DESTDIR}`$(OCAMLC) -where`/site-lib $(PKGNAME) $$files
+
+ .PHONY: uninstall-findlib
+ uninstall-findlib:
diff -r 9f68c53acc32 -r 7eb4d96f02be security/ocaml-ssl/Makefile
--- a/security/ocaml-ssl/Makefile Sat Jan 30 19:16:42 2010 +0000
+++ b/security/ocaml-ssl/Makefile Sat Jan 30 19:36:35 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2010/01/17 12:02:42 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2010/01/30 19:44:50 joerg Exp $
#
DISTNAME= ocaml-ssl-0.4.2
@@ -10,6 +10,8 @@
HOMEPAGE= http://savonet.sourceforge.net/wiki/OCamlLibs
COMMENT= SSL library for OCaml
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
HAS_CONFIGURE= yes
diff -r 9f68c53acc32 -r 7eb4d96f02be security/ocaml-ssl/distinfo
--- a/security/ocaml-ssl/distinfo Sat Jan 30 19:16:42 2010 +0000
+++ b/security/ocaml-ssl/distinfo Sat Jan 30 19:36:35 2010 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2008/03/03 18:14:19 tonio Exp $
+$NetBSD: distinfo,v 1.4 2010/01/30 19:44:50 joerg Exp $
SHA1 (ocaml-ssl-0.4.2.tar.gz) = ec6362b681aa5498143ec0c4ddd77fbbe745a2aa
RMD160 (ocaml-ssl-0.4.2.tar.gz) = ba5b4106d19e0b3d50e9a19d705ef18a5b20948c
Size (ocaml-ssl-0.4.2.tar.gz) = 109090 bytes
+SHA1 (patch-aa) = e13b4c2f9ee38cb45f3eeb74f36a9887b194daf1
diff -r 9f68c53acc32 -r 7eb4d96f02be security/ocaml-ssl/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ocaml-ssl/patches/patch-aa Sat Jan 30 19:36:35 2010 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1 2010/01/30 19:44:51 joerg Exp $
+
+--- src/Makefile.in.orig 2010-01-30 19:40:05.000000000 +0000
++++ src/Makefile.in
+@@ -50,7 +50,8 @@ byte: byte-code-library
+ opt: native-code-library
+
+ install:
+- $(OCAMLFIND) install $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES)
++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}`ocamlc -where`/site-lib
++ $(OCAMLFIND) install -destdir ${DESTDIR}`ocamlc -where`/site-lib $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES)
+
+ uninstall:
+ $(OCAMLFIND) remove $(OCAMLFIND_INSTFLAGS) $(RESULT)
Home |
Main Index |
Thread Index |
Old Index