Commit 6ccbc77ab32c09d76d5e9d621bcb75cd13774b05
1 parent
5a41ae8f
Exists in
master
and in
5 other branches
Gerando extensão libre office para linux
Showing
3 changed files
with
17 additions
and
16 deletions
Show diff stats
src/oxt/Makefile.in
@@ -90,24 +90,25 @@ $(OBJRLS)/%.o: %.cxx $(OBJDIR)/uno/include/br/com/bb/$(PACKAGE).hpp Makefile | @@ -90,24 +90,25 @@ $(OBJRLS)/%.o: %.cxx $(OBJDIR)/uno/include/br/com/bb/$(PACKAGE).hpp Makefile | ||
90 | 90 | ||
91 | #---[ Release targets ]-------------------------------------------------------------------------------- | 91 | #---[ Release targets ]-------------------------------------------------------------------------------- |
92 | 92 | ||
93 | -Release: $(PACKAGE).oxt | 93 | +Release: $(BINDIR)/$(PACKAGE).oxt |
94 | 94 | ||
95 | -$(PACKAGE).oxt: $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(PACKAGE).uno.rdb description.xml manifest.xml description.txt | ||
96 | - @$(MKDIR) $(BINDIR)/$(PACKAGE).oxt | 95 | +$(BINDIR)/$(PACKAGE).oxt: $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(PACKAGE).uno.rdb description.xml manifest.xml description.txt |
96 | + @rm -f $@ | ||
97 | + | ||
98 | + @$(MKDIR) $(BINDIR)/$(PACKAGE).oxt.tmp | ||
99 | + | ||
100 | + @$(MKDIR) $(BINDIR)/$(PACKAGE).oxt.tmp/META-INF | ||
101 | + @cp manifest.xml $(BINDIR)/$(PACKAGE).oxt.tmp/META-INF | ||
97 | 102 | ||
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 | 103 | + @cp description.xml $(BINDIR)/$(PACKAGE).oxt.tmp |
104 | + @cp description.txt $(BINDIR)/$(PACKAGE).oxt.tmp | ||
101 | 105 | ||
102 | - @cp description.txt $(BINDIR)/$(PACKAGE).oxt | ||
103 | - @$(CONVERT) ../pw3270/pixmaps/pw3270.svg --format=png > $(BINDIR)/$(PACKAGE).oxt/$(PACKAGE).png | 106 | + @$(CONVERT) ../pw3270/pixmaps/pw3270.svg --format=png > $(BINDIR)/$(PACKAGE).oxt.tmp/$(PACKAGE).png |
104 | 107 | ||
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 $@ | 108 | + @cp $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(BINDIR)/$(PACKAGE).oxt.tmp |
109 | + @cp $(PACKAGE).uno.rdb $(BINDIR)/$(PACKAGE).oxt.tmp | ||
110 | + @rm -f $(BINDIR)/$(PACKAGE).oxt | ||
111 | + @cd $(BINDIR)/$(PACKAGE).oxt.tmp ; $(ZIP) -r -m ../$(PACKAGE).oxt . | ||
111 | @echo $@ Ok. | 112 | @echo $@ Ok. |
112 | 113 | ||
113 | $(BINRLS)/$(PACKAGE).uno@DLLEXT@: $(foreach SRC, $(basename $(SOURCES)), $(OBJRLS)/$(SRC).o) | 114 | $(BINRLS)/$(PACKAGE).uno@DLLEXT@: $(foreach SRC, $(basename $(SOURCES)), $(OBJRLS)/$(SRC).o) |
src/oxt/description.xml.in
@@ -7,7 +7,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink"> | @@ -7,7 +7,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
7 | 7 | ||
8 | <identifier value="@PACKAGE_NAME@" /> | 8 | <identifier value="@PACKAGE_NAME@" /> |
9 | 9 | ||
10 | - <platform value="linux_x86" /> | 10 | + <platform value="linux_@host_cpu@" /> |
11 | 11 | ||
12 | <dependencies> | 12 | <dependencies> |
13 | <OpenOffice.org-minimal-version value="2.2" d:name="OpenOffice.org 2.2"/> | 13 | <OpenOffice.org-minimal-version value="2.2" d:name="OpenOffice.org 2.2"/> |
src/oxt/manifest.xml.in
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <manifest:manifest> | 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"/> | 3 | +<manifest:file-entry manifest:media-type= "application/vnd.sun.star.uno-component;type=native;platform=Linux_@host_cpu@" 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"/> | 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> | 5 | </manifest:manifest> |
6 | 6 |