blob: 2d71a5013132b700572b6d5f57f8f6b38d1336b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# 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 $
include $(TOPDIR)/rules.mk
PKG_NAME:=eina
PKG_REV:=40853
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.enlightenment.org/svn/e/trunk/$(PKG_NAME)
PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
PKG_FIXUP = libtool
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
define Package/eina
SECTION:=xorg-lib
CATEGORY:=Xorg
SUBMENU:=libraries
TITLE:=Eina
URL:=http://wiki.enlightenment.org/index.php/Eina
DEPENDS:=+libpthread
endef
define Build/Configure
( cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
$(call Build/Configure/Default, \
--disable-cpu-mmx \
--disable-cpu-sse \
--disable-cpu-sse2 \
--disable-cpu-altivec \
--disable-magic-debug \
--disable-doc \
--disable-pthread \
--disable-tests \
--disable-benchmark \
)
endef
define Host/Configure
( cd $(HOST_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
$(call Host/Configure/Default, \
--disable-cpu-mmx \
--disable-cpu-sse \
--disable-cpu-sse2 \
--disable-cpu-altivec \
--disable-magic-debug \
--disable-doc \
--disable-pthread \
--disable-tests \
--disable-benchmark \
)
endef
define Build/Compile
DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
endef
define Package/eina/install
$(INSTALL_DIR) $(1)/usr/lib/eina/mp
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libeina*.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/eina/mp/*.so* $(1)/usr/lib/eina/mp/
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,eina))
|