Permalink
Browse files

More patches for OpenVMS

  • Loading branch information...
1 parent b2b1e27 commit 31022d451243bedb28d6e7f2545c1a07b2072df5 George Williams committed Nov 18, 2005
Showing with 64 additions and 25 deletions.
  1. +54 −19 fontforge/descrip.mms
  2. +1 −0 fontforge/lff.opt
  3. +7 −3 inc/dynamic.h
  4. +2 −3 plugins/descrip.mms
View
@@ -1,36 +1,71 @@
CFLAGS=/nowarn/incl=([-.inc])/name=(as_is,short)/define=("NODYNAMIC=1",\
- "FONTFORGE_CONFIG_DEVICETABLES=1")
+ "FONTFORGE_CONFIG_DEVICETABLES=1","PLUGINDIR=""/FONTFORGE$PLUGINS""")
fontforge_OBJECTS = alignment.obj,autohint.obj,autosave.obj,autowidth.obj,\
bitmapdlg.obj,metafont.obj,parsettfbmf.obj,\
- bitmapview.obj,bvedit.obj,charview.obj,charviewicons.obj,cursors.obj,\
- cvaddpoints.obj,cvexport.obj,cvgetinfo.obj,cvhints.obj,cvimages.obj,cvknife.obj,\
- cvpalettes.obj,cvpointer.obj,cvruler.obj,cvshapes.obj,cvstroke.obj,cvtranstools.obj,\
- cvundoes.obj,dumpbdf.obj,dumppfa.obj,fontinfo.obj,fontview.obj,fvcomposit.obj,\
- fvfonts.obj,fvimportbdf.obj,fvmetrics.obj,images.obj,metricsview.obj,\
- parsepfa.obj,parsettf.obj,prefs.obj,psread.obj,psunicodenames.obj,savefontdlg.obj,\
- sfd.obj,splashimage.obj,splinefill.obj,splineoverlap.obj,splinesave.obj,\
+ bitmapview.obj,bvedit.obj,charview.obj,charviewicons.obj,cursors.obj
+
+fontforge_OBJECTS1=cvaddpoints.obj,cvexport.obj,cvgetinfo.obj,cvhints.obj,cvimages.obj,cvknife.obj,\
+cvpalettes.obj,cvpointer.obj,cvruler.obj,cvshapes.obj,cvstroke.obj,cvtranstools.obj
+
+fontforge_OBJECTS2=cvundoes.obj,dumpbdf.obj,dumppfa.obj,fontinfo.obj,fontview.obj,fvcomposit.obj,\
+ fvfonts.obj,fvimportbdf.obj,fvmetrics.obj,images.obj,metricsview.obj,\
+ parsepfa.obj,parsettf.obj,prefs.obj,psread.obj,psunicodenames.obj,savefontdlg.obj
+
+fontforge_OBJECTS3=sfd.obj,splashimage.obj,splinefill.obj,splineoverlap.obj,splinesave.obj,\
splinesaveafm.obj,splinestroke.obj,splineutil.obj,splineutil2.obj,stamp.obj,\
- start.obj,tottf.obj,transform.obj,uiutil.obj,utils.obj,windowmenu.obj, \
- zapfnomen.obj,othersubrs.obj,autotrace.obj,openfontdlg.obj,encoding.obj,print.obj,\
+ start.obj,tottf.obj,transform.obj,uiutil.obj,utils.obj,windowmenu.obj
+
+fontforge_OBJECTS4=zapfnomen.obj,othersubrs.obj,autotrace.obj,openfontdlg.obj,encoding.obj,print.obj,\
problems.obj,crctab.obj,macbinary.obj,scripting.obj
-fontforge_OBJECTS2=displayfonts.obj,combinations.obj,sftextfield.obj,ikarus.obj,\
+fontforge_OBJECTS5=displayfonts.obj,combinations.obj,sftextfield.obj,ikarus.obj,\
cvfreehand.obj,cvhand.obj,simplifydlg.obj,winfonts.obj,freetype.obj,\
- gotodlg.obj,search.obj,tottfgpos.obj,charinfo.obj,tottfaat.obj,\
- splineorder2.obj,genttfinstrs.obj,ttfinstrs.obj,cvgridfit.obj,\
+ gotodlg.obj,search.obj,tottfgpos.obj,charinfo.obj,tottfaat.obj
+
+fontforge_OBJECTS6=splineorder2.obj,genttfinstrs.obj,ttfinstrs.obj,cvgridfit.obj,\
cvdebug.obj,showatt.obj,kernclass.obj,nonlineartrans.obj,effects.obj,\
- histograms.obj,ttfspecial.obj,svg.obj,parsettfatt.obj,contextchain.obj,\
- macenc.obj,statemachine.obj,typofeatures.obj,splinerefigure.obj,mm.obj,\
+ histograms.obj,ttfspecial.obj,svg.obj,parsettfatt.obj,contextchain.obj
+
+fontforge_OBJECTS7=macenc.obj,statemachine.obj,typofeatures.obj,splinerefigure.obj,mm.obj,\
parsettfvar.obj,tottfvar.obj,pua.obj,stemdb.obj,anchorsaway.obj,\
palmfonts.obj,cvdgloss.obj,groups.obj,parsepdf.obj,plugins.obj
-fontforge.exe : main.obj $(fontforge_OBJECTS) $(fontforge_OBJECTS2) xlib.opt
- library/create tmp.olb $(fontforge_OBJECTS)
- library tmp.olb $(fontforge_OBJECTS2)
- link/exec=fontforge.exe main,tmp/lib,[-.libs]LIBGDRAW/lib,\
+fontforge.exe : main.obj lff.opt xlib.opt [-.libs]libfontforge.exe
+ link/exec=fontforge.exe main,lff/opt,[-.libs]LIBGDRAW/lib,\
LIBGUNICODE/lib,[]xlib.opt/opt
+[-.libs]libfontforge.exe : $(fontforge_OBJECTS) $(fontforge_OBJECTS1)\
+ $(fontforge_OBJECTS2) $(fontforge_OBJECTS4) $(fontforge_OBJECTS5)\
+ $(fontforge_OBJECTS6) $(fontforge_OBJECTS7)
+ @ WRITE_ SYS$OUTPUT " generating lff1.opt"
+ @ OPEN_/WRITE FILE lff1.opt
+ @ WRITE_ FILE "!"
+ @ WRITE_ FILE "! lff1.opt generated by DESCRIP.$(MMS_EXT)"
+ @ WRITE_ FILE "!"
+ @ WRITE_ FILE "IDENTIFICATION=""lff"""
+ @ WRITE_ FILE "GSMATCH=LEQUAL,1,0
+ @ WRITE_ FILE "$(fontforge_OBJECTS)"
+ @ WRITE_ FILE "$(fontforge_OBJECTS1)"
+ @ WRITE_ FILE "$(fontforge_OBJECTS2)"
+ @ WRITE_ FILE "$(fontforge_OBJECTS3)"
+ @ WRITE_ FILE "$(fontforge_OBJECTS4)"
+ @ WRITE_ FILE "$(fontforge_OBJECTS5)"
+ @ WRITE_ FILE "$(fontforge_OBJECTS6)"
+ @ WRITE_ FILE "$(fontforge_OBJECTS7)"
+ @ CLOSE_ FILE
+ @ $(MMS)$(MMSQUALIFIERS)/ignore=warning lff_vms
+ @ WRITE_ SYS$OUTPUT " linking libfontforge.exe ..."
+ @ LINK_/NODEB/SHARE=[-.libs]libfontforge.exe/MAP=lff.map/FULL lff1.opt/opt,\
+ lff_vms.opt/opt,[-.libs]LIBGDRAW/lib,LIBGUNICODE/lib,\
+ [-.fontforge]xlib.opt/opt
+
+lff_vms :
+ @ WRITE_ SYS$OUTPUT " generating lff.map ..."
+ @ LINK_/NODEB/NOSHARE/NOEXE/MAP=lff.map/FULL lff1.opt/OPT
+ @ WRITE_ SYS$OUTPUT " analyzing lff.map ..."
+ @ @[-.plugins]ANALYZE_MAP.COM lff.map lff_vms.opt
+
alignment.obj : alignment.c
autohint.obj : autohint.c
autosave.obj : autosave.c
View
@@ -0,0 +1 @@
+[-.libs]libfontforge.exe/share
View
@@ -1,4 +1,4 @@
-/* Vague support for two different shared library formats */
+/* Vague support for several different shared library formats */
/* Everyone but the mac uses a varient of dlopen, while the mac uses NSAddImage */
/* Under cygwin the shared libs have very strange names which bare little */
/* resemblance to what we expect. GNU creates a .la file that tells us what */
@@ -23,8 +23,12 @@
# define dlopen(name,foo) libtool_laopen(name,foo)
void *libtool_laopen(const char *filename, int flags);
# endif
-# define SO_EXT ".so"
-# define DL_CONST
+#ifdef __VMS
+# define SO_EXT ".exe"
+#else
+# define SO_EXT ".so"
+#endif
+#define DL_CONST
# endif
#endif
View
@@ -1,7 +1,7 @@
CFLAGS=/nowarn/incl=([-.inc],[-.fontforge])/name=(as_is,short)/define=("NODYNAMIC=1",\
"FONTFORGE_CONFIG_DEVICETABLES=1")
-gb12345.exe : gb12345.obj [-.fontforge]tmp.olb
+gb12345.exe : gb12345.obj [-.fontforge]lff.opt
@ WRITE_ SYS$OUTPUT " generating gb12345.opt"
@ OPEN_/WRITE FILE gb12345.opt
@ WRITE_ FILE "!"
@@ -14,8 +14,7 @@ gb12345.exe : gb12345.obj [-.fontforge]tmp.olb
@ $(MMS)$(MMSQUALIFIERS)/ignore=warning gb12345_vms
@ WRITE_ SYS$OUTPUT " linking gb12345.exe ..."
@ LINK_/NODEB/SHARE=gb12345.exe/MAP=gb12345.map/FULL gb12345.opt/opt,\
- [-.fontforge]tmp.olb/lib,[-.libs]LIBGDRAW/lib,LIBGUNICODE/lib,\
- [-.fontforge]xlib.opt/opt
+ gb12345_vms.opt/opt,[-.fontforge]lff.opt/opt
gb12345_vms :
@ WRITE_ SYS$OUTPUT " generating gb12345.map ..."

0 comments on commit 31022d4

Please sign in to comment.