automake-1.9: add old, but unleashed-patched, libtool.m4
[unleashed-userland.git] / components / pci.ids / Makefile
blob054e5fc72850bb78ac6e56ffdd496d1f9f9348fd
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2013 Adam Stevko. All rights reserved.
15 include ../../make-rules/shared-macros.mk
17 COMPONENT_NAME= pci.ids
18 FORMAT= 2.2
19 SNAPDATE= $(shell gawk '$$2 == "Version:" { ver = $$3; gsub(/\./, "", ver); print ver }' $(SOURCE_DIR)/$(COMPONENT_NAME))
20 COMPONENT_SRC= $(COMPONENT_NAME)-src
21 COMPONENT_VERSION= $(FORMAT).$(SNAPDATE)
22 COMPONENT_FMRI= system/pciutils/pci.ids
23 COMPONENT_SUMMARY= Repository of all known IDs used in PCI devices
24 COMPONENT_LICENSE= GPLv2
25 COMPONENT_LICENSE_FILE= pci.ids.license
26 COMPONENT_ARCHIVE_URL= https://pci-ids.ucw.cz/v$(FORMAT)/$(COMPONENT_NAME)
27 COMPONENT_PROJECT_URL= https://pci-ids.ucw.cz/
29 include $(WS_TOP)/make-rules/ips.mk
31 CURL=/usr/bin/curl
32 GZIP=/usr/bin/gzip
34 download:
36 prep:
37 $(MKDIR) $(SOURCE_DIR)
38 cd $(SOURCE_DIR); \
39 $(CURL) -sO $(COMPONENT_ARCHIVE_URL)
41 $(MKDIR) $(BUILD_DIR_32)
42 $(TOUCH) $(BUILD_DIR_32)/.prep
44 install: prep
45 $(MKDIR) $(PROTOUSRSHAREDIR)
46 $(GZIP) -c $(SOURCE_DIR)/$(COMPONENT_NAME) > $(PROTOUSRSHAREDIR)/$(COMPONENT_NAME).gz
47 $(TOUCH) $(BUILD_DIR_32)/.installed
49 clean:
50 $(RM) -r $(BUILD_DIR)
51 $(RM) -r $(SOURCE_DIR)