-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (47 loc) · 1.48 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# Copyright (C) 2007-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:=xpdf
PKG_VERSION:=3.04
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.foolabs.com/pub/xpdf/
PKG_MD5SUM:=3bc86c69c8ff444db52461270bef3f44
#PKG_BUILD_DIR:= # Wo Compilieren? Das Verzeichnis nach dem Entpacken.
#PKG_CAT:= # Wie entpacken
#PKG_BUILD_DEPENDS:= # Pakete zum bauen aber nicht fuer Laufzeit
#PKG_INSTALL:= # "1" ruft das original "make install" mit Option PKG_INSTALL_DIR
#PKG_INSTALL_DIR:= # Installationsverzeichniss
#PKG_FIXUP:= # Nicht dokumentiert! Für Crosscompile bugs.
# @SF steht für sourceforge.org
# $(BUILD_DIR) ist das Verzeichniss, wo wget aufgerufen wird.
include $(INCLUDE_DIR)/package.mk
define Package/xpdf
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libpng +libstdcpp
TITLE:=xpdf
URL:=http://www.foolabs.com/
endef
define Package/xpdf/description
xpdf
endef
MAKE_FLAGS += AR="$(TARGET_CROSS)ar rc"
define Build/Configure
$(call Build/Configure/Default)
endef
define Build/Compile
$(call Build/Compile/Default)
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
endef
define Package/xpdf/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/xpdfrc $(1)/etc/
endef
$(eval $(call BuildPackage,xpdf))