View | Details | Raw Unified | Return to bug 188354
Collapse All | Expand All

(-)devel/ocaml-classes/Makefile (-7 / +5 lines)
Lines 2-23 Link Here
2
# $FreeBSD: head/devel/ocaml-classes/Makefile 340722 2014-01-22 17:00:46Z mat $
2
# $FreeBSD: head/devel/ocaml-classes/Makefile 340722 2014-01-22 17:00:46Z mat $
3
3
4
PORTNAME=	classes
4
PORTNAME=	classes
5
PORTVERSION=	3.05
5
PORTVERSION=	4.00
6
PORTREVISION=	3
7
CATEGORIES=	devel
6
CATEGORIES=	devel
8
MASTER_SITES=	http://caml.inria.fr/pub/distrib/bazar-ocaml/ \
7
MASTER_SITES=	http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/
9
		http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/
10
PKGNAMEPREFIX=	ocaml-
8
PKGNAMEPREFIX=	ocaml-
11
DISTNAME=	ocaml-${PORTNAME}-${PORTVERSION}
9
DISTNAME=	ocaml-${PORTNAME}-${PORTVERSION}
12
10
13
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
14
COMMENT=	Ocaml Object interface for ocaml's standard library modules
12
COMMENT=	Ocaml Object interface for ocaml's standard library modules
15
13
14
LICENSE=	LGPL21
15
16
BUILD_DEPENDS=	ocamlc:${PORTSDIR}/lang/ocaml
16
BUILD_DEPENDS=	ocamlc:${PORTSDIR}/lang/ocaml
17
RUN_DEPENDS:=	${BUILD_DEPENDS}
17
RUN_DEPENDS:=	${BUILD_DEPENDS}
18
18
19
NO_STAGE=	yes
19
MAKE_ENV=	INSTALL="${INSTALL_DATA}"
20
post-extract:
21
	@${CP} ${FILESDIR}/META ${WRKSRC}
22
20
23
.include <bsd.port.mk>
21
.include <bsd.port.mk>
(-)devel/ocaml-classes/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (ocaml-classes-3.05.tar.gz) = 103cbb4113c673a383b9ec33d3aecf5383808dfddfec60901ec84c6e77902ab7
1
SHA256 (ocaml-classes-4.00.tar.gz) = e62d37e11e608f9340d5477dae68b110b475242d7ea2fdb8c0330ad76f95b5f0
2
SIZE (ocaml-classes-3.05.tar.gz) = 10205
2
SIZE (ocaml-classes-4.00.tar.gz) = 20269
(-)devel/ocaml-classes/files/META (-6 lines)
Lines 1-6 Link Here
1
name="classes"
2
version="3.05"
3
description="Object interface for standard library modules"
4
requires=""
5
archive(byte)="stdclass.cma"
6
archive(native)="stdclass.cmxa"
(-)devel/ocaml-classes/files/patch-Makefile (-11 / +9 lines)
Lines 1-21 Link Here
1
--- Makefile.orig	Thu Apr 18 16:39:26 2002
1
--- Makefile.orig	Thu Apr 18 16:39:26 2002
2
+++ Makefile	Tue Aug  1 12:53:14 2006
2
+++ Makefile	Tue Aug  1 12:53:14 2006
3
@@ -1,10 +1,12 @@
3
@@ -1,10 +1,10 @@
4
 #Adjust this directory for installation
4
 #Adjust this directory for installation
5
-LIBDIR=`ocamlc -where`
5
-LIBDIR=`ocamlc -where`
6
+LIBDIR=$(LOCALBASE)/lib/ocaml/site-lib/classes
6
+LIBDIR=$(PREFIX)/lib/ocaml/site-lib/classes
7
+DISTDIR=$(PREFIX)/lib/ocaml/site-lib/classes
8
 COMPILER=ocamlc -c
7
 COMPILER=ocamlc -c
9
 LIBRARIAN=ocamlc -a
8
 LIBRARIAN=ocamlc -a
10
 OPTCOMP=ocamlopt -c
9
 OPTCOMP=ocamlopt -c
11
 OPTLIB=ocamlopt -a
10
 OPTLIB=ocamlopt -a
12
-INSTALL=cp
11
-INSTALL=cp
13
+INSTALL=install -o root -g wheel -m 644
12
+INSTALL?=install -o root -g wheel -m 644
14
+INSTALLDIR=install -d -o root -g wheel -m 755
15
 
13
 
16
 OBJECTS=obuffer.cmo	ohashtbl.cmo	oqueue.cmo	ostack.cmo \
14
 OBJECTS=obuffer.cmo	ohashtbl.cmo	oqueue.cmo	ostack.cmo \
17
 	omap.cmo	oset.cmo	ostream.cmo	omapping.cmo
15
 	omap.cmo	oset.cmo	ostream.cmo	omapping.cmo
18
@@ -16,13 +18,13 @@
16
@@ -16,13 +16,13 @@
19
 .SUFFIXES: .ml .mli .cmo .cmi .cmx
17
 .SUFFIXES: .ml .mli .cmo .cmi .cmx
20
 
18
 
21
 .ml.cmo:
19
 .ml.cmo:
Lines 32-49 Link Here
32
 
30
 
33
 all: stdclass.cma
31
 all: stdclass.cma
34
 opt: stdclass.cmxa
32
 opt: stdclass.cmxa
35
@@ -43,12 +45,15 @@
33
@@ -43,12 +43,15 @@
36
 	@$(MAKE) real-install LIBDIR=$(LIBDIR)
34
 	@$(MAKE) real-install LIBDIR=$(LIBDIR)
37
 
35
 
38
 real-install:
36
 real-install:
39
-	$(INSTALL) stdclass.cma *.cmi *.mli $(LIBDIR)
37
-	$(INSTALL) stdclass.cma *.cmi *.mli $(LIBDIR)
40
+	$(INSTALLDIR) $(DISTDIR)
38
+	mkdir -p $(DESTDIR)$(LIBDIR)
41
+	$(INSTALL) stdclass.cma *.cmi *.mli $(DISTDIR)
39
+	$(INSTALL) stdclass.cma *.cmi *.mli $(DESTDIR)$(LIBDIR)
42
 	if test -f stdclass.cmxa; \
40
 	if test -f stdclass.cmxa; \
43
-	then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(LIBDIR); fi
41
-	then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(LIBDIR); fi
44
+	then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(DISTDIR); fi
42
+	then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(DESTDIR)$(LIBDIR); fi
45
+	if test -f META; \
43
+	if test -f META; \
46
+	then $(INSTALL) META $(DISTDIR); fi
44
+	then $(INSTALL) META $(DESTDIR)$(LIBDIR); fi
47
 
45
 
48
 clean:
46
 clean:
49
-	rm -f *.cm* *.o *.a *~ #*
47
-	rm -f *.cm* *.o *.a *~ #*

Return to bug 188354