net/pcapsipdump: Simplify Makefile 276/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 18 Feb 2018 09:16:32 +0000 (10:16 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 18 Feb 2018 09:16:34 +0000 (10:16 +0100)
Use the default Build/Compile. Use MAKE_VARS to set up the variables
that are used by pcapsipdump's Makefile.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/pcapsipdump/Makefile

index 68ee687e51b6b83841849acebf6a856029b179d6..1494689fda07491ef895836043b5394bc13f16b8 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2009-2010 OpenWrt.org
+# Copyright (C) 2009-2018 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pcapsipdump
 PKG_VERSION:=0.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/pcapsipdump
@@ -35,15 +35,9 @@ define Package/pcapsipdump/description
  (even if there is thousands of concurrect SIP sessions).
 endef
 
-TARGET_CC=$(TARGET_CXX)
-
-define Build/Compile
-       $(TARGET_CONFIGURE_OPTS) \
-               $(MAKE) -C $(PKG_BUILD_DIR) \
-               CPPFLAGS="$(TARGET_CXXFLAGS) $(TARGET_CPPFLAGS) -fno-rtti"  \
-               LDFLAGS="$(TARGET_LDFLAGS)" \
-               LIBS="-lpcap"
-endef
+MAKE_VARS += \
+       CC="$(TARGET_CXX)" \
+       CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti $(TARGET_CPPFLAGS)"
 
 define Package/pcapsipdump/install
        $(INSTALL_DIR) $(1)/usr/bin