AUTOMAKE_OPTIONS = 1.4
# no-dependencies
-SUBDIRS = include src samples # utils user docs
+SUBDIRS = include src samples misc # utils user docs
bin_SCRIPTS = wx-config
include/wx/msw/Makefile
include/wx/protocol/Makefile
include/wx/unix/Makefile
+ misc/Makefile
+ misc/afm/Makefile
+ misc/gs_afm/Makefile
samples/Makefile
samples/bombs/Makefile
samples/caret/Makefile
win_gtk.h \
window.h
-# setup.h is installed in another directory because several versions of wxwin
-# should be able to coexist on the same machine
-portheadersdir = ${datadir}/@PACKAGE@/include/wx
-portheaders_HEADERS = setup.h
-
win_gtk.h \
window.h
-# setup.h is installed in another directory because several versions of wxwin
-# should be able to coexist on the same machine
-portheadersdir = ${datadir}/@PACKAGE@/include/wx
-portheaders_HEADERS = setup.h
-
(nodetype *)prev, (nodetype *)next, \
(T *)data, key); \
} \
- };
+ }
#define WX_DECLARE_LIST_2(elementtype, listname, nodename) \
WX_DECLARE_LIST_3(elementtype, elementtype, listname, nodename)
--- /dev/null
+## Purpose: The automake makefile for wxWindows (misc direcotry)
+## Author: Phil Blecker, Vadim Zeitlin
+## Version: $Id$
+##
+## Process this file with automake to produce Makefile.in
+
+SUBDIRS = afm gs_afm
--- /dev/null
+## Purpose: The automake makefile for wxWindows (misc/afm direcotry)
+## Author: Phil Blecker, Vadim Zeitlin
+## Version: $Id$
+##
+## Process this file with automake to produce Makefile.in
+
+afmdir = $(datadir)/wx/afm
+afm_DATA = \
+ Cour.afm \
+ CourBo.afm \
+ CourBoO.afm \
+ CourO.afm \
+ Helv.afm \
+ HelvBo.afm \
+ HelvBoO.afm \
+ HelvO.afm \
+ TimesRo.afm \
+ TimesBo.afm \
+ TimesBoO.afm \
+ TimesO.afm
+
--- /dev/null
+## Purpose: The automake makefile for wxWindows (misc/gs_afm direcotry)
+## Author: Phil Blecker, Vadim Zeitlin
+## Version: $Id$
+##
+## Process this file with automake to produce Makefile.in
+
+gs_afmdir = $(datadir)/wx/gs_afm
+gs_afm_DATA = \
+ Cour.afm \
+ CourBo.afm \
+ CourBoO.afm \
+ CourO.afm \
+ Helv.afm \
+ HelvBo.afm \
+ HelvBoO.afm \
+ HelvO.afm \
+ TimesRo.afm \
+ TimesBo.afm \
+ TimesBoO.afm \
+ TimesO.afm
+
/* get the directory of the AFM files */
char afmName[256];
afmName[0] = 0;
- wxString fmPath(m_printData.GetFontMetricPath());
- if (fmPath != "") strcpy( afmName, (const char*) fmPath );
+
+ if (!m_printData.GetFontMetricPath().IsEmpty())
+ {
+ strcpy( afmName, m_printData.GetFontMetricPath().mb_str() )
+ }
/* 2. open and process the file
/ a short explanation of the AFM format:
strcat(afmName,name);
strcat(afmName,".afm");
FILE *afmFile = fopen(afmName,"r");
- if ( afmFile==NULL )
+
+#ifdef __UNIX__
+ if (afmFile==NULL)
+ {
+ strcpy( afmName, "/usr/local/share/wx/gs_afm/" );
+ strcat(afmName,name);
+ strcat(afmName,".afm");
+ FILE *afmFile = fopen(afmName,"r");
+ }
+
+ if (afmFile==NULL)
+ {
+ strcpy( afmName, "/usr/share/wx/gs_afm/" );
+ strcat(afmName,name);
+ strcat(afmName,".afm");
+ FILE *afmFile = fopen(afmName,"r");
+ }
+#endif
+
+ if (afmFile==NULL)
{
wxLogDebug( "GetTextExtent: can't open AFM file '%s'\n", afmName );
wxLogDebug( " using approximate values\n");
%{pref}/include/wx/*
%dir %{pref}/lib/wx
%{pref}/lib/wx/*
+%dir %{pref}/share/wx
+%{pref}/share/wx/*
%attr(755, -, -) %{pref}/lib/libwx_gtk2.so
%attr(755, -, -) %{pref}/lib/libwx_gtk2.so.1
%attr(755, -, -) %{pref}/lib/libwx_gtk2.so.1.0