[packages] rtorrent: update to 0.8.6_r1130 (#6685)
[openwrt/svn-archive/archive.git] / Xorg / lib / fltk2 / 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:=fltk2
11 PKG_REV:=6671
12 PKG_VERSION:=r$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=svn
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://svn.easysw.com/public/fltk/fltk/trunk
20 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
21
22 PKG_FIXUP = libtool
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/fltk2
27 SECTION:=xorg-framework
28 CATEGORY:=Xorg
29 SUBMENU:=framework
30 TITLE:=Fltk2
31 URL:=http://fltk.org/
32 DEPENDS:=+libXi +libstdcpp
33 endef
34
35 define Package/fltk2/description
36 FLTK (pronounced <fulltick>) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation.
37 endef
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); autoconf );
41 $(call Build/Configure/Default, --disable-jpeg --disable-zlib --disable-png --disable-gl --disable-xinerama --enable-shared --x-libraries=$(STAGING_DIR)/usr/lib --x-includes=$(STAGING_DIR)/usr/include)
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) all
46 endef
47
48 define Build/Install
49 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
50 endef
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/fltk $(1)/usr/include/
56 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fltk2-config $(1)/usr/bin/
57 endef
58
59 define Package/fltk2/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,fltk2))