Artur,

Op 14-02-12 03:46, Artur Twarecki schreef:
This adds packages libhdhomerun and hdhomerun_config.

Signed-off-by: Artur Twarecki<openwrt at twarecki.ca>

Index: package/libhdhomerun/Makefile
===================================================================
--- package/libhdhomerun/Makefile       (revision 0)
+++ package/libhdhomerun/Makefile       (revision 0)
@@ -0,0 +1,62 @@
+#
+# Copyright (C) 2012 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=libhdhomerun
+PKG_RELEASE:=1
+PKG_SOURCE_URL:=http://download.silicondust.com/hdhomerun
+PKG_VERSION:=20111025
+PKG_MD5SUM:=e833204b9d8f1b311bd9be5666edb890
+PKG_BUILD_DIR:=$(BUILD_DIR)/libhdhomerun
+PKG_CAT=zcat
+
+PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tgz
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libhdhomerun
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=HDHomeRun library
+  URL:=http://www.silicondust.com
+  DEPENDS:=+libpthread +librt
+endef
+
+define Package/libhdhomerun/description
+SiliconDust's library for HDHomeRun devices.
+endef
+
+define Package/hdhomerun_config
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=HDHomeRun configuration utility
+  URL:=http://www.silicondust.com
+  DEPENDS:=+libpthread +librt
+endef
+
+define Package/hdhomerun_config/description
+SiliconDust's hdhomerun_config is a command-line tool used to configure
+and control HDHomeRun devices.
+endef
+
+CONFIGURE_ARGS += \
+       --with-linux-headers="$(LINUX_DIR)" \
+
Please also install the header files (there are a lot of them, and hdhomerun.h includes almost all of the others) so I would like to suggest using a subdirectory) and the shared library in the staging dir, so other packages (like dvbhdhomerun, which I am working on) can use them, like so:

define Build/InstallDev
    $(INSTALL_DIR) $(1)/usr/include/hdhomerun
    $(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/hdhomerun

    $(INSTALL_DIR) $(1)/usr/lib
    $(CP) $(PKG_BUILD_DIR)/libhdhomerun.so $(1)/usr/lib/
endef
+define Package/libhdhomerun/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/libhdhomerun.so $(1)/usr/lib/
+endef
+
+define Package/hdhomerun_config/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/hdhomerun_config $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,libhdhomerun))
+$(eval $(call BuildPackage,hdhomerun_config))



_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to