$!---------------vms_make.com for Freetype2------------------------------------ $! make Freetype2 under OpenVMS $! $! In case of problems with the build you might want to contact me at $! zinser@decus.de(preferred) or zinser@sysdev.deutsche-boerse.com (Work) $! $!------------------------------------------------------------------------------ $! $! Just some general constants $! $ true = 1 $ false = 0 $ Make = "" $! $! Setup variables holding "config" information $! $ name = "Freetype2" $ mapfile = name + ".map" $ optfile = name + ".opt" $ ccopt = "/name=(as_is,short)/float=ieee" $ lopts = "" $! $! Check for MMK/MMS $! $ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS" $ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK" $! $! Which command parameters were given $! $ gosub check_opts $! $ gosub crea_mms $ 'Make' /macro=(comp_flags="''ccopt'") $ delete/nolog/noconf ccop.mms;*,descrip.fdl;* $ purge/nolog descrip.mms $! $! Create option file $! $ open/write optf 'optfile' $FLOOP: $ file = f$search("[...]*.obj") $ if (file .nes. "") $ then $ if f$locate("FT2DEMOS",file) .eqs. f$length(file) then write optf file $ goto floop $ endif $ close optf $! $! $! Alpha gets a shareable image $! $ If f$getsyi("ARCH_TYPE") .gt. 1 $ Then $!! switch off messages to supress linking warnings when compiling without $!! all the libraries $ rename [.lib]freetype.olb [.lib]freetype32.olb $ set mess/notext/nofac/noid/nosev $ LINK_/noinf/NODEB/NOSHARE/NOEXE/MAP='mapfile'/full 'optfile'/opt $ set mess/text/fac/id/sev $ copy Freetype2.opt_vms _link.opt $ open/append optf 'optfile' $! write optf "libz_shr32/share" $ close optf $ LINK_/NODEB/SHARE=[.lib]freetypeshr32-2_1_4.exe 'optfile'/opt,_link.opt/opt $ dele/noconf 'mapfile';* $ endif $! $ exit $! $!------------------------------------------------------------------------------ $! $! If MMS/MMK are available dump out the descrip.mms if required $! $CREA_MMS: $ write sys$output "Creating descrip.mms..." $ copy sys$input: descrip.mms $ deck # # FreeType 2 build system -- top-level Makefile for OpenVMS # # Copyright 2001 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LICENSE.TXT. By continuing to use, modify, or distribute this file you # indicate that you have read the license and understand and accept it # fully. all : define freetype [--.include.freetype] define psaux [-.psaux] define autohint [-.autohint] define base [-.base] define cache [-.cache] define cff [-.cff] define cid [-.cid] define pcf [-.pcf] define psnames [-.psnames] define raster [-.raster] define sfnt [-.sfnt] define smooth [-.smooth] define truetype [-.truetype] define type1 [-.type1] define winfonts [-.winfonts] if f$search("lib.dir") .eqs. "" then create/directory [.lib] set default [.builds.vms] $(MMS)$(MMSQUALIFIERS) set default [--.src.autohint] $(MMS)$(MMSQUALIFIERS) set default [-.base] $(MMS)$(MMSQUALIFIERS) set default [-.bdf] $(MMS)$(MMSQUALIFIERS) set default [-.cache] $(MMS)$(MMSQUALIFIERS) set default [-.cff] $(MMS)$(MMSQUALIFIERS) set default [-.cid] $(MMS)$(MMSQUALIFIERS) set default [-.gzip] $(MMS)$(MMSQUALIFIERS) set default [-.pcf] $(MMS)$(MMSQUALIFIERS) set default [-.pfr] $(MMS)$(MMSQUALIFIERS) set default [-.psaux] $(MMS)$(MMSQUALIFIERS) set default [-.pshinter] $(MMS)$(MMSQUALIFIERS) set default [-.psnames] $(MMS)$(MMSQUALIFIERS) set default [-.raster] $(MMS)$(MMSQUALIFIERS) set default [-.sfnt] $(MMS)$(MMSQUALIFIERS) set default [-.smooth] $(MMS)$(MMSQUALIFIERS) set default [-.truetype] $(MMS)$(MMSQUALIFIERS) set default [-.type1] $(MMS)$(MMSQUALIFIERS) set default [-.type42] $(MMS)$(MMSQUALIFIERS) set default [-.winfonts] $(MMS)$(MMSQUALIFIERS) set default [--] # EOF $ eod $ anal/rms/fdl descrip.mms $ open/write mmsf ccop.mms $ write mmsf "CFLAGS = ", ccopt $ close mmsf $ convert/fdl=descrip.fdl ccop.mms ccop.mms $ copy ccop.mms,descrip.mms;-1 descrip.mms $ return $!------------------------------------------------------------------------------ $! $! Check command line options and set symbols accordingly $! $ CHECK_OPTS: $ i = 1 $ OPT_LOOP: $ if i .lt. 9 $ then $ cparm = f$edit(p'i',"upcase") $ if cparm .eqs. "DEBUG" $ then $ ccopt = ccopt + "/noopt/deb" $ lopts = lopts + "/deb" $ endif $! if cparm .eqs. "LINK" then linkonly = true $ if f$locate("LOPTS",cparm) .lt. f$length(cparm) $ then $ start = f$locate("=",cparm) + 1 $ len = f$length(cparm) - start $ lopts = lopts + f$extract(start,len,cparm) $ endif $ if f$locate("CCOPT",cparm) .lt. f$length(cparm) $ then $ start = f$locate("=",cparm) + 1 $ len = f$length(cparm) - start $ ccopt = ccopt + f$extract(start,len,cparm) $ endif $ i = i + 1 $ goto opt_loop $ endif $ return