From 0c9d588c6fbe62930da22ec82520fbe3dd363ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Tue, 4 Jan 2011 18:50:07 +0100 Subject: [PATCH] libgii: initial commit --- libgii/Makefile | 77 +++++++++++++++++++++++++++++++ libgii/patches/010-no-demos.patch | 13 ++++++ 2 files changed, 90 insertions(+) create mode 100644 libgii/Makefile create mode 100644 libgii/patches/010-no-demos.patch diff --git a/libgii/Makefile b/libgii/Makefile new file mode 100644 index 0000000..c1409e6 --- /dev/null +++ b/libgii/Makefile @@ -0,0 +1,77 @@ +# +# Copyright (C) 2011 David Kuehling +# +# License GPLv2 or later. NO WARRANTY. +# +# OpenWRT package for the libGII + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libgii +PKG_VERSION:=1.0.2 +PKG_RELEASE:=1 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz +PKG_SOURCE_URL:=@SF/ggi +PKG_MD5SUM:=205ca1d87042c8e4aafecd6da7c9de39 +PKG_BUILD_DIR:=$(BUILD_DIR)/libgii-$(PKG_VERSION) +PKG_INSTALL:=1 +PKG_FIXUP:=libtool + +PKG_BUILD_DEPENDS:= libtool/host + +include $(INCLUDE_DIR)/package.mk + +define Package/libgii + SECTION:=libs + CATEGORY:=Libraries + TITLE:=GGI Project Input Interface Library + URL:=http://www.ggi-project.org/packages/libgii.html + DEPENDS:= +endef + +define Package/libgii/description +LibGII is intended to be to input what our LibGGI library is to graphics. + +The goal of LibGII is to provide a single easy to use, but yet powerful, API +for all possible input sources. However we are not there yet. The API is far +from set in stone yet, and is likely to change. +endef + +TARGET_CFLAGS += +CONFIGURE_VARS += +CONFIGURE_ARGS += \ + --enable-mutexes=builtin \ + --disable-x + +define Build/Configure + $(call Build/Configure/Default) +endef + +define Build/Compile + $(call Build/Compile/Default,-j2) +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/*.{a,so*} \ + $(1)/usr/lib/ +endef + +define Package/libgii/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/etc/ggi + $(CP) $(PKG_INSTALL_DIR)/etc/ggi/* $(1)/etc/ggi/ +endef + +$(eval $(call BuildPackage,libgii)) + + +# The following comments configure the Emacs editor. Just ignore them. +# Local Variables: +# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/libgii/compile -j2 V=99" +# End: diff --git a/libgii/patches/010-no-demos.patch b/libgii/patches/010-no-demos.patch new file mode 100644 index 0000000..a2d1669 --- /dev/null +++ b/libgii/patches/010-no-demos.patch @@ -0,0 +1,13 @@ +Index: libgii-1.0.2/Makefile.in +=================================================================== +--- libgii-1.0.2.orig/Makefile.in 2011-01-04 18:41:07.000000000 +0100 ++++ libgii-1.0.2/Makefile.in 2011-01-04 18:41:27.000000000 +0100 +@@ -337,7 +337,7 @@ + + # multiple AUTOMAKE_OPTIONS lines only confuses automake 1.6 + AUTOMAKE_OPTIONS = 1.4 foreign +-SUBDIRS = include gg input filter gii input-shared filter-shared regress demos doc m4 dist ++SUBDIRS = include gg input filter gii input-shared filter-shared regress doc m4 dist + giiconfdatadir = ${sysconfdir}/${ggi_subdir} + giiconfdata_DATA = libgii.conf + DISTCLEANFILES = libgii.conf config.lt