2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_REV
:=c4a7fdbcc109d6e8b465a427c714926fcb85c750
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=git
://git.sv.gnu.org
/attr.git
18 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_SOURCE_VERSION
:=$(PKG_REV
)
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_MAINTAINER
:=Maxim Storchak
<m.storchak@gmail.com
>
23 PKG_LICENSE
:=LGPL-2.1 GPL-2.0
24 PKG_LICENSE_FILES
:=doc
/COPYING doc
/COPYING.LGPL
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/attr
/Default
32 TITLE
:=Extended attributes
(xattr
) manipulation
33 URL
:=http
://savannah.nongnu.org
/projects
/attr
37 define Package
/attr
/Default
/description
38 Extended attributes support
42 $(call Package
/attr
/Default
)
49 define Package
/libattr
50 $(call Package
/attr
/Default
)
56 define Package
/libattr
/description
57 $(call Package
/attr
/Default
/description
)
58 This package provides libattr
61 define Package
/attr
/description
62 $(call Package
/attr
/Default
/description
)
63 This package provides xattr manipulation utilities
69 CONFIGURE_ARGS
+= --enable-static
--enable-shared
71 define Package
/attr
/install
72 $(INSTALL_DIR
) $(1)/usr
/bin
73 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
76 define Package
/libattr
/install
77 $(INSTALL_DIR
) $(1)/usr
/lib
78 $(INSTALL_DIR
) $(1)/etc
79 $(CP
) $(PKG_INSTALL_DIR
)/etc
$(1)/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
83 define Package
/attr
/conffiles
87 define Build
/InstallDev
88 mkdir
-p
$(1)/usr
/include
89 mkdir
-p
$(1)/usr
/lib
/pkgconfig
90 $(CP
) -r
$(PKG_INSTALL_DIR
)/usr
/{include,lib
} $(1)/usr
/
93 $(eval
$(call BuildPackage
,attr
))
94 $(eval
$(call BuildPackage
,libattr
))