diff options
| author | David Kühling <dvdkhlng@gmx.de> | 2011-01-02 15:19:00 +0100 |
|---|---|---|
| committer | David Kühling <dvdkhlng@gmx.de> | 2011-01-02 15:19:00 +0100 |
| commit | 9aaeb4623d3ff5746e665bc17914eefd292b7dcd (patch) | |
| tree | 370db60ffdc2ef840b7d1124d5a392f93bba3c9d /odt2txt/Makefile | |
| download | qipackages-fork-9aaeb4623d3ff5746e665bc17914eefd292b7dcd.tar.gz | |
New OpenWrt package for GNU Octave. Experimental/probably still broken.grafted
Work in progress. Committing it as compilation seems to take forever.
Not sure whether I can finish this within a few days.
Diffstat (limited to 'odt2txt/Makefile')
| -rw-r--r-- | odt2txt/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/odt2txt/Makefile b/odt2txt/Makefile new file mode 100644 index 0000000..bb29c98 --- /dev/null +++ b/odt2txt/Makefile @@ -0,0 +1,41 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=odt2txt +PKG_VERSION:=0.4 +PKG_RELEASE:=1 + +PKG_SOURCE:=odt2txt-$(PKG_VERSION).tar.gz + PKG_SOURCE_URL:=http://stosberg.net/odt2txt/ + PKG_MD5SUM:=6fe3bd261ce2dde2810244bbe969bbc5 + PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/odt2txt-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/odt2txt + SECTION:=utils + CATEGORY:=Utilities + TITLE:=odt2txt + URL:=http://stosberg.net/odt2txt/ + DEPENDS:=+libiconv +zlib +endef + +define Package/odt2txt/description + Converts OpenDocument files to plain text. +endef + +define Build/Configure + $(call Build/Compile/Default, \ + CFLAGS="-I$(STAGING_DIR)/usr/include -O2 -DNO_ICONV" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib " \ + ) +endef + + +define Package/odt2txt/install + $(INSTALL_DIR) $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/odt2txt $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,odt2txt)) |
