Date:2010-10-22 18:17:01 (9 years 8 months ago)
Author:kyak
Commit:8bcbadf84630a5b48c71db154cae31e0a2b00528
Message:nupdf: initial port

Files: nupdf/Makefile (1 diff)
nupdf/files/nupdf.sh (1 diff)
nupdf/patches/001-r15-bracket.patch (1 diff)

Change Details

nupdf/Makefile
1#
2# This is free software, licensed under the GNU General Public License v2.
3#
4
5include $(TOPDIR)/rules.mk
6
7PKG_NAME:=nupdf
8PKG_RELEASE:=1
9PKG_REV:=15
10PKG_VERSION:=r$(PKG_REV)
11PKG_SOURCE_URL:=http://nupdf.googlecode.com/svn/trunk/
12PKG_SOURCE_PROTO:=svn
13PKG_SOURCE_VERSION:=$(PKG_REV)
14PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/nupdf
20  SECTION:=utils
21  CATEGORY:=Utilities
22  TITLE:=relatively fast pdf reader in SDL
23  URL:=http://code.google.com/p/nupdf/
24  DEPENDS:=+libsdl
25endef
26
27define Package/nupdf/description
28  nupdf is a relatively fast pdf reader; it uses the mupdf library to render pages/handle files, and SDL for the UI
29endef
30
31TARGET_CFLAGS += \
32    -I$(STAGING_DIR)/usr/include
33
34TARGET_LDFLAGS += \
35    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
36    -ldl -lSDL -lmupdf -lfitz -lfitzdraw \
37    -lcmaps -lfonts -lfreetype -lpthread \
38    -lm -ljpeg -lz
39
40define Build/Compile
41    $(TARGET_CC) $(PKG_BUILD_DIR)/*.c -o $(PKG_BUILD_DIR)/nupdf $(TARGET_CFLAGS) -L$(PKG_BUILD_DIR) $(TARGET_LDFLAGS)
42endef
43
44define Package/nupdf/install
45    $(INSTALL_DIR) \
46        $(1)/usr/bin $(1)/usr/share/nupdf
47
48    $(INSTALL_BIN) \
49        $(PKG_BUILD_DIR)/nupdf $(1)/usr/bin/nupdf.bin
50
51    $(INSTALL_BIN) \
52        $(FILES_DIR)/nupdf.sh $(1)/usr/bin/nupdf
53
54    $(CP) \
55        $(PKG_BUILD_DIR)/{data,config} $(1)/usr/share/nupdf
56endef
57
58$(eval $(call BuildPackage,nupdf))
nupdf/files/nupdf.sh
1#!/bin/sh
2cd /usr/share/nupdf
3/usr/bin/nupdf.bin $*
nupdf/patches/001-r15-bracket.patch
1--- nupdf-15.orig/main.c 2010-10-22 16:44:51.033676255 +0400
2@@ -457,7 +457,7 @@
3                     strcpy(arrows[i], "");
4                 }
5
6-
7+ }
8         sprintf(settingstext, "\t\t\tSettings\t%s\n\n"
9                               "Jump to page %i\t%s\n\n"
10                               "Return\t%s"

Archive Download the corresponding diff file



interactive