From e631dd19cabee17463e08b470eae76a8cf63df05 Mon Sep 17 00:00:00 2001 From: jperkin Date: Thu, 25 Feb 2016 14:42:55 +0000 Subject: Use OPSYSVARS. --- lang/ocaml/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lang/ocaml') diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile index a2f39cafe8f..d7e20420c3f 100644 --- a/lang/ocaml/Makefile +++ b/lang/ocaml/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.100 2015/09/08 18:54:41 joerg Exp $ +# $NetBSD: Makefile,v 1.101 2016/02/25 14:42:56 jperkin Exp $ .include "Makefile.common" @@ -70,11 +70,9 @@ PLIST_SRC+= ${PKGDIR}/PLIST INSTALL_MAKE_FLAGS+= SHELL=${SH:Q} .endif -.if ${OPSYS} == "NetBSD" -EXTRA_RT_LIBS= -lcurses -.else -EXTRA_RT_LIBS= -.endif +OPSYSVARS+= EXTRA_RT_LIBS +EXTRA_RT_LIBS.NetBSD= -lcurses +EXTRA_RT_LIBS.*= SUBST_CLASSES+= extra-rt-libs SUBST_FILES.extra-rt-libs= bytecomp/bytelink.ml -- cgit v1.2.3