source: packages/Xorg/lib/fltk2/Makefile @ 19719

Last change on this file since 19719 was 19719, checked in by lars, 7 years ago

[packages] Add missing md5sums

File size: 1.8 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=fltk2
11PKG_REV:=6671
12PKG_VERSION:=r$(PKG_REV)
13PKG_RELEASE:=1
14
15PKG_SOURCE_PROTO:=svn
16PKG_SOURCE_VERSION:=$(PKG_REV)
17PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19PKG_SOURCE_URL:=http://svn.easysw.com/public/fltk/fltk/trunk
20PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
21
22PKG_FIXUP:=libtool
23
24include $(INCLUDE_DIR)/package.mk
25
26define Package/fltk2
27  SECTION:=xorg-framework
28  CATEGORY:=Xorg
29  SUBMENU:=framework
30  TITLE:=Fltk2
31  URL:=http://fltk.org/
32  DEPENDS:=+libXi +libstdcpp
33endef
34
35define 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.
37endef
38
39define 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)
42endef
43
44define Build/Compile
45        $(MAKE) -C $(PKG_BUILD_DIR) all
46endef
47
48define Build/Install
49        DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
50endef
51
52define 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/
57endef
58
59define Package/fltk2/install
60        $(INSTALL_DIR) $(1)/usr/lib
61        $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
62endef
63
64$(eval $(call BuildPackage,fltk2))
Note: See TracBrowser for help on using the repository browser.