Root/libgii/Makefile

1#
2# Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de>
3#
4# License GPLv2 or later. NO WARRANTY.
5#
6# OpenWRT package for the libGII
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libgii
11PKG_VERSION:=1.0.2
12PKG_RELEASE:=1
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz
14PKG_SOURCE_URL:=@SF/ggi
15PKG_MD5SUM:=205ca1d87042c8e4aafecd6da7c9de39
16PKG_BUILD_DIR:=$(BUILD_DIR)/libgii-$(PKG_VERSION)
17PKG_INSTALL:=1
18PKG_FIXUP:=libtool
19PKG_REMOVE_FILES:=aclocal.m4 acinclude.m4
20
21PKG_BUILD_DEPENDS:=
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/libgii
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=GGI Project Input Interface Library
29  URL:=http://www.ggi-project.org/packages/libgii.html
30  DEPENDS:=
31endef
32
33define Package/libgii/description
34LibGII is intended to be to input what our LibGGI library is to graphics.
35
36The goal of LibGII is to provide a single easy to use, but yet powerful, API
37for all possible input sources. However we are not there yet. The API is far
38from set in stone yet, and is likely to change.
39endef
40
41TARGET_CFLAGS +=
42
43# fix for dependency between libgii and libgg. If not rpath configured
44# linking with libgii and not libgg fails.
45#TARGET_LDFLAGS += -Wl,-rpath -Wl,$(STAGING_DIR)/usr/lib
46
47CONFIGURE_ARGS += \
48    --enable-mutexes=builtin \
49    --without-x
50
51MAKE_FLAGS += X_CFLAGS=$(STAGING_DIR)/usr/include
52
53define Build/Configure
54    $(call Build/Configure/Default)
55endef
56
57define Build/Compile
58    $(call Build/Compile/Default,-j2)
59endef
60
61define Build/InstallDev
62    $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
63    $(CP) \
64        $(PKG_INSTALL_DIR)/usr/include/* \
65        $(1)/usr/include/
66    $(CP) \
67        $(PKG_INSTALL_DIR)/usr/lib/*.{la,a,so*} \
68        $(1)/usr/lib/
69endef
70
71define Package/libgii/install
72    $(INSTALL_DIR) $(1)/usr/lib
73    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
74    $(CP) $(PKG_INSTALL_DIR)/usr/lib/ggi $(1)/usr/lib/
75    $(INSTALL_DIR) $(1)/etc/ggi
76    $(CP) $(PKG_INSTALL_DIR)/etc/ggi/* $(1)/etc/ggi/
77endef
78
79$(eval $(call BuildPackage,libgii))
80
81
82# The following comments configure the Emacs editor. Just ignore them.
83# Local Variables:
84# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/libgii/compile -j2 V=99"
85# End:
86

Archive Download this file



interactive