fltk2: Enable parallel build
[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 PKG_BUILD_PARALLEL:=1
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) $(PKG_JOBS) -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))