1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 33a7f4dbf14704076b0fe1d0052e86bb618e386a1ff18107097311df44f979d7
10 PKG_DESCR
:= combined repository of pci.ids and usb.ids
12 PKG_URL
:= https
://github.com
/gentoo
/hwids
13 PKG_SITES
:= https
://github.com
/gentoo
/hwids
/archive
/
15 DISTFILES
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 # typical problem of having tags like '<name>-<version>' in github
17 WRKDIST
= $(WRKDIR
)/$(PKG_NAME
)-$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_SUBPKGS
:= HWIDS_NET HWIDS_PCI HWIDS_USB
20 PKGSD_HWIDS_NET
:= HWIDS files oui.txt and iab.txt
21 PKGSD_HWIDS_PCI
:= HWIDS file pci.ids
22 PKGSD_HWIDS_USB
:= HWIDS file usb.ids
24 PKG_FLAVOURS_HWIDS
:= WITH_GZIP
25 PKGFD_WITH_GZIP
:= gzip pci.ids and usb.ids before installation
27 include $(ADK_TOPDIR
)/mk
/package.mk
29 $(eval
$(call PKG_template
,HWIDS_NET
,hwids-net
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKGSD_HWIDS_NET
),$(PKG_SECTION
)))
30 $(eval
$(call PKG_template
,HWIDS_PCI
,hwids-pci
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKGSD_HWIDS_PCI
),$(PKG_SECTION
)))
31 $(eval
$(call PKG_template
,HWIDS_USB
,hwids-usb
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKGSD_HWIDS_USB
),$(PKG_SECTION
)))
34 XAKE_FLAGS
+= NET
=yes \
38 # note: Can't pass GZIP=yes to make, as this will turn it
39 # into an env var automatically which makes gzip trip.
40 # Therefore assume here that GZIP=yes is the default.
41 ifneq ($(ADK_PACKAGE_HWIDS_WITH_GZIP
),y
)
45 define HWIDS_INSTALL_template
47 $$(INSTALL_DIR
) $$(IDIR_
$(1))/usr
/share
/misc
48 $$(INSTALL_DATA
) $$(patsubst %,$$(WRKINST
)/usr
/share
/misc
/%,$(3)) \
49 $$(IDIR_
$(1))/usr
/share
/misc
/
52 $(eval
$(call HWIDS_INSTALL_template
,HWIDS_NET
,hwids-net
,oui.txt iab.txt
))
53 ifeq ($(ADK_PACKAGE_HWIDS_WITH_GZIP
),y
)
54 $(eval
$(call HWIDS_INSTALL_template
,HWIDS_PCI
,hwids-pci
,pci.ids.gz
))
55 $(eval
$(call HWIDS_INSTALL_template
,HWIDS_USB
,hwids-usb
,usb.ids.gz
))
57 $(eval
$(call HWIDS_INSTALL_template
,HWIDS_PCI
,hwids-pci
,pci.ids
))
58 $(eval
$(call HWIDS_INSTALL_template
,HWIDS_USB
,hwids-usb
,usb.ids
))
61 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk