# -*-makefile-*- # # Copyright (C) 2010 by Bart vdr. Meulen # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_LSHW) += lshw # # Paths and names # LSHW_VERSION := B.02.14 LSHW_MD5 := 8bed55768c5cb2ceff062b882a687e9b LSHW := lshw-$(LSHW_VERSION) LSHW_SUFFIX := tar.gz LSHW_URL := http://www.ezix.org/software/files/$(LSHW).$(LSHW_SUFFIX) LSHW_SOURCE := $(SRCDIR)/$(LSHW).$(LSHW_SUFFIX) LSHW_DIR := $(BUILDDIR)/$(LSHW) LSHW_LICENSE := GPL-2.0-only # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- LSHW_CONF_TOOL := NO # calling "make all gui" in the toplevel dir breaks parallel building: # the two targets are run at the same time and src/core/ is built twice. # the result are random missing symbols or broken files. Calling make in # the "src" subdir avoids this. LSHW_SUBDIR := src LSHW_MAKE_ENV := $(CROSS_ENV) LSHW_MAKE_OPT := all LSHW_INSTALL_OPT := install ifdef PTXCONF_LSHW_GUI LSHW_MAKE_OPT += gui LSHW_INSTALL_OPT += install-gui endif # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/lshw.targetinstall: @$(call targetinfo) @$(call install_init, lshw) @$(call install_fixup, lshw,PRIORITY,optional) @$(call install_fixup, lshw,SECTION,base) @$(call install_fixup, lshw,AUTHOR,"Bart vdr. Meulen ") @$(call install_fixup, lshw,DESCRIPTION,missing) @$(call install_copy, lshw, 0, 0, 0755, -, /usr/sbin/lshw) @$(call install_copy, lshw, 0, 0, 0755, /usr/share/lshw) @$(call install_copy, lshw, 0, 0, 0644, -, /usr/share/lshw/pci.ids) @$(call install_copy, lshw, 0, 0, 0644, -, /usr/share/lshw/usb.ids) @$(call install_copy, lshw, 0, 0, 0644, -, /usr/share/lshw/oui.txt) @$(call install_copy, lshw, 0, 0, 0644, -, /usr/share/lshw/manuf.txt) ifdef PTXCONF_LSHW_GUI @$(call install_copy, lshw, 0, 0, 0755, -, /usr/sbin/gtk-lshw) @$(call install_copy, lshw, 0, 0, 0755, /usr/share/lshw/artwork) @cd $(LSHW_PKGDIR)/usr/share/lshw/artwork; \ for file in * ; do \ $(call install_copy, lshw, 0, 0, 0644, -, \ /usr/share/lshw/artwork/$$file); \ done endif @$(call install_finish, lshw) @$(call touch) # vim: syntax=make