Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=secilc
  7. PKG_VERSION:=3.5
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
  11. PKG_HASH:=3eebc5a1f97847fa530cf90654b9f3b8f21a13c9ea3d07495325651580cd3373
  12. HOST_BUILD_DEPENDS:=libsepol/host
  13. PKG_MAINTAINER:=Dominick Grift <[email protected]>
  14. PKG_LICENSE:=BSD-2-Clause
  15. PKG_LICENSE_FILES:=COPYING
  16. include $(INCLUDE_DIR)/host-build.mk
  17. include $(INCLUDE_DIR)/nls.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. HOST_LDFLAGS+=-Wl,-rpath=$(STAGING_DIR_HOSTPKG)/lib
  20. HOST_MAKE_FLAGS += \
  21. DESTDIR=$(STAGING_DIR_HOSTPKG) \
  22. PREFIX=
  23. define Package/secilc
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. TITLE:=SELinux Common Intermediate Language (CIL) Compiler
  27. URL:=http://selinuxproject.org/page/Main_Page
  28. DEPENDS:=+libsepol
  29. endef
  30. define Package/secilc/description
  31. The SELinux CIL Compiler is a compiler that converts the CIL language as
  32. described on the CIL design wiki into a kernel binary policy file.
  33. Please see the CIL Design Wiki at:
  34. http://github.com/SELinuxProject/cil/wiki/
  35. for more information about the goals and features on the CIL language.
  36. endef
  37. define Build/Compile
  38. $(call Build/Compile/Default,secilc)
  39. endef
  40. define Host/Compile
  41. $(call Host/Compile/Default,secilc)
  42. endef
  43. define Host/Install
  44. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
  45. $(INSTALL_BIN) $(HOST_BUILD_DIR)/secilc $(STAGING_DIR_HOSTPKG)/bin
  46. endef
  47. define Package/secilc/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_BUILD_DIR)/secilc $(1)/usr/bin
  50. endef
  51. $(eval $(call BuildPackage,secilc))
  52. $(eval $(call HostBuild))