openbsd-ports/lang/ezm3/patches/patch-m3config_src_OpenBSD_386
naddy 4c17e1e178 Import ezm3-1.0; adapted from espie@'s lang/pm3 port.
Ezm3 is a smaller, more portable distribution of the Modula-3 compiler
and runtime system for people whose only need for Modula-3 is to build
CVSup.
2002-02-23 12:30:08 +00:00

63 lines
1.7 KiB
Plaintext

$OpenBSD: patch-m3config_src_OpenBSD_386,v 1.1.1.1 2002/02/23 12:30:18 naddy Exp $
--- m3config/src/OpenBSD_386.orig Tue Feb 19 23:09:46 2002
+++ m3config/src/OpenBSD_386 Tue Feb 19 23:10:35 2002
@@ -5,56 +5,7 @@
readonly TARGET = "OpenBSD_386"
include("COMMON")
+include("OpenBSD")
-INSTALL_ROOT = "/usr/local"
-X11ROOT = "/usr/X11R6/lib"
-
-PLATFORM_SUPPORTS_MOTIF = ""
% PLATFORM_SUPPORTS_SHARED_LIB = "T"
-INSTALL_IMPLS = ""
-SKIP_M3GDB = "T"
-SKIP_GNUEMACS = "T"
-
-ASM = ["as", "-k", "-o"]
-BOPT_FLAG = "-O"
-BPIC_FLAG = ["-O0", "-fPIC"]
-CC = ["cc","-c"]
-GNU_CC = "cc"
-GNU_CFLAGS = []
-LINK = ["cc"]
-MAKELIB = [ "ar", "cru" ]
-MAKESHLIB = ["cc","-shared"]
-M3CC_MAKE = ["gmake", "BISON=yacc"]
-OPT_FLAG = "-O"
-RANLIB = ["ranlib"]
-RPATH_FLAG = "-R"
-RPATH_prefix = ""
-RPATH_LIB_USE_ONLY = "T"
-
-% OpenBSD/a.out requires a major and minor version number on each shared
-% library. Don't try to derive these from the PM3 version number. That
-% approach does not work out well in practice.
-SHLIB_VERSION = "0.1"
-
-proc m3_make_shared_lib (lib, objects, imported_libs) is
- local lib_sox = format ("lib%s.so.%s", lib, SHLIB_VERSION)
- local cmd = [MAKESHLIB_CMD, "-o", lib_sox, objects]
-
- if VERBOSE write(cmd, CR) end
- return exec(cmd)
-end
-
-proc m3_note_shlib(lib) is
- if Options{"shared_lib"}[0] and PLATFORM_SUPPORTS_SHARED_LIB
- local lib_sox = format ("lib%s.so.%s", lib, SHLIB_VERSION)
-
- if defined ("_all")
- install_derived(lib_sox)
- install_link(lib_sox,
- LIB_TO_PKG_USE & SL & PACKAGE & SL & BUILD_DIR, LIB_INSTALL)
- end
- deriveds (lib_sox, [""])
- end
-end
-
-setDefault("","")
+ASM = ["as", "-k", "-K", "-o"]