2009-03-09 15:22:45 +00:00
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := fltk2
PKG_REV := 6671
PKG_VERSION := r$( PKG_REV)
PKG_RELEASE := 1
PKG_SOURCE_PROTO := svn
PKG_SOURCE_VERSION := $( PKG_REV)
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_VERSION)
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://svn.easysw.com/public/fltk/fltk/trunk
PKG_BUILD_DIR = $( BUILD_DIR) /Xorg/$( _CATEGORY) /$( PKG_NAME) -$( PKG_VERSION) /
2010-02-19 01:20:44 +00:00
PKG_FIXUP := libtool
2009-03-09 15:22:45 +00:00
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / f l t k 2
SECTION:= xorg-framework
CATEGORY:= Xorg
SUBMENU:= framework
TITLE:= Fltk2
URL:= http://fltk.org/
DEPENDS:= +libXi +libstdcpp
e n d e f
d e f i n e P a c k a g e / f l t k 2 / d e s c r i p t i o n
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.
e n d e f
d e f i n e B u i l d / C o n f i g u r e
( cd $( PKG_BUILD_DIR) ; autoconf ) ;
$( 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)
e n d e f
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR) all
e n d e f
d e f i n e B u i l d / I n s t a l l
DESTDIR = " $( PKG_INSTALL_DIR) " $( MAKE) -C $( PKG_BUILD_DIR) install
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/lib $( 1) /usr/bin $( 1) /usr/include
$( CP) $( PKG_INSTALL_DIR) /usr/lib/* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/include/fltk $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/fltk2-config $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / f l t k 2 / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/*.so* $( 1) /usr/lib/
e n d e f
$( eval $ ( call BuildPackage ,fltk 2) )