OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=libgii |
| 11 | PKG_VERSION:=1.0.2 |
| 12 | PKG_RELEASE:=1 |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz |
| 14 | PKG_SOURCE_URL:=@SF/ggi |
| 15 | PKG_MD5SUM:=205ca1d87042c8e4aafecd6da7c9de39 |
| 16 | PKG_BUILD_DIR:=$(BUILD_DIR)/libgii-$(PKG_VERSION) |
| 17 | PKG_INSTALL:=1 |
| 18 | PKG_FIXUP:=libtool |
| 19 | PKG_REMOVE_FILES:=aclocal.m4 acinclude.m4 |
| 20 | |
| 21 | PKG_BUILD_DEPENDS:= |
| 22 | |
| 23 | include $(INCLUDE_DIR)/package.mk |
| 24 | |
| 25 | define 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:= |
| 31 | endef |
| 32 | |
| 33 | define Package/libgii/description |
| 34 | LibGII is intended to be to input what our LibGGI library is to graphics. |
| 35 | |
| 36 | The goal of LibGII is to provide a single easy to use, but yet powerful, API |
| 37 | for all possible input sources. However we are not there yet. The API is far |
| 38 | from set in stone yet, and is likely to change. |
| 39 | endef |
| 40 | |
| 41 | TARGET_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 | |
| 47 | CONFIGURE_ARGS += \ |
| 48 | --enable-mutexes=builtin \ |
| 49 | --without-x |
| 50 | |
| 51 | MAKE_FLAGS += X_CFLAGS=$(STAGING_DIR)/usr/include |
| 52 | |
| 53 | define Build/Configure |
| 54 | $(call Build/Configure/Default) |
| 55 | endef |
| 56 | |
| 57 | define Build/Compile |
| 58 | $(call Build/Compile/Default,-j2) |
| 59 | endef |
| 60 | |
| 61 | define 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/ |
| 69 | endef |
| 70 | |
| 71 | define 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/ |
| 77 | endef |
| 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 |
