$(eval $(call PKG_template,LIBPCAP,libpcap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(eval $(call PKG_template,LIBPCAP,libpcap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
-$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
- $(MAKE) -C $(PKG_BUILD_DIR) \
- CCOPT="$(TARGET_CFLAGS)"
+$(PKG_BUILD_DIR)/.built:
+ rm -rf $(PKG_INSTALL_DIR)
$(RSTRIP) $(IDIR_LIBPCAP)
$(IPKG_BUILD) $(IDIR_LIBPCAP) $(PACKAGE_DIR)
$(STAGING_DIR)/usr/lib/libpcap.so: $(PKG_BUILD_DIR)/.built
mkdir -p $(STAGING_DIR)/usr/include
$(RSTRIP) $(IDIR_LIBPCAP)
$(IPKG_BUILD) $(IDIR_LIBPCAP) $(PACKAGE_DIR)
$(STAGING_DIR)/usr/lib/libpcap.so: $(PKG_BUILD_DIR)/.built
mkdir -p $(STAGING_DIR)/usr/include
rm -rf $(STAGING_DIR)/usr/include/pcap*
rm -rf $(STAGING_DIR)/usr/lib/libpcap.{a,so*}
rm -rf $(STAGING_DIR)/usr/include/pcap*
rm -rf $(STAGING_DIR)/usr/lib/libpcap.{a,so*}