pkgsrc-ng/lang/ocaml/patches/patch-byterun_Makefile
2013-09-26 17:14:40 +02:00

24 lines
757 B
Plaintext

$NetBSD: patch-byterun_Makefile,v 1.1 2012/10/08 15:05:33 jaapb Exp $
Use BSD_INSTALL_* instead of mkdir and cp
--- byterun/Makefile.orig 2012-06-04 16:33:59.000000000 +0000
+++ byterun/Makefile
@@ -15,7 +15,7 @@
include Makefile.common
-CFLAGS=-DCAML_NAME_SPACE -O $(BYTECCCOMPOPTS) $(IFLEXDIR)
+CFLAGS+=-DCAML_NAME_SPACE -O $(BYTECCCOMPOPTS) $(IFLEXDIR)
DFLAGS=-DCAML_NAME_SPACE -g -DDEBUG $(BYTECCCOMPOPTS) $(IFLEXDIR)
OBJS=$(COMMONOBJS) unix.o main.o
@@ -48,7 +48,7 @@ libcamlrun_shared.so: $(PICOBJS)
install::
if test -f libcamlrun_shared.so; then \
- cp libcamlrun_shared.so $(LIBDIR)/libcamlrun_shared.so; fi
+ $(BSD_INSTALL_PROGRAM) libcamlrun_shared.so $(LIBDIR)/libcamlrun_shared.so; fi
clean::
rm -f libcamlrun_shared.so