dillo: add multiple missing dependencies
[openwrt/svn-archive/archive.git] / Xorg / app / dillo / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dillo
11 PKG_REV:=cc974615ae39
12 PKG_VERSION:=r$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=hg
16 PKG_SOURCE_VERSION:=$(PKG_REV)
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_SOURCE_URL:=http://freehg.org/u/dillo/main
20 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/dillo
25 SECTION:=xorg-app
26 CATEGORY:=Xorg
27 SUBMENU:=app
28 TITLE:=Dillo2
29 URL:=http://fltk.org/
30 DEPENDS:=+libXft +libstdcpp +libpthread +zlib +fltk2 +libjpeg +libiconv +libpng
31 endef
32
33 define Package/dillo/description
34 Dillo is a web browser project completely written in C.
35 Dillo aims to be a multi-platform browser alternative that
36 is small, stable, developer-friendly, usable, fast, and
37 extensible.
38
39 Note: This is the fltk2 based dillo.
40 endef
41
42 EXTRA_CPPFLAGS+=-I$(STAGING_DIR)/usr/lib/libiconv/include
43 EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib/libiconv/lib -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
44
45 define Build/Configure
46 (cd $(PKG_BUILD_DIR); ./autogen.sh );
47 $(call Build/Configure/Default)
48 endef
49
50 define Build/Install
51 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
52 endef
53
54 define Package/dillo/install
55 $(INSTALL_DIR) $(1)/etc $(1)/usr/share/applications $(1)/usr/share/icons
56 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dillo $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dpid $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dpidc $(1)/usr/bin
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/dillo $(1)/usr/lib/
63 $(CP) ./files/dillo.png $(1)/usr/share/icons/
64 $(INSTALL_DATA) ./files/dillo.desktop $(1)/usr/share/applications/
65 endef
66
67 $(eval $(call BuildPackage,dillo))