You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2011-2020 Entware
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gerbera
  9. PKG_VERSION:=1.4.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/gerbera/gerbera/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=904a9031c85ac805e4c139f363510226952683d7257acd1dee25ba1e97fd7651
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=LICENSE.md
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/gerbera
  22. SECTION:=multimedia
  23. CATEGORY:=Multimedia
  24. DEPENDS:=+file +libupnp +libsqlite3 +libexif +libexpat +libuuid +libstdcpp $(ICONV_DEPENDS)
  25. TITLE:=A free media server
  26. URL:=https://gerbera.io
  27. USERID:=gerbera:gerbera
  28. endef
  29. define Package/gerbera/description
  30. Gerbera - UPnP Media Server based on Mediatomb.
  31. endef
  32. define Package/gerbera/conffiles
  33. /etc/gerbera/config.xml
  34. endef
  35. CMAKE_OPTIONS += \
  36. -DICONV_INCLUDE_DIR=$(ICONV_PREFIX)/include \
  37. -DICONV_LIBRARIES=$(ICONV_PREFIX)/lib/libiconv.a \
  38. -DWITH_MAGIC=1 \
  39. -DWITH_MYSQL=0 \
  40. -DWITH_CURL=0 \
  41. -DWITH_INOTIFY=1 \
  42. -DWITH_JS=0 \
  43. -DWITH_TAGLIB=0 \
  44. -DWITH_AVCODEC=0 \
  45. -DWITH_FFMPEGTHUMBNAILER=0 \
  46. -DWITH_EXIF=1 \
  47. -DWITH_EXIV2=0 \
  48. -DWITH_MATROSKA=0 \
  49. -DWITH_SYSTEMD=0 \
  50. -DWITH_LASTFM=0 \
  51. -DWITH_DEBUG=0 \
  52. -DWITH_TESTS=0
  53. TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
  54. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  55. define Package/gerbera/install
  56. $(INSTALL_DIR) $(1)/usr/bin
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gerbera $(1)/usr/bin
  58. $(INSTALL_DIR) $(1)/usr/share
  59. $(CP) $(PKG_INSTALL_DIR)/usr/share/gerbera $(1)/usr/share
  60. $(INSTALL_DIR) $(1)/etc/config
  61. $(INSTALL_CONF) ./files/gerbera.config $(1)/etc/config/gerbera
  62. $(INSTALL_DIR) $(1)/etc/init.d
  63. $(INSTALL_BIN) ./files/gerbera.init $(1)/etc/init.d/gerbera
  64. endef
  65. $(eval $(call BuildPackage,gerbera))