summaryrefslogtreecommitdiff
path: root/package/eudev/Makefile
blob: 1f2f25062c8a1edb5097724eefde8632802d9ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		eudev
PKG_VERSION:=		3.1.5
PKG_RELEASE:=		2
PKG_HASH:=		f75885a430cd50fe4b31732f808ba7f9b2adf0f26b53b8ba2957b0c1d84b6f2a
PKG_DESCR:=		device manager (udev clone)
PKG_SECTION:=		sys/utils
PKG_BUILDDEP:=		gperf-host kmod-host glib
PKG_DEPENDS:=		glib kmod
PKG_URL:=		http://wiki.gentoo.org/wiki/Project:Eudev
PKG_SITES:=		http://dev.gentoo.org/~blueness/eudev/
PKG_LIBNAME:=		libudev
PKG_OPTS:=		dev

DISTFILES:=		$(PKG_NAME)-$(PKG_VERSION).tar.gz

PKG_SUBPKGS:=		UDEV LIBUDEV
PKGSD_UDEV:=		dynamic device management manager
PKGSC_LIBUDEV:=		libs/misc
PKGSD_LIBUDEV:=		dynamic device management library

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,UDEV,udev,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
$(eval $(call PKG_template,LIBUDEV,libudev,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))

MAKE_FLAGS+=		V=1
CONFIGURE_ARGS+=	--disable-manpages \
			--disable-blkid \
			--enable-hwdb

udev-install:
	$(INSTALL_DIR) $(IDIR_UDEV)/usr/bin
	$(INSTALL_DIR) $(IDIR_UDEV)/etc/udev
	$(INSTALL_DIR) $(IDIR_UDEV)/usr/lib/udev
	$(INSTALL_DIR) $(IDIR_UDEV)/usr/sbin
	$(CP) $(WRKINST)/etc/udev/* $(IDIR_UDEV)/etc/udev
	$(CP) $(WRKINST)/usr/lib/udev/* $(IDIR_UDEV)/usr/lib/udev
	$(CP) $(WRKINST)/usr/bin/udevadm $(IDIR_UDEV)/usr/bin
	$(CP) $(WRKINST)/usr/sbin/udevd $(IDIR_UDEV)/usr/sbin

libudev-install:
	$(INSTALL_DIR) $(IDIR_LIBUDEV)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libudev.so* $(IDIR_LIBUDEV)/usr/lib

include $(ADK_TOPDIR)/mk/pkg-bottom.mk