Ignore:
Timestamp:
2008-09-12T23:33:06+02:00 (8 years ago)
Author:
lars
Message:

Cleanup libnetfilter-queue Makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/libnetfilter-queue/Makefile

    • Property copyright set to Copyright (C) 2007-2008 OpenWrt.org
    • Property licence set to GPLv2
    • Property svn:eol-style set to native
    • Property svn:keywords set to Author Date Id Revision
    r12228 r12581  
    1 #  
    2 # Copyright (C) 2007 OpenWrt.org 
     1# 
     2# Copyright (C) 2007-2008 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
    55# See /LICENSE for more information. 
    66# 
    7 # $Id: $ 
     7# $Id$ 
    88 
    99include $(TOPDIR)/rules.mk 
     
    2727 
    2828define Package/libnetfilter-queue/description 
    29         libnetfilter_queue is a userspace library providing an API to packets  
    30         that have been queued by the kernel packet filter. It is is part of a system  
     29        libnetfilter_queue is a userspace library providing an API to packets 
     30        that have been queued by the kernel packet filter. It is is part of a system 
    3131        that deprecates the old ip_queue / libipq mechanism. 
    3232endef 
     
    3939        LIBNFNETLINK_CFLAGS="-I$(STAGING_DIR)/usr/include" \ 
    4040        LIBNFNETLINK_LIBS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" 
    41          
     41 
    4242MAKE_FLAGS += \ 
    4343        CFLAGS="$(TARGET_CFLAGS)" 
     
    5454 
    5555define Build/InstallDev 
    56         mkdir -p $(1)/usr/include/libnetfilter_queue 
    57         $(CP) $(PKG_INSTALL_DIR)/usr/include/libnetfilter_queue/*.h $(1)/usr/include/libnetfilter_queue/ 
    58         mkdir -p $(1)/usr/lib 
    59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue* $(1)/usr/lib/ 
    60 endef 
     56        $(INSTALL_DIR) $(1)/usr/include/libnetfilter_queue 
     57        $(INSTALL_DATA) \ 
     58                $(PKG_INSTALL_DIR)/usr/include/libnetfilter_queue/*.h \ 
     59                $(1)/usr/include/libnetfilter_queue/ 
    6160 
    62 define Build/UninstallDev 
    63         rm -rf  $(1)/usr/include/libnetfilter_queue \ 
    64                 $(1)/usr/lib/libnetfilter_queue.{a,so*} 
     61        $(INSTALL_DIR) $(1)/usr/lib 
     62        $(INSTALL_DATA) \ 
     63                $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue*.{so.*,la} \ 
     64                $(1)/usr/lib/ 
     65 
     66        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 
     67        $(INSTALL_DATA) \ 
     68                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ 
     69                $(1)/usr/lib/pkgconfig/ 
    6570endef 
    6671 
    6772define Package/libnetfilter-queue/install 
    6873        $(INSTALL_DIR) $(1)/usr/lib 
    69         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue* $(1)/usr/lib/ 
     74        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue*.{so.*,a} $(1)/usr/lib/ 
    7075endef 
    7176 
Note: See TracChangeset for help on using the changeset viewer.