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 | |
| 20 | PKG_BUILD_DEPENDS:= libtool/host |
| 21 | |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | |
| 24 | define Package/libgii |
| 25 | SECTION:=libs |
| 26 | CATEGORY:=Libraries |
| 27 | TITLE:=GGI Project Input Interface Library |
| 28 | URL:=http://www.ggi-project.org/packages/libgii.html |
| 29 | DEPENDS:= |
| 30 | endef |
| 31 | |
| 32 | define Package/libgii/description |
| 33 | LibGII is intended to be to input what our LibGGI library is to graphics. |
| 34 | |
| 35 | The goal of LibGII is to provide a single easy to use, but yet powerful, API |
| 36 | for all possible input sources. However we are not there yet. The API is far |
| 37 | from set in stone yet, and is likely to change. |
| 38 | endef |
| 39 | |
| 40 | TARGET_CFLAGS += |
| 41 | |
| 42 | # fix for dependency between libgii and libgg. If not rpath configured |
| 43 | # linking with libgii and not libgg fails. |
| 44 | #TARGET_LDFLAGS += -Wl,-rpath -Wl,$(STAGING_DIR)/usr/lib |
| 45 | |
| 46 | CONFIGURE_ARGS += \ |
| 47 | --enable-mutexes=builtin \ |
| 48 | --disable-x |
| 49 | |
| 50 | MAKE_FLAGS += X_CFLAGS=$(STAGING_DIR)/usr/include |
| 51 | |
| 52 | define Build/Configure |
| 53 | $(call Build/Configure/Default) |
| 54 | endef |
| 55 | |
| 56 | define Build/Compile |
| 57 | $(call Build/Compile/Default,-j2) |
| 58 | endef |
| 59 | |
| 60 | define Build/InstallDev |
| 61 | $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib |
| 62 | $(CP) \ |
| 63 | $(PKG_INSTALL_DIR)/usr/include/* \ |
| 64 | $(1)/usr/include/ |
| 65 | $(CP) \ |
| 66 | $(PKG_INSTALL_DIR)/usr/lib/*.{la,a,so*} \ |
| 67 | $(1)/usr/lib/ |
| 68 | endef |
| 69 | |
| 70 | define Package/libgii/install |
| 71 | $(INSTALL_DIR) $(1)/usr/lib |
| 72 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/ |
| 73 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/ggi $(1)/usr/lib/ |
| 74 | $(INSTALL_DIR) $(1)/etc/ggi |
| 75 | $(CP) $(PKG_INSTALL_DIR)/etc/ggi/* $(1)/etc/ggi/ |
| 76 | endef |
| 77 | |
| 78 | $(eval $(call BuildPackage,libgii)) |
| 79 | |
| 80 | |
| 81 | # The following comments configure the Emacs editor. Just ignore them. |
| 82 | # Local Variables: |
| 83 | # compile-command: "make -C ~/h/src/qi/openwrt-xburst package/libgii/compile -j2 V=99" |
| 84 | # End: |
| 85 |
