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.

57 lines
2.5 KiB

  1. # Copyright (C) 2018 OpenWrt
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=perl-file-rsyncp
  4. PKG_VERSION:=0.74
  5. PKG_RELEASE:=1
  6. PKG_SOURCE:=File-RsyncP-$(PKG_VERSION).tar.gz
  7. PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/C/CB/CBARRATT/
  8. PKG_HASH:=ba4df5f9b0db6c9d86a6c5cf9861cf00d17b18e77cfa028e7a9157c0015a5aa3
  9. PKG_BUILD_DIR:=$(BUILD_DIR)/perl/File-RsyncP-$(PKG_VERSION)
  10. PKG_MAINTAINER:=Carsten Wolff <carsten@wolffcarsten.de>
  11. PKG_LICENSE:=GPL-2.0-or-later
  12. PKG_LICENSE_FILES:=LICENSE README
  13. include $(INCLUDE_DIR)/package.mk
  14. include ../perl/perlmod.mk
  15. define Package/perl-file-rsyncp
  16. SUBMENU:=Perl
  17. SECTION:=lang
  18. CATEGORY:=Languages
  19. TITLE:=Perl Rsync client
  20. URL:=http://search.cpan.org/~cbarratt/File-RsyncP/
  21. DEPENDS:=perl +perlbase-autoloader +perlbase-socket +perlbase-getopt +perlbase-data +perlbase-config +perlbase-encode +perlbase-fcntl +perlbase-file
  22. endef
  23. define Build/Configure
  24. $(call perlmod/Configure,,)
  25. $(call perlmod/Configure,,,$(PKG_BUILD_DIR)/Digest)
  26. $(call perlmod/Configure,,,$(PKG_BUILD_DIR)/FileList)
  27. $(call Build/Configure/Default,,rsync_cv_HAVE_LONGLONG=yes,FileList)
  28. endef
  29. define Build/Compile
  30. PERL5LIB=$(PERL_LIB) $(MAKE) -C $(PKG_BUILD_DIR)/Digest
  31. PERL5LIB=$(PERL_LIB) $(MAKE) -C $(PKG_BUILD_DIR)/FileList
  32. PERL5LIB=$(PERL_LIB) $(MAKE) -C $(PKG_BUILD_DIR)
  33. endef
  34. define Package/perl-file-rsyncp/install
  35. $(INSTALL_DIR) $(strip $(1))$(PERL_SITELIB)/File/RsyncP
  36. $(INSTALL_DIR) $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/Digest
  37. $(INSTALL_DIR) $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/FileList
  38. $(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/File/RsyncP.pm $(strip $(1))$(PERL_SITELIB)/File
  39. $(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/File/RsyncP/FileIO.pm $(strip $(1))$(PERL_SITELIB)/File/RsyncP
  40. $(INSTALL_DATA) $(PKG_BUILD_DIR)/Digest/Digest.pm $(strip $(1))$(PERL_SITELIB)/File/RsyncP
  41. $(INSTALL_DATA) $(PKG_BUILD_DIR)/FileList/FileList.pm $(strip $(1))$(PERL_SITELIB)/File/RsyncP
  42. $(INSTALL_DATA) $(PKG_BUILD_DIR)/Digest/blib/lib/auto/File/RsyncP/Digest/autosplit.ix $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/Digest
  43. $(INSTALL_DATA) $(PKG_BUILD_DIR)/Digest/blib/arch/auto/File/RsyncP/Digest/Digest.so $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/Digest
  44. $(INSTALL_DATA) $(PKG_BUILD_DIR)/FileList/blib/lib/auto/File/RsyncP/FileList/autosplit.ix $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/FileList
  45. $(INSTALL_DATA) $(PKG_BUILD_DIR)/FileList/blib/arch/auto/File/RsyncP/FileList/FileList.so $(strip $(1))$(PERL_SITELIB)/auto/File/RsyncP/FileList
  46. endef
  47. $(eval $(call BuildPackage,perl-file-rsyncp))