dahdi-tools: add PKG_BUILD_PARALLEL & PKG_INSTALL
Cleans up the install sections while replacing PKG_BUILD_DIR with PKG_INSTALL_DIR, too. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
aad0887281
commit
032e2bd36e
1 changed files with 13 additions and 11 deletions
|
@ -19,8 +19,12 @@ PKG_LICENSE:=GPL-2.0
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_MAINTAINER:=Vittorio Gambaletta <openwrt@vittgam.net>
|
PKG_MAINTAINER:=Vittorio Gambaletta <openwrt@vittgam.net>
|
||||||
|
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
|
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/dahdi-cfg/Default
|
define Package/dahdi-cfg/Default
|
||||||
|
@ -52,30 +56,28 @@ CONFIGURE_ARGS+=--disable-silent-rules
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_BUILD_DIR)/.libs/*.so* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.{a,so*} \
|
||||||
$(CP) $(PKG_BUILD_DIR)/.libs/*.a $(1)/usr/lib/
|
$(1)/usr/lib/
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/include/dahdi
|
$(INSTALL_DIR) $(1)/usr/include/dahdi
|
||||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/tonezone.h $(1)/usr/include/dahdi/
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/dahdi/tonezone.h \
|
||||||
|
$(1)/usr/include/dahdi/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dahdi-cfg/install
|
define Package/dahdi-cfg/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/dahdi_cfg $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{dahdi_cfg,dahdi_scan,fxotune} \
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_scan $(1)/usr/sbin/
|
$(1)/usr/sbin/
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fxotune $(1)/usr/sbin/
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dahdi-monitor/install
|
define Package/dahdi-monitor/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_monitor $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{dahdi_monitor,dahdi_speed,dahdi_test} \
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_speed $(1)/usr/sbin/
|
$(1)/usr/sbin/
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_test $(1)/usr/sbin/
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dahdi-tools-libtonezone/install
|
define Package/dahdi-tools-libtonezone/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_BUILD_DIR)/.libs/libtonezone.so* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.so* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,dahdi-cfg))
|
$(eval $(call BuildPackage,dahdi-cfg))
|
||||||
|
|
Loading…
Reference in a new issue