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 libGGI |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=libggi |
| 11 | PKG_VERSION:=2.2.2 |
| 12 | PKG_RELEASE:=1 |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz |
| 14 | PKG_SOURCE_URL:=@SF/ggi |
| 15 | PKG_MD5SUM:=4fa672b1403c9f06e8cb35e699a693f1 |
| 16 | PKG_BUILD_DIR:=$(BUILD_DIR)/libggi-$(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/libggi/Default |
| 25 | SECTION:=libs |
| 26 | CATEGORY:=Libraries |
| 27 | URL:=http://www.ggi-project.org/packages/libggi.html |
| 28 | endef |
| 29 | |
| 30 | define Package/libggi/Default/description |
| 31 | LibGGI is the central library in the GGI project, hence the name. |
| 32 | |
| 33 | It provides an opaque interface to the display\'s acceleration functions. It |
| 34 | was originally intended to allow user programs to interface with KGI, the GGI |
| 35 | Kernel Graphics Interface, but other display types can be easily used by |
| 36 | loading the appropriate \"display target\" (e.g. X, memory). |
| 37 | endef |
| 38 | |
| 39 | define Package/libggi |
| 40 | $(call Package/libggi/Default) |
| 41 | TITLE += (library) |
| 42 | DEPENDS:=+libgii |
| 43 | #+directfb |
| 44 | endef |
| 45 | |
| 46 | define Package/libggi/description |
| 47 | $(call Package/libggi/Default/description) |
| 48 | This package contains the library files. |
| 49 | endef |
| 50 | |
| 51 | |
| 52 | define Package/libggi-programs |
| 53 | $(call Package/libggi/Default) |
| 54 | TITLE += (programs) |
| 55 | DEPENDS:=+libggi |
| 56 | #+directfb |
| 57 | endef |
| 58 | |
| 59 | define Package/libggi-programs/description |
| 60 | $(call Package/libggi/Default/description) |
| 61 | This package contains the test and example programs for libggi. |
| 62 | endef |
| 63 | |
| 64 | TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib |
| 65 | CONFIGURE_VARS += ac_cv_func_mmap_fixed_mapped=yes |
| 66 | |
| 67 | TARGET_CPPFLAGS += \ |
| 68 | -I$(STAGING_DIR)/usr/include/directfb \ |
| 69 | |
| 70 | # searches for fusion* headers that are not present. different version? |
| 71 | CONFIGURE_ARGS += \ |
| 72 | --disable-x \ |
| 73 | --with-gii=$(STAGING_DIR)/usr/lib \ |
| 74 | --disable-directfb |
| 75 | |
| 76 | define Build/Configure |
| 77 | $(call Build/Configure/Default) |
| 78 | endef |
| 79 | |
| 80 | define Build/Compile |
| 81 | $(call Build/Compile/Default,-j2) |
| 82 | endef |
| 83 | |
| 84 | define Build/InstallDev |
| 85 | $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib |
| 86 | $(CP) \ |
| 87 | $(PKG_INSTALL_DIR)/usr/include/* \ |
| 88 | $(1)/usr/include/ |
| 89 | $(CP) \ |
| 90 | $(PKG_INSTALL_DIR)/usr/lib/*.{a,la,so*} \ |
| 91 | $(1)/usr/lib/ |
| 92 | endef |
| 93 | |
| 94 | define Package/libggi/install |
| 95 | $(INSTALL_DIR) $(1)/usr/lib |
| 96 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/ |
| 97 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/ggi $(1)/usr/lib/ |
| 98 | $(INSTALL_DIR) $(1)/etc/ggi |
| 99 | $(CP) $(PKG_INSTALL_DIR)/etc/ggi/* $(1)/etc/ggi/ |
| 100 | endef |
| 101 | |
| 102 | |
| 103 | define Package/libggi-programs/install |
| 104 | $(INSTALL_DIR) $(1)/usr/bin |
| 105 | $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ |
| 106 | endef |
| 107 | |
| 108 | $(eval $(call BuildPackage,libggi)) |
| 109 | $(eval $(call BuildPackage,libggi-programs)) |
| 110 | |
| 111 | |
| 112 | # The following comments configure the Emacs editor. Just ignore them. |
| 113 | # Local Variables: |
| 114 | # compile-command: "make -C ~/h/src/qi/openwrt-xburst package/libggi/compile -j2 V=99" |
| 115 | # End: |
| 116 |
