zaptel-1.4.x: Build more of the utils for testing and configureing Zaptel cards.
authorcshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 18 Mar 2011 23:37:48 +0000 (23:37 +0000)
committerJiri Slachta <slachta@cesnet.cz>
Sat, 8 Mar 2014 11:08:05 +0000 (12:08 +0100)
libs/zaptel-1.4.x/Makefile

index d030c9c226ca6520f750f13820e8f84a2210e814..631d4d7c0669113dc2c6082f522b4a3fc352d50c 100644 (file)
@@ -82,7 +82,7 @@ define Package/zaptel14-util
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE+= utils
-  DEPENDS += +kmod-zaptel14
+  DEPENDS += +kmod-zaptel14 +zaptel14-libtonezone +libnewt
 endef
 
 define Package/zaptel14-util/description
@@ -101,6 +101,14 @@ define Package/zaptel14-libtonezone/description
  This package contains the libraries for accessing zaptel/dummy drivers.
 endef
 
+CONFIGURE_VARS += \
+       LDFLAGS="$$$$LDFLAGS -Wl,-rpath-link $(STAGING_DIR)/usr/lib"
+
+CONFIGURE_ARGS += \
+       --with-newt="$(STAGING_DIR)/usr" \
+       --without-curses \
+       --without-ncurses 
+
 MAKE_FLAGS:= \
        ARCH="$(LINUX_KARCH)" \
        CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
@@ -121,7 +129,7 @@ define Build/Compile/user
        $(MAKE) -C $(PKG_BUILD_DIR) \
                ARCH="$(LINUX_KARCH)" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
-               install-libs install-include zttest
+               install-libs install-include zttest ztcfg zttool ztdiag fxotune ztmonitor ztscan ztspeed fxstest
 endef
 
 define Build/Compile
@@ -139,6 +147,14 @@ endef
 define Package/zaptel14-util/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/zttest $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztcfg $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/zttool $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztdiag $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/fxotune $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/fxstest $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztmonitor $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztscan $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztspeed $(1)/usr/bin/
 endef
 
 define Package/zaptel14-libtonezone/install