Makefile (1827B)
1 # 2 # Copyright (C) 2009-2015 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=grilo 11 PKG_VERSION:=0.3.1 12 PKG_RELEASE:=1 13 14 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org> 15 16 PKG_LICENSE:=LGPLv2.1 17 PKG_LICENSE_FILES:=COPYING 18 19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 20 PKG_SOURCE_URL:=@GNOME/grilo/0.3/ 21 PKG_MD5SUM:=3b6733633e42143ff90fac1fef34cf42 22 23 PKG_BUILD_DEPENDS:=glib2 libsoup libxml2 24 25 PKG_INSTALL:=1 26 27 include $(INCLUDE_DIR)/package.mk 28 include $(INCLUDE_DIR)/nls.mk 29 30 TARGET_LDFLAGS+= \ 31 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib 32 33 define Package/grilo 34 SECTION:=multimedia 35 CATEGORY:=Multimedia 36 TITLE:=grilo 37 URL:=https://wiki.gnome.org/Projects/Grilo 38 DEPENDS:=+glib2 +libsoup +libxml2 39 endef 40 41 define Package/grilo/decription 42 Grilo is a framework that provides access to different sources of 43 multimedia content, using a pluggable system. 44 endef 45 46 define Build/InstallDev 47 $(INSTALL_DIR) $(1)/usr/include/ 48 $(CP) \ 49 $(PKG_INSTALL_DIR)/usr/include/grilo-0.3/ \ 50 $(1)/usr/include/ 51 $(INSTALL_DIR) $(1)/usr/lib/ 52 $(CP) \ 53 $(PKG_INSTALL_DIR)/usr/lib/*.so* \ 54 $(1)/usr/lib/ 55 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/ 56 $(INSTALL_DATA) \ 57 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \ 58 $(1)/usr/lib/pkgconfig/ 59 $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi/ 60 # Note: this are compiled elsewhere because grilo refuses to 61 # generate VAPI files unless gobject-introspection exists; 62 # OpenWrt does not yet have a gobject-introspection package. 63 $(INSTALL_DATA) \ 64 ./files/*.vapi \ 65 $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi 66 endef 67 68 define Package/grilo/install 69 $(INSTALL_DIR) $(1)/usr/lib/ 70 $(CP) \ 71 $(PKG_INSTALL_DIR)/usr/lib/*.so* \ 72 $(1)/usr/lib/ 73 endef 74 75 $(eval $(call BuildPackage,grilo))