Date:2010-07-23 15:27:03 (10 years 7 months ago)
Author:Jiri Brozovsky
Commit:dcc11f77b8cf336a63585128b877034623839472
Message:Initial OpenWRT port of "odt2txt" conversion utility (for Open Document Format Files). This version has disabled charset conversion (UTF-8 is assumed on output).

Files: odt2txt/Makefile (1 diff)
odt2txt/patches/Makefile.patch (1 diff)

Change Details

odt2txt/Makefile
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=odt2txt
4PKG_VERSION:=0.4
5PKG_RELEASE:=1
6
7PKG_SOURCE:=odt2txt-$(PKG_VERSION).tar.gz
8    PKG_SOURCE_URL:=http://stosberg.net/odt2txt/
9    PKG_MD5SUM:=6fe3bd261ce2dde2810244bbe969bbc5
10    PKG_CAT:=zcat
11
12PKG_BUILD_DIR:=$(BUILD_DIR)/odt2txt-$(PKG_VERSION)
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/odt2txt
17    SECTION:=utils
18    CATEGORY:=Utilities
19    TITLE:=odt2txt
20    URL:=http://stosberg.net/odt2txt/
21    DEPENDS:=+libiconv +zlib
22endef
23
24define Package/odt2txt/description
25    Converts OpenDocument files to plain text.
26endef
27
28define Build/Configure
29        $(call Build/Compile/Default, \
30              CFLAGS="-I$(STAGING_DIR)/usr/include -O2 -DNO_ICONV" \
31              LDFLAGS="-L$(STAGING_DIR)/usr/lib " \
32        )
33endef
34
35
36define Package/odt2txt/install
37    $(INSTALL_DIR) $(1)/usr/bin/
38    $(INSTALL_BIN) $(PKG_BUILD_DIR)/odt2txt $(1)/usr/bin/
39endef
40
41$(eval $(call BuildPackage,odt2txt))
odt2txt/patches/Makefile.patch
1--- odt2txt-0.4/Makefile 2008-06-23 21:32:28.000000000 +0200
2@@ -10,9 +10,7 @@
3 CFLAGS = -O2
4 endif
5
6-ifdef NO_ICONV
7 CFLAGS += -DNO_ICONV
8-endif
9
10 KUNZIP_OBJS = kunzip/fileio.o kunzip/zipfile.o
11 OBJ = odt2txt.o regex.o mem.o strbuf.o $(KUNZIP_OBJS)

Archive Download the corresponding diff file



interactive