summaryrefslogtreecommitdiff
path: root/lang/ocaml/Makefile
diff options
context:
space:
mode:
authordanw <danw>2004-04-24 14:45:15 +0000
committerdanw <danw>2004-04-24 14:45:15 +0000
commit4a79e0f53e40e785777552ce5f1dd17b3955dfe8 (patch)
treeaaf141a1e14202eb6f277f28861eb08d0bbab7f6 /lang/ocaml/Makefile
parent699a75b70e7e804f2f10c693dfda0897125dd756 (diff)
downloadpkgsrc-4a79e0f53e40e785777552ce5f1dd17b3955dfe8.tar.gz
Two Darwin fixes:
- split out the profiled libraries in the PLIST, because they don't get built on Darwin. - set INSTALL_UNSTRIPPED on Darwin for both ocaml itself and anything that directly depends on it, because the ocaml compiler generates binaries that don't strip properly.
Diffstat (limited to 'lang/ocaml/Makefile')
-rw-r--r--lang/ocaml/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile
index b9d5fb2b4e3..a28d60908d1 100644
--- a/lang/ocaml/Makefile
+++ b/lang/ocaml/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2004/04/22 12:44:30 jschauma Exp $
+# $NetBSD: Makefile,v 1.31 2004/04/24 14:45:15 danw Exp $
DISTNAME= ocaml-3.06
PKGREVISION= 6
@@ -26,6 +26,10 @@ ALL_TARGET= world
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Darwin"
+INSTALL_UNSTRIPPED= yes
+.endif
+
post-extract:
${CP} ${WRKSRC}/asmrun/power-elf.S ${WRKSRC}/asmrun/power-bsd.S
@@ -40,6 +44,9 @@ post-build:
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "sparc")
PLIST_SRC= ${PKGDIR}/PLIST.opt ${PKGDIR}/PLIST
+. if ${OPSYS} != "Darwin"
+PLIST_SRC+= ${PKGDIR}/PLIST.prof
+. endif
.else
PLIST_SRC= ${PKGDIR}/PLIST
.endif