diff options
| author | David Kühling <dvdkhlng@gmx.de> | 2010-09-18 20:47:21 +0200 |
|---|---|---|
| committer | David Kühling <dvdkhlng@gmx.de> | 2010-09-18 20:47:21 +0200 |
| commit | 4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 (patch) | |
| tree | 58590463ada82a27eca0889312c32450358249a8 /mupdf/Makefile | |
| download | qipackages-fork-4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09.tar.gz | |
Major overhaul and cleanup. Support for .ubi image file installations.grafted
Only compile&install a minimum host Gforth for bootstrapping the target
Gforth, removing strange emacs-dependencies that cropped up earlier.
Image file can now be built on the nanonote using 'gforth-update-image'
command. Also, Gforth is now run through a wrapper that calls
'gforth-update-image' automatically, if necessary.
Also first attempts at supporting libcc C-interface libraries pre-compiled on
the host.
Tested to compile on amd64 and i386.
Diffstat (limited to 'mupdf/Makefile')
| -rw-r--r-- | mupdf/Makefile | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/mupdf/Makefile b/mupdf/Makefile new file mode 100644 index 0000000..9a819c5 --- /dev/null +++ b/mupdf/Makefile @@ -0,0 +1,88 @@ +# +# Copyright (C) 2005-2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=mupdf +PKG_VERSION:=0.7 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://mupdf.com/download/ +PKG_MD5SUM:=83adc4d14eb17835df791a9a0d1e8fa9 + +include $(INCLUDE_DIR)/package.mk + +define Package/mupdf/Default + URL:=http://mupdf.com + DEPENDS:=+jbig2dec +openjpeg +zlib +libfreetype +endef + +define Package/mupdf + $(call Package/mupdf/Default) + SECTION:=libs + CATEGORY:=Libraries + TITLE:=lightweight PDF viewer and toolkit written in portable C +endef + +define Package/mupdf-tools + $(call Package/mupdf/Default) + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Command-line PDF tools +endef + +define Package/mupdf/description + MuPDF is a lightweight PDF viewer and toolkit written in portable C. +endef + +define Package/mupdf-tools/description + This package installs command-line tools: pdfclean, pdfinfo, pdfdraw, pdfextract, pdfshow +endef + +TARGET_CFLAGS+= \ + -I$(STAGING_DIR)/usr/include/freetype2 \ + -I$(PKG_BUILD_DIR)/mupdf \ + -I$(PKG_BUILD_DIR)/fitz + +TARGET_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib + +MAKE_FLAGS+=build=release prefix=/usr verbose=true pregen=build/generated + +define Build/Configure + $(INSTALL_DIR) $(PKG_BUILD_DIR)/build + $(CP) $(FILES_DIR)/generated $(PKG_BUILD_DIR)/build +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/mupdf/mupdf.h \ + $(PKG_BUILD_DIR)/fitz/fitz.h \ + $(PKG_BUILD_DIR)/apps/pdfapp.h \ + $(1)/usr/include/ + + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/build/release/libmupdf.a \ + $(1)/usr/lib/ +endef + +define Package/mupdf-tools/install + $(INSTALL_DIR) \ + $(1)/usr/bin + + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/build/release/{pdfclean,pdfinfo,pdfdraw,pdfextract,pdfshow} \ + $(1)/usr/bin + +endef + +$(eval $(call BuildPackage,mupdf)) +$(eval $(call BuildPackage,mupdf-tools)) |
