Commit 5a41ae8f94edd8daf13f2fa47fecaabe584769a4

Authored by perry.werneck@gmail.com
1 parent 753feba4

Reimplementando extensão LibreOffice para linux

configure.ac
... ... @@ -75,6 +75,13 @@ if test $GZIP = "no" ; then
75 75 fi
76 76 AC_SUBST(GZIP)
77 77  
  78 +AC_CHECK_PROGS(ZIP,[zip],no)
  79 +export ZIP;
  80 +if test $GZIP = "no" ; then
  81 + AC_MSG_ERROR([Unable to find the gzip application]);
  82 +fi
  83 +AC_SUBST(ZIP)
  84 +
78 85 AC_CHECK_PROGS(CONVERT,[rsvg-convert],no)
79 86 AC_SUBST(CONVERT)
80 87  
... ... @@ -433,6 +440,8 @@ AC_CONFIG_FILES([
433 440 src/lib3270/mkversion.sh
434 441 src/pw3270/Makefile
435 442 src/oxt/Makefile
  443 + src/oxt/description.xml
  444 + src/oxt/manifest.xml
436 445 src/pw3270/uiparser/Makefile
437 446 src/tools/Makefile
438 447 src/plugins/hllapi/Makefile
... ...
po/pt_BR.po
... ... @@ -5,7 +5,7 @@ msgid ""
5 5 msgstr ""
6 6 "Project-Id-Version: pw3270 5.0\n"
7 7 "Report-Msgid-Bugs-To: \n"
8   -"POT-Creation-Date: 2013-03-14 14:10-0300\n"
  8 +"POT-Creation-Date: 2013-03-15 10:08-0300\n"
9 9 "PO-Revision-Date: 2013-03-12 11:29-0300\n"
10 10 "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n"
11 11 "Language-Team: Português <>\n"
... ...
src/oxt/Makefile.in
... ... @@ -22,6 +22,8 @@ OBJRLS = $(OBJDIR)/Release
22 22 #---[ Tools ]------------------------------------------------------------------------------------------
23 23 MKDIR=@MKDIR_P@
24 24 CXX=@CXX@
  25 +CONVERT=@CONVERT@
  26 +ZIP=@ZIP@
25 27  
26 28 DBG_CFLAGS=-g -DDEBUG=1
27 29 RLS_CFLAGS=-DNDEBUG=1
... ... @@ -62,12 +64,16 @@ LDFLAGS=-L${OO_SDK_HOME}/lib -L${OO_SDK_URE_HOME}/lib -Wl,-rpath-link=${OO_SDK_U
62 64  
63 65 # CC_DEFINES=-DUNX -DGCC -DLINUX -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH) -DHAVE_GCC_VISIBILITY_FEATURE
64 66  
65   -
66 67 $(OBJDBG)/%.o: %.cxx $(OBJDIR)/uno/include/br/com/bb/$(PACKAGE).hpp Makefile
67 68 @echo $< ...
68 69 @$(MKDIR) `dirname $@`
69 70 @$(CXX) $(DBG_CFLAGS) $(CXXFLAGS) $(LIB3270_CFLAGS) $(DLL_CFLAGS) -o $@ -c $<
70 71  
  72 +$(OBJRLS)/%.o: %.cxx $(OBJDIR)/uno/include/br/com/bb/$(PACKAGE).hpp Makefile
  73 + @echo $< ...
  74 + @$(MKDIR) `dirname $@`
  75 + @$(CXX) $(CXXFLAGS) $(LIB3270_CFLAGS) $(DLL_CFLAGS) -o $@ -c $<
  76 +
71 77 %.urd: %.idl
72 78 @echo $< ...
73 79 @$(MKDIR) `dirname $@`
... ... @@ -81,7 +87,35 @@ $(OBJDBG)/%.o: %.cxx $(OBJDIR)/uno/include/br/com/bb/$(PACKAGE).hpp Makefile
81 87 $(REGMERGE) -v $@ /UCR $<
82 88 $(REGMERGE) -v $@ / $<
83 89  
84   -#---[ Targets ]----------------------------------------------------------------------------------------
  90 +
  91 +#---[ Release targets ]--------------------------------------------------------------------------------
  92 +
  93 +Release: $(PACKAGE).oxt
  94 +
  95 +$(PACKAGE).oxt: $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(PACKAGE).uno.rdb description.xml manifest.xml description.txt
  96 + @$(MKDIR) $(BINDIR)/$(PACKAGE).oxt
  97 +
  98 + @$(MKDIR) $(BINDIR)/$(PACKAGE).oxt/META-INF
  99 + @cp description.xml $(BINDIR)/$(PACKAGE).oxt/META-INF
  100 + @cp manifest.xml $(BINDIR)/$(PACKAGE).oxt/META-INF
  101 +
  102 + @cp description.txt $(BINDIR)/$(PACKAGE).oxt
  103 + @$(CONVERT) ../pw3270/pixmaps/pw3270.svg --format=png > $(BINDIR)/$(PACKAGE).oxt/$(PACKAGE).png
  104 +
  105 + @$(MKDIR) $(BINDIR)/$(PACKAGE).oxt/linux
  106 + @cp $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(BINDIR)/$(PACKAGE).oxt/linux
  107 + @cp $(PACKAGE).uno.rdb $(BINDIR)/$(PACKAGE).oxt
  108 + @rm -f $(BINDIR)/$(PACKAGE).zip
  109 + @cd $(BINDIR)/$(PACKAGE).oxt ; $(ZIP) -r ../$(PACKAGE).zip .
  110 + @mv $(BINDIR)/$(PACKAGE).zip $@
  111 + @echo $@ Ok.
  112 +
  113 +$(BINRLS)/$(PACKAGE).uno@DLLEXT@: $(foreach SRC, $(basename $(SOURCES)), $(OBJRLS)/$(SRC).o)
  114 + @echo $@ ...
  115 + @$(MKDIR) `dirname $@`
  116 + @$(CXX) $(DLL_FLAGS) $(LDFLAGS) -o $@ $^
  117 +
  118 +#---[ Debug Targets ]----------------------------------------------------------------------------------
85 119  
86 120 Debug: $(BINDBG)/testprogram
87 121  
... ... @@ -90,12 +124,12 @@ run: $(BINDBG)/testprogram
90 124  
91 125 $(BINDBG)/$(PACKAGE).uno@DLLEXT@: $(foreach SRC, $(basename $(SOURCES)), $(OBJDBG)/$(SRC).o)
92 126 @echo $@ ...
93   - @$(MKDIR) -p `dirname $@`
  127 + @$(MKDIR) `dirname $@`
94 128 @$(CXX) $(DLL_FLAGS) $(LDFLAGS) -o $@ $^
95 129  
96 130 $(BINDBG)/testprogram: $(BINDBG)/$(PACKAGE).uno@DLLEXT@ $(OBJDBG)/testprogram.o
97 131 @echo $@ ...
98   - @$(MKDIR) -p `dirname $@`
  132 + @$(MKDIR) `dirname $@`
99 133 @$(CXX) $(LDFLAGS) -o $@ $(OBJDBG)/testprogram.o
100 134  
101 135 $(OBJDIR)/uno/include/br/com/bb/$(PACKAGE).hpp: $(PACKAGE).uno.rdb
... ...
src/oxt/description.txt 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +Uno/OpenOffice library allowing 3270 access from StarBasic
  2 +
... ...
src/oxt/description.xml.in 0 → 100644
... ... @@ -0,0 +1,30 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<description xmlns="http://openoffice.org/extensions/description/2006"
  3 +xmlns:d="http://openoffice.org/extensions/description/2006"
  4 +xmlns:xlink="http://www.w3.org/1999/xlink">
  5 +
  6 + <version value="@PACKAGE_VERSION@" />
  7 +
  8 + <identifier value="@PACKAGE_NAME@" />
  9 +
  10 + <platform value="linux_x86" />
  11 +
  12 + <dependencies>
  13 + <OpenOffice.org-minimal-version value="2.2" d:name="OpenOffice.org 2.2"/>
  14 + </dependencies>
  15 +
  16 + <display-name>
  17 + <name lang="en">3270 access extension</name>
  18 + </display-name>
  19 +
  20 + <icon>
  21 + <default xlink:href="@PACKAGE_NAME@.png" />
  22 + </icon>
  23 +
  24 + <extension-description>
  25 + <src xlink:href="description.txt" lang="en" />
  26 + </extension-description>
  27 +
  28 +
  29 +
  30 +</description>
... ...
src/oxt/manifest.xml.in 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<manifest:manifest>
  3 +<manifest:file-entry manifest:media-type= "application/vnd.sun.star.uno-component;type=native;platform=Linux_x86" manifest:full-path="@PACKAGE_NAME@.uno.so"/>
  4 +<manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-typelibrary;type=RDB" manifest:full-path="@PACKAGE_NAME@.uno.rdb"/>
  5 +</manifest:manifest>
  6 +
... ...
src/oxt/pw3270OXT.cbp
... ... @@ -35,10 +35,12 @@
35 35 <Unit filename="Makefile.in" />
36 36 <Unit filename="actions.cxx" />
37 37 <Unit filename="connection.cxx" />
  38 + <Unit filename="description.xml.in" />
38 39 <Unit filename="get.cxx" />
39 40 <Unit filename="globals.hpp" />
40 41 <Unit filename="local.cxx" />
41 42 <Unit filename="main.cxx" />
  43 + <Unit filename="manifest.xml.in" />
42 44 <Unit filename="pw3270.idl" />
43 45 <Unit filename="set.cxx" />
44 46 <Unit filename="testprogram.cxx" />
... ...