source: packages/Xorg/app/dillo/Makefile @ 25319

Last change on this file since 25319 was 25319, checked in by jow, 6 years ago

[packages] make libintl and libiconv stub/full implementations switchable, use the new include/nls.mk infrastructure for it

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