updated PYTHON_DIST for new wxPython location.
added INTL_DIST target for i18n files when --enable-intl is used. make install now installs any .mo files it finds in locale. bugfix for make install being a no op with static wxBase. libs built with __WXDEBUG__ can now be installed alongside libs built without. locale/Makefile now autodetects which languages are supported when make allpo is used and added allmo target. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
104
Makefile.in
104
Makefile.in
@@ -67,6 +67,8 @@ oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
localedir = $(datadir)/locale
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
@@ -123,7 +125,8 @@ DEMODIR = $(WXDIR)/demos
|
||||
UTILSDIR = $(WXDIR)/utils
|
||||
MISCDIR = $(WXDIR)/misc
|
||||
|
||||
DOCDIR = $(WXDIR)/docs
|
||||
DOCDIR = $(WXDIR)/docs
|
||||
INTLDIR = $(WXDIR)/locale
|
||||
|
||||
########################## Archive name ###############################
|
||||
|
||||
@@ -135,6 +138,8 @@ DISTDIR = ./_dist_dir/@DISTDIR@
|
||||
|
||||
############################## Files ##################################
|
||||
|
||||
WX_LINGUAS = `cd $(top_srcdir)/locale && ls *.mo 2> /dev/null | sed -n 's/\.mo//p'`
|
||||
|
||||
# this line will include a file which defines ALL_SOURCES, ALL_OBJECTS,
|
||||
# ALL_DEPFILES and ALL_HEADERS variables with the complete list of .cpp, .o,
|
||||
# .d and .h/.inl files for the current toolkit
|
||||
@@ -380,7 +385,7 @@ afminstall: preinstall
|
||||
|
||||
# this is the real install target: copies the library, wx-config and the
|
||||
# headers to the installation directory
|
||||
preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_DIR@-config
|
||||
preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_NAME@-config
|
||||
@echo " "
|
||||
@echo " Installing wxWindows..."
|
||||
@echo " "
|
||||
@@ -389,15 +394,15 @@ preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_D
|
||||
$(INSTALL) -d $(bindir)
|
||||
$(INSTALL) -d $(libdir)
|
||||
|
||||
$(INSTALL_SCRIPT) $(top_builddir)/wx@TOOLKIT_DIR@-config $(bindir)/wx@TOOLKIT_DIR@-config
|
||||
cd $(bindir) && rm -f wx-config && $(LN_S) wx@TOOLKIT_DIR@-config wx-config
|
||||
$(INSTALL_SCRIPT) $(top_builddir)/wx@TOOLKIT_NAME@-config $(bindir)/wx@TOOLKIT_NAME@-config
|
||||
cd $(bindir) && rm -f wx-config && $(LN_S) wx@TOOLKIT_NAME@-config wx-config
|
||||
$(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
|
||||
|
||||
$(INSTALL) -d $(libdir)/wx
|
||||
$(INSTALL) -d $(libdir)/wx/include
|
||||
$(INSTALL) -d $(libdir)/wx/include/wx
|
||||
$(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@
|
||||
$(INSTALL_DATA) $(top_builddir)/include/wx/@TOOLKIT_DIR@/setup.h $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
|
||||
$(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_NAME@
|
||||
$(INSTALL_DATA) $(top_builddir)/include/wx/@TOOLKIT_DIR@/setup.h $(libdir)/wx/include/wx/@TOOLKIT_NAME@/setup.h
|
||||
|
||||
$(INSTALL) -d $(includedir)/wx
|
||||
@if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/@TOOLKIT_DIR@; fi
|
||||
@@ -410,6 +415,14 @@ preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_D
|
||||
echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
|
||||
done
|
||||
|
||||
$(INSTALL) -d $(localedir)
|
||||
@for p in $(WX_LINGUAS); do \
|
||||
$(INSTALL) -d $(localedir)/$$p; \
|
||||
$(INSTALL) -d $(localedir)/$$p/LC_MESSAGES; \
|
||||
$(INSTALL_DATA) $(top_srcdir)/locale/$$p.mo $(localedir)/$$p/LC_MESSAGES/wxstd.mo; \
|
||||
echo "$(INSTALL_DATA) $(top_srcdir)/locale/$$p.mo $(localedir)/$$p/LC_MESSAGES/wxstd.mo"; \
|
||||
done
|
||||
|
||||
preinstall_gl: $(top_builddir)/lib/@WX_TARGET_LIBRARY_GL@
|
||||
@echo " "
|
||||
@echo " Installing wxWindows OpenGl add-on..."
|
||||
@@ -445,9 +458,9 @@ uninstall:
|
||||
@$(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@
|
||||
@$(RM) $(libdir)/@WX_LIBRARY_LINK3_GL@
|
||||
@echo " Removing helper files..."
|
||||
@$(RM) $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
|
||||
@$(RM) $(libdir)/wx/include/wx/@TOOLKIT_NAME@/setup.h
|
||||
@$(RM) $(bindir)/wx-config
|
||||
@$(RM) $(bindir)/wx@TOOLKIT_DIR@-config
|
||||
@$(RM) $(bindir)/wx@TOOLKIT_NAME@-config
|
||||
@$(RM) $(datadir)/wx/afm/*
|
||||
@$(RM) $(datadir)/wx/gs_afm/*
|
||||
# FIXME: wxBase doesnt install these next 3 dirs.
|
||||
@@ -458,8 +471,15 @@ uninstall:
|
||||
@list='$(HEADERS)'; for p in $$list; do \
|
||||
$(RM) $(includedir)/wx/$$p; \
|
||||
done
|
||||
@echo " Removing i18n files..."
|
||||
@-for p in $(WX_LINGUAS); do \
|
||||
$(RM) $(localedir)/$$p/LC_MESSAGES/wxstd.mo; \
|
||||
rmdir $(localedir)/$$p/LC_MESSAGES; \
|
||||
rmdir $(localedir)/$$p; \
|
||||
done
|
||||
@echo " Removing directories..."
|
||||
@if test -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi
|
||||
@-rmdir $(localedir)
|
||||
@if test -d $(libdir)/wx/include/wx/@TOOLKIT_NAME@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_NAME@; fi
|
||||
@if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
|
||||
@if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
|
||||
@if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
|
||||
@@ -1144,6 +1164,12 @@ MISC_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/misc/gs_afm
|
||||
cp $(MISCDIR)/gs_afm/*.afm $(DISTDIR)/misc/gs_afm
|
||||
|
||||
INTL_DIST:
|
||||
mkdir $(DISTDIR)/locale
|
||||
cp $(INTLDIR)/Makefile $(DISTDIR)/locale
|
||||
cp $(INTLDIR)/*.po $(DISTDIR)/locale
|
||||
cp $(INTLDIR)/*.mo $(DISTDIR)/locale
|
||||
|
||||
MANUAL_DIST:
|
||||
mkdir $(DISTDIR)/docs
|
||||
mkdir $(DISTDIR)/docs/latex
|
||||
@@ -1158,35 +1184,39 @@ MANUAL_DIST:
|
||||
# those files needed for the Debian source package.
|
||||
# see utils/wxPython/distrib for scripts to make a proper wxPython dist.
|
||||
PYTHON_DIST:
|
||||
mkdir $(DISTDIR)/utils/wxPython
|
||||
mkdir $(DISTDIR)/utils/wxPython/demo
|
||||
mkdir $(DISTDIR)/utils/wxPython/demo/bitmaps
|
||||
mkdir $(DISTDIR)/utils/wxPython/demo/data
|
||||
mkdir $(DISTDIR)/utils/wxPython/distrib
|
||||
mkdir $(DISTDIR)/utils/wxPython/lib
|
||||
mkdir $(DISTDIR)/utils/wxPython/lib/editor
|
||||
mkdir $(DISTDIR)/utils/wxPython/lib/sizers
|
||||
mkdir $(DISTDIR)/utils/wxPython/modules
|
||||
mkdir $(DISTDIR)/utils/wxPython/modules/html
|
||||
mkdir $(DISTDIR)/utils/wxPython/modules/utils
|
||||
mkdir $(DISTDIR)/utils/wxPython/modules/utils/gtk
|
||||
mkdir $(DISTDIR)/utils/wxPython/src
|
||||
mkdir $(DISTDIR)/utils/wxPython/src/gtk
|
||||
mkdir $(DISTDIR)/wxPython
|
||||
mkdir $(DISTDIR)/wxPython/contrib
|
||||
mkdir $(DISTDIR)/wxPython/contrib/glcanvas
|
||||
mkdir $(DISTDIR)/wxPython/contrib/glcanvas/gtk
|
||||
mkdir $(DISTDIR)/wxPython/contrib/ogl
|
||||
mkdir $(DISTDIR)/wxPython/contrib/stc
|
||||
mkdir $(DISTDIR)/wxPython/demo
|
||||
mkdir $(DISTDIR)/wxPython/demo/bitmaps
|
||||
mkdir $(DISTDIR)/wxPython/demo/data
|
||||
mkdir $(DISTDIR)/wxPython/distrib
|
||||
mkdir $(DISTDIR)/wxPython/src
|
||||
mkdir $(DISTDIR)/wxPython/src/gtk
|
||||
mkdir $(DISTDIR)/wxPython/wxPython
|
||||
mkdir $(DISTDIR)/wxPython/wxPython/lib
|
||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/editor
|
||||
mkdir $(DISTDIR)/wxPython/wxPython/lib/sizers
|
||||
|
||||
cp $(UTILSDIR)/wxPython/*.txt $(DISTDIR)/utils/wxPython
|
||||
-cp $(UTILSDIR)/wxPython/demo/* $(DISTDIR)/utils/wxPython/demo
|
||||
-cp $(UTILSDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/utils/wxPython/demo/bitmaps
|
||||
-cp $(UTILSDIR)/wxPython/demo/data/* $(DISTDIR)/utils/wxPython/demo/data
|
||||
cp $(UTILSDIR)/wxPython/distrib/build.py $(DISTDIR)/utils/wxPython/distrib
|
||||
cp $(UTILSDIR)/wxPython/lib/*.py $(DISTDIR)/utils/wxPython/lib
|
||||
cp $(UTILSDIR)/wxPython/lib/editor/*.py $(DISTDIR)/utils/wxPython/lib/editor
|
||||
cp $(UTILSDIR)/wxPython/lib/sizers/*.py $(DISTDIR)/utils/wxPython/lib/sizers
|
||||
-cp $(UTILSDIR)/wxPython/modules/html/* $(DISTDIR)/utils/wxPython/modules/html
|
||||
-cp $(UTILSDIR)/wxPython/modules/utils/* $(DISTDIR)/utils/wxPython/modules/utils
|
||||
cp $(UTILSDIR)/wxPython/modules/utils/gtk/utils.* $(DISTDIR)/utils/wxPython/modules/utils/gtk
|
||||
-cp $(UTILSDIR)/wxPython/src/* $(DISTDIR)/utils/wxPython/src
|
||||
cp $(UTILSDIR)/wxPython/src/gtk/*.py $(DISTDIR)/utils/wxPython/src/gtk
|
||||
cp $(UTILSDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/utils/wxPython/src/gtk
|
||||
cp $(WXDIR)/wxPython/*.txt $(DISTDIR)/wxPython
|
||||
cp $(WXDIR)/wxPython/contrib/buildall.py $(DISTDIR)/wxPython/contrib
|
||||
-cp $(WXDIR)/wxPython/contrib/glcanvas/* $(DISTDIR)/wxPython/contrib/glcanvas
|
||||
cp $(WXDIR)/wxPython/contrib/glcanvas/gtk/glcanvas.* $(DISTDIR)/wxPython/contrib/glcanvas/gtk
|
||||
-cp $(WXDIR)/wxPython/contrib/ogl/* $(DISTDIR)/wxPython/contrib/ogl
|
||||
-cp $(WXDIR)/wxPython/contrib/stc/* $(DISTDIR)/wxPython/contrib/stc
|
||||
-cp $(WXDIR)/wxPython/demo/* $(DISTDIR)/wxPython/demo
|
||||
-cp $(WXDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/wxPython/demo/bitmaps
|
||||
-cp $(WXDIR)/wxPython/demo/data/* $(DISTDIR)/wxPython/demo/data
|
||||
cp $(WXDIR)/wxPython/distrib/build.py $(DISTDIR)/wxPython/distrib
|
||||
-cp $(WXDIR)/wxPython/src/* $(DISTDIR)/wxPython/src
|
||||
cp $(WXDIR)/wxPython/src/gtk/*.py $(DISTDIR)/wxPython/src/gtk
|
||||
cp $(WXDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/wxPython/src/gtk
|
||||
cp $(WXDIR)/wxPython/wxPython/lib/*.py $(DISTDIR)/wxPython/wxPython/lib
|
||||
cp $(WXDIR)/wxPython/wxPython/lib/editor/*.py $(DISTDIR)/wxPython/wxPython/lib/editor
|
||||
cp $(WXDIR)/wxPython/wxPython/lib/sizers/*.py $(DISTDIR)/wxPython/wxPython/lib/sizers
|
||||
|
||||
distclean:
|
||||
$(RM) -r _dist_dir
|
||||
|
49
configure.in
49
configure.in
@@ -1910,11 +1910,18 @@ else
|
||||
TOOLKIT_DIR="os2"
|
||||
fi
|
||||
|
||||
dnl the (base) name of the library and support files for this toolkit
|
||||
if test "$wxUSE_DEBUG_FLAG" = "yes"; then
|
||||
TOOLKIT_NAME="${TOOLKIT_DIR}d"
|
||||
else
|
||||
TOOLKIT_NAME="${TOOLKIT_DIR}"
|
||||
fi
|
||||
|
||||
dnl the symbol which allows conditional compilation for the given toolkit
|
||||
TOOLKIT_DEF="-D__WX${TOOLKIT}__"
|
||||
|
||||
dnl the name of the (libtool) library
|
||||
WX_LIBRARY="wx_${TOOLKIT_DIR}"
|
||||
WX_LIBRARY="wx_${TOOLKIT_NAME}"
|
||||
|
||||
dnl the sources, their dependenices and the headers
|
||||
ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
|
||||
@@ -1950,7 +1957,16 @@ fi
|
||||
else
|
||||
USE_GUI=0
|
||||
|
||||
dnl this may be (almost) unneccesary for wxBase now we use TOOLKIT_NAME
|
||||
TOOLKIT_DIR="base"
|
||||
|
||||
dnl the base name of the library and wxXXX-config files
|
||||
if test "$wxUSE_DEBUG_FLAG" = "yes"; then
|
||||
TOOLKIT_NAME="${TOOLKIT_DIR}d"
|
||||
else
|
||||
TOOLKIT_NAME="${TOOLKIT_DIR}"
|
||||
fi
|
||||
|
||||
TOOLKIT_DEF="-D__WXBASE__"
|
||||
|
||||
dnl the sources, their dependenices and the headers
|
||||
@@ -1962,7 +1978,7 @@ else
|
||||
fi
|
||||
|
||||
dnl building wxBase only
|
||||
WX_LIBRARY="wxbase"
|
||||
WX_LIBRARY="wx_${TOOLKIT_NAME}"
|
||||
|
||||
PORT_FILES="src/files.lst"
|
||||
RPM_FILES="src/rpmfiles.lst"
|
||||
@@ -2016,8 +2032,8 @@ if test "$wxUSE_SHARED" = "yes"; then
|
||||
SHARED_LD="${CXX} -b -o"
|
||||
PIC_FLAG="+Z"
|
||||
fi
|
||||
WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
|
||||
WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
|
||||
WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
|
||||
WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
|
||||
if test "$wxUSE_OPENGL" = "yes"; then
|
||||
WX_ALL_INSTALLED="preinstall_gl"
|
||||
WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
|
||||
@@ -2159,12 +2175,20 @@ else
|
||||
dnl set target to static
|
||||
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
|
||||
WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
|
||||
|
||||
if test "$wxUSE_OPENGL" = "yes"; then
|
||||
WX_ALL_INSTALLED="preinstall_gl"
|
||||
WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
|
||||
else
|
||||
WX_ALL="${WX_LIBRARY_NAME_STATIC}"
|
||||
fi
|
||||
|
||||
dnl give static wxBase build a working install target
|
||||
if test "$wxUSE_GUI" = "no"; then
|
||||
dnl we're here because WX_ALL_INSTALLED is empty, but play safe anyway
|
||||
WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
|
||||
fi
|
||||
|
||||
WX_TARGET_LIBRARY_TYPE="a"
|
||||
fi
|
||||
|
||||
@@ -2919,6 +2943,7 @@ if test "$wxUSE_INTL" = "yes" ; then
|
||||
else
|
||||
AC_DEFINE(wxUSE_INTL)
|
||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
|
||||
GUIDIST="$GUIDIST INTL_DIST"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -3782,6 +3807,7 @@ AC_SUBST(AFMINSTALL)
|
||||
AC_SUBST(TOOLKIT)
|
||||
AC_SUBST(TOOLKIT_DEF)
|
||||
AC_SUBST(TOOLKIT_DIR)
|
||||
AC_SUBST(TOOLKIT_NAME)
|
||||
AC_SUBST(TOOLKIT_INCLUDE)
|
||||
|
||||
dnl what to compile
|
||||
@@ -3878,11 +3904,11 @@ AC_OUTPUT([
|
||||
],
|
||||
[
|
||||
chmod +x wx-config
|
||||
mv wx-config wx${TOOLKIT_DIR}-config
|
||||
${LN_S} wx${TOOLKIT_DIR}-config wx-config
|
||||
mv wx-config wx${TOOLKIT_NAME}-config
|
||||
${LN_S} wx${TOOLKIT_NAME}-config wx-config
|
||||
|
||||
dnl the debian installer wants setup.h to be in the lib subdir
|
||||
dnl so we *copy* it there
|
||||
dnl the debian build process wants setup.h in the lib subdir so we
|
||||
dnl can pretend wxWin is already installed, so we *copy* it there
|
||||
|
||||
if test ! -d lib; then
|
||||
mkdir lib
|
||||
@@ -3896,11 +3922,11 @@ AC_OUTPUT([
|
||||
if test ! -d lib/wx/include/wx; then
|
||||
mkdir lib/wx/include/wx
|
||||
fi
|
||||
if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
|
||||
mkdir lib/wx/include/wx/${TOOLKIT_DIR}
|
||||
if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
|
||||
mkdir lib/wx/include/wx/${TOOLKIT_NAME}
|
||||
fi
|
||||
if test -f setup.h; then
|
||||
cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
|
||||
cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
|
||||
fi
|
||||
|
||||
dnl *move* setup.h to its final place
|
||||
@@ -3921,6 +3947,7 @@ AC_OUTPUT([
|
||||
],
|
||||
[
|
||||
TOOLKIT_DIR="${TOOLKIT_DIR}"
|
||||
TOOLKIT_NAME="${TOOLKIT_NAME}"
|
||||
LN_S="${LN_S}"
|
||||
]
|
||||
)
|
||||
|
@@ -3,7 +3,11 @@
|
||||
|
||||
# this makefile may be invoked to build either wxstd.po or any lang.mo
|
||||
|
||||
WX_LANGUAGES = cs.po da.po de.po fi.po fr.po
|
||||
# Autodetect the languages we support. Currently this relies on make
|
||||
# being called with this dir as the cwd, but if we generate this file
|
||||
# with configure an explicit path should be specified -- RL.
|
||||
|
||||
WX_LINGUAS := `ls *.po 2> /dev/null | sed -n 's/\(wxstd\)\?\.po//p'`
|
||||
|
||||
# the programs we use (TODO: use configure to detect them)
|
||||
MSGFMT=msgfmt
|
||||
@@ -27,14 +31,18 @@ wxstd.po:
|
||||
find ../include -name "*.h" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
|
||||
find ../src -name "*.cpp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
|
||||
|
||||
allpo: update $(WX_LANGUAGES)
|
||||
allpo: force-update
|
||||
@-for t in $(WX_LINGUAS); do $(MAKE) $$t.po; done
|
||||
|
||||
update:
|
||||
allmo:
|
||||
@for t in $(WX_LINGUAS); do $(MAKE) $$t.mo; done
|
||||
|
||||
force-update:
|
||||
$(RM) wxstd.po
|
||||
|
||||
# targets depending on this one will be always remade
|
||||
FORCE:
|
||||
|
||||
.PHONY: allpo update
|
||||
.PHONY: allpo allmo force-update
|
||||
|
||||
# $Id$
|
||||
|
Reference in New Issue
Block a user