Root/nupdf/Makefile

Source at commit 1b3135c created 8 years 4 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
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/share/nupdf/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))
59

Archive Download this file



interactive