2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=https
://github.com
/SELinuxProject
/selinux
/releases
/download
/20200710
14 PKG_HASH
:=ae6778d01443fdd38cd30eeee846494e19f4d407b09872580372f4aa4bf8a3cc
16 PKG_MAINTAINER
:=Thomas Petazzoni
<thomas.petazzoni@bootlin.com
>
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/libsepol
23 TITLE
:=SELinux binary policy manipulation library
24 URL
:=http
://selinuxproject.org
/page
/Main_Page
27 define Package
/libsepol
/description
28 Libsepol is the binary policy manipulation library. It doesn
't
29 depend upon or use any of the other SELinux components.
32 include $(INCLUDE_DIR
)/host-build.mk
35 PREFIX
=$(STAGING_DIR_HOSTPKG
) \
36 SHLIBDIR
=$(STAGING_DIR_HOSTPKG
)/lib
43 $(call Build
/Compile
/Default
,all)
47 $(call Build
/Install
/Default
,install)
50 define Build
/InstallDev
51 $(INSTALL_DIR
) $(1)/usr
/include
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
55 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
56 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libsepol.
pc $(1)/usr
/lib
/pkgconfig
/
57 $(SED
) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr
/lib
/pkgconfig
/libsepol.
pc
58 $(SED
) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr
/lib
/pkgconfig
/libsepol.
pc
61 define Package
/libsepol
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsepol.so.
* $(1)/usr
/lib
/
66 $(eval
$(call HostBuild
))
67 $(eval
$(call BuildPackage
,libsepol
))