92e4665089214acc9e53b88a0897260dbd3173f8
[packages.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 # $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=fltk2
12 PKG_REV:=6671
13 PKG_VERSION:=r$(PKG_REV)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE_PROTO:=svn
17 PKG_SOURCE_VERSION:=$(PKG_REV)
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_SOURCE_URL:=http://svn.easysw.com/public/fltk/fltk/trunk
21 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
22
23 PKG_FIXUP = libtool
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/fltk2
28   SECTION:=xorg-framework
29   CATEGORY:=Xorg
30   SUBMENU:=framework
31   TITLE:=Fltk2
32   URL:=http://fltk.org/
33   DEPENDS:=+libXi +libstdcpp
34 endef
35
36 define Package/fltk2/description
37     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.
38 endef
39
40 define Build/Configure
41         (cd $(PKG_BUILD_DIR); autoconf );
42         $(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)
43 endef
44
45 define Build/Compile
46         $(MAKE) -C $(PKG_BUILD_DIR) all
47 endef
48
49 define Build/Install
50         DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
51 endef
52
53 define Build/InstallDev
54         $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(1)/usr/include
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
56         $(CP) $(PKG_INSTALL_DIR)/usr/include/fltk $(1)/usr/include/
57         $(CP) $(PKG_INSTALL_DIR)/usr/bin/fltk2-config $(1)/usr/bin/
58 endef
59
60 define Package/fltk2/install
61         $(INSTALL_DIR) $(1)/usr/lib
62         $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,fltk2))