summaryrefslogtreecommitdiff
path: root/package/pciutils/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-17 09:20:08 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-17 09:26:09 +0200
commite96fb6171d9cf0078051eb9d5d7f08ce8fc1d1f7 (patch)
treebeaf6648e2062800215c1ad0a807b9f038248ed8 /package/pciutils/Makefile
parentea95d68cf3015f9688fea02b782c2fc5fac4b8e5 (diff)
pciutils: use shared library version, useful for other packages
Diffstat (limited to 'package/pciutils/Makefile')
-rw-r--r--package/pciutils/Makefile29
1 files changed, 15 insertions, 14 deletions
diff --git a/package/pciutils/Makefile b/package/pciutils/Makefile
index 26bf7648b..3720f55f8 100644
--- a/package/pciutils/Makefile
+++ b/package/pciutils/Makefile
@@ -1,11 +1,11 @@
# 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
+include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= pciutils
PKG_VERSION:= 3.5.1
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_HASH:= 2bf3a4605a562fb6b8b7673bff85a474a5cf383ed7e4bd8886b4f0939013d42f
PKG_DESCR:= pci utilities
PKG_SECTION:= sys/hw
@@ -15,23 +15,24 @@ PKG_URL:= http://www.kernel.org/pub/software/utils/pciutils/
PKG_SITES:= http://www.kernel.org/pub/software/utils/pciutils/
PKG_BB:= 1
-include ${ADK_TOPDIR}/mk/package.mk
+include $(ADK_TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,PCIUTILS,pciutils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,PCIUTILS,pciutils,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
CONFIG_STYLE:= manual
-INSTALL_STYLE:= manual
-MAKE_FLAGS+= CC="${TARGET_CC}" \
- CFLAGS="${TARGET_CFLAGS}" \
- CROSS_COMPILE="${TARGET_CROSS}" \
+MAKE_FLAGS+= CC="$(TARGET_CC)" \
+ CFLAGS="$(TARGET_CFLAGS) -fPIC" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
IDSDIR="/usr/share" \
- HOST=${GNU_TARGET_NAME}
+ HOST=$(GNU_TARGET_NAME)
ALL_TARGET:=
-do-install:
- ${INSTALL_DIR} ${IDIR_PCIUTILS}/usr/{share,bin}
- ${INSTALL_BIN} ${WRKBUILD}/{lspci,setpci} ${IDIR_PCIUTILS}/usr/bin
- ${INSTALL_DATA} ${WRKBUILD}/pci.ids ${IDIR_PCIUTILS}/usr/share
+pciutils-install:
+ $(INSTALL_DIR) $(IDIR_PCIUTILS)/usr/sbin
+ $(INSTALL_DIR) $(IDIR_PCIUTILS)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libpci*.so* $(IDIR_PCIUTILS)/usr/lib
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/lspci $(IDIR_PCIUTILS)/usr/sbin
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/setpci $(IDIR_PCIUTILS)/usr/sbin
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk