source: feeds/desktop/apps/tint2/Makefile @ 25197

Last change on this file since 25197 was 25197, checked in by mb, 6 years ago

tint2: Use custom config file. This enables launcher and multidesktop support.

File size: 2.7 KB
Line 
1#
2# Copyright (C) 2011 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:=tint2
11PKG_REV:=622
12PKG_VERSION:=svn$(PKG_REV)
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://tint2.googlecode.com/svn/trunk/
17PKG_SOURCE_PROTO:=svn
18PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19PKG_SOURCE_VERSION:=$(PKG_REV)
20PKG_INSTALL:=1
21PKG_BUILD_PARALLEL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/tint2
26  SECTION:=xorg-app
27  CATEGORY:=Xorg
28  SUBMENU:=app
29  TITLE:=Tint2 - simple panel/taskbar
30  MAINTAINER:=Michael Buesch <mb@bu3sch.de>
31  URL:=http://code.google.com/p/tint2/
32  DEPENDS:=+cairo +pango +glib2 +libX11 +libXrandr +libXrender +libXcomposite +libXdamage +imlib2 +python-mini +python-gtk
33endef
34
35define Package/tint2/description
36  tint2 is a simple panel/taskbar unintrusive and light (memory / cpu / aestetic).
37endef
38
39EXTRA_CFLAGS:=\
40        -I$(STAGING_DIR)/usr/include \
41        -I$(STAGING_DIR)/usr/include/cairo \
42        -I$(STAGING_DIR)/usr/include/pango-1.0 \
43        -I$(STAGING_DIR)/usr/include/glib-2.0
44
45MAKE_FLAGS+=\
46        VERBOSE=1
47
48define Build/Configure
49        (cd $(PKG_BUILD_DIR); \
50                cmake   -DCMAKE_SYSTEM_NAME=Linux \
51                        -DCMAKE_SYSTEM_VERSION=1 \
52                        -DCMAKE_SYSTEM_PROCESSOR=$(ARCH) \
53                        -DCMAKE_BUILD_TYPE=Release \
54                        -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
55                        -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
56                        -DCMAKE_C_COMPILER=$(TOOLCHAIN_DIR)/bin/$(TARGET_CC) \
57                        -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
58                        -DCMAKE_CXX_COMPILER=$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX) \
59                        -DCMAKE_CXX_FLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
60                        -DCMAKE_EXE_LINKER_FLAGS="$(TARGET_LDFLAGS)" \
61                        -DCMAKE_MODULE_LINKER_FLAGS="$(TARGET_LDFLAGS)" \
62                        -DCMAKE_SHARED_LINKER_FLAGS="$(TARGET_LDFLAGS)" \
63                        -DCMAKE_FIND_ROOT_PATH=$(STAGING_DIR) \
64                        -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=$(STAGING_DIR_HOST) \
65                        -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=$(STAGING_DIR) \
66                        -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=$(STAGING_DIR) \
67                        -DCMAKE_STRIP=$(STRIP) \
68                        -DCMAKE_INSTALL_PREFIX=/usr \
69                . \
70        )
71endef
72
73define Package/tint2/install
74        $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share $(1)/etc/xdg/tint2
75        $(CP) ./files/tint2rc $(1)/etc/xdg/tint2/
76        $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
77        $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
78endef
79
80CMAKE_MAJOR:=$$$$(cmake --version | cut -d' ' -f 3 | cut -d'.' -f1)
81CMAKE_MINOR:=$$$$(cmake --version | cut -d' ' -f 3 | cut -d'.' -f2)
82
83define Require/cmake26
84        [ "$(CMAKE_MAJOR)" -gt 2 ] || \
85        [ "$(CMAKE_MAJOR)" -eq 2 -a "$(CMAKE_MINOR)" -ge 6 ]
86endef
87
88$(eval $(call Require,cmake26, \
89        Please install CMake version 2.6 or later. \
90))
91
92$(eval $(call BuildPackage,tint2))
Note: See TracBrowser for help on using the repository browser.