2008-11-16 19:31:42 +00:00
#
2008-11-27 22:24:56 +00:00
# Copyright (C) 2006-2008 OpenWrt.org
2008-11-16 19:31:42 +00:00
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := enlightenment
2008-11-27 22:24:56 +00:00
PKG_REV := 37637
PKG_VERSION := r$( PKG_REV)
2008-11-16 19:31:42 +00:00
PKG_RELEASE := 1
PKG_SOURCE_PROTO := svn
2008-11-27 22:24:56 +00:00
PKG_SOURCE_VERSION := $( PKG_REV)
2008-11-16 19:31:42 +00:00
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_VERSION)
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
2008-11-27 22:24:56 +00:00
PKG_SOURCE_URL := http://svn.enlightenment.org/svn/e/trunk/e
2008-11-16 19:31:42 +00:00
PKG_BUILD_DIR = $( BUILD_DIR) /Xorg/$( _CATEGORY) /$( PKG_NAME) -$( PKG_VERSION) /
PKG_FIXUP = libtool
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 / e n l i g h t e n m e n t
SECTION:= xorg-wm
CATEGORY:= Xorg
TITLE:= Enlightenment e17 window manager
URL:= http://enlightenment.org
DEPENDS:= +libintl +libpthread +eet +evas +ecore +edje +efreet +edbus +dbus-utils +dejavu-fonts-ttf
e n d e f
d e f i n e P a c k a g e / e n l i g h t e n m e n t / c o n f i g
menu "Configuration"
depends on PACKAGE_enlightenment
source " $( SOURCE) /Config.in "
endmenu
e n d e f
d e f i n e P a c k a g e / e n l i g h t e n m e n t / d e s c r i p t i o n
Enlightenment is a window manager. Enlightenment is a desktop shell. Enlightenment is the building blocks to create beautiful applications. Enlightenment, or simply e, is a group of people trying to make a new generation of software.
e n d e f
EXTRA_CFLAGS += -I$( STAGING_DIR) /usr/lib/libintl/include
EXTRA_LDFLAGS += -lintl -L$( STAGING_DIR) /usr/lib/libintl/lib -Wl,-rpath-link= $( STAGING_DIR) /usr/lib
d e f i n e B u i l d / C o n f i g u r e
( cd $( PKG_BUILD_DIR) ; NOCONFIGURE = YES ./autogen.sh ) ;
$( call Build/Configure/Default, --with-edje-cc= $( STAGING_DIR_HOST) /usr/bin/edje_cc --with-eet-eet= $( STAGING_DIR_HOST) /usr/bin/eet)
e n d e f
d e f i n e B u i l d / C o m p i l e
mkdir -p $( STAGING_DIR_HOST) /usr/bin
# let's see who is workarounding the edje[_cc]/eet-issue most dirrty ^^
ln -sf ` which edje_cc` $( STAGING_DIR_HOST) /usr/bin/
ln -sf ` which eet` $( STAGING_DIR_HOST) /usr/bin/
DESTDIR = " $( PKG_INSTALL_DIR) " $( MAKE) -C $( PKG_BUILD_DIR) all install
rm -f $( STAGING_DIR_HOST) /usr/bin/{ edje_cc,eet}
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
mkdir -p $( 1) /usr/include $( 1) /usr/lib $( 1) /usr/bin $( 1) /usr/share
$( CP) $( PKG_INSTALL_DIR) /usr/include/* $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/* $( 1) /usr/bin/
$( CP) $( PKG_INSTALL_DIR) /usr/share/* $( 1) /usr/share/
e n d e f
d e f i n e P a c k a g e / e n l i g h t e n m e n t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib $( 1) /usr/bin $( 1) /usr/share
$( CP) $( PKG_INSTALL_DIR) /usr/lib/* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/* $( 1) /usr/bin/
$( CP) $( PKG_INSTALL_DIR) /usr/share/* $( 1) /usr/share/
echo "#!/bin/sh" > $( 1) /usr/bin/WM
echo -n "test -d ~/.e || /usr/bin/enlightenment_start -profile " >> $( 1) /usr/bin/WM
$( if $( CONFIG_E17_ILLUME) ,echo "illume" >> $( 1) /usr/bin/WM)
$( if $( CONFIG_E17_MINIMALIST) ,echo "minimalist" >> $( 1) /usr/bin/WM)
$( if $( CONFIG_E17_NETBOOK) ,echo "netbook" >> $( 1) /usr/bin/WM)
$( if $( CONFIG_E17_SCALEABLE) ,echo "scaleable" >> $( 1) /usr/bin/WM)
$( if $( CONFIG_E17_STANDARD) ,echo "standard" >> $( 1) /usr/bin/WM)
chmod +x $( 1) /usr/bin/WM
find $( 1) / -name *.la | xargs rm -f
find $( 1) / -name *.a | xargs rm -f
e n d e f
$( eval $ ( call BuildPackage ,enlightenment ) )
$( eval $ ( call RequireCommand ,edje_cc , \
Command <edje_cc> not found - please install edje with edje-cc enabled \
) )
$( eval $ ( call RequireCommand ,eet , \
Command <eet> not found - please install eet \
) )