$NetBSD: patch-aa,v 1.8 2016/03/09 20:19:31 tnn Exp $ Configure for pkgsrc. XXX: should not be using LOCALBASE. --- Makefile.inc.orig 2004-01-19 15:03:37.000000000 +0000 +++ Makefile.inc @@ -2,13 +2,13 @@ # Where to install stuff -MOSMLHOME=${HOME}/mosml +MOSMLHOME=${PREFIX} # Various utility programs INSTALL_PROGRAM=cp INSTALL_SCRIPT=cp INSTALL_DATA=cp -PERL=perl +PERL=${LOCALBASE}/bin/perl # To compile the runtime system camlrunm with support for # dynamically loadable libraries (DDLs), uncomment these: @@ -45,13 +45,13 @@ DYNLD=ld -shared # For NetBSD, use: # ------------------------ -# CPP=/usr/bin/cpp -P -traditional -Dunix -Umsdos -# STRIP=/usr/bin/strip -# ADDRUNCFLAGS=-fPIC -# ADDDYNLIBCFLAGS=-fPIC -# INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM} -# INSTALL_SCRIPT=${BSD_INSTALL_SCRIPT} -# INSTALL_DATA=${BSD_INSTALL_DATA} +CPP=cpp -P -traditional -Dunix -Umsdos +STRIP=strip +ADDRUNCFLAGS=-fPIC +ADDDYNLIBCFLAGS=-fPIC +INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM} +INSTALL_SCRIPT=${BSD_INSTALL_SCRIPT} +INSTALL_DATA=${BSD_INSTALL_DATA} # For Solaris 2 (not SunOS 4), use: # --------------------------------- @@ -114,12 +114,12 @@ SHELL=/bin/sh # DOCDIR contains documentation BINDIR=${MOSMLHOME}/bin -LIBDIR=${MOSMLHOME}/lib -INCDIR=${MOSMLHOME}/include -DOCDIR=${MOSMLHOME}/doc -TOOLDIR=${MOSMLHOME}/tools -# LIBDIR=${MOSMLHOME}/lib/moscow_ml -# TOOLDIR=${MOSMLHOME}/libexec/moscow_ml +#LIBDIR=${MOSMLHOME}/lib +INCDIR=${MOSMLHOME}/include/moscow_ml +DOCDIR=${MOSMLHOME}/share/doc/moscow_ml +#TOOLDIR=${MOSMLHOME}/tools +LIBDIR=${MOSMLHOME}/lib/moscow_ml +TOOLDIR=${MOSMLHOME}/libexec/moscow_ml CAMLRT=../runtime