3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=ddf53f0f484184390e8c2a1bd0853667
10 PKG_SOURCE_URL
:=http
://www.packetfactory.net
/libnet
/dist/deprecated
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/Libnet-
$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBNET
,libnet
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
28 $(TARGET_CONFIGURE_OPTS
) \
29 CFLAGS
="$(TARGET_CFLAGS)" \
30 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
31 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
32 ac_libnet_have_pf_packet
=yes \
33 ac_cv_lbl_unaligned_fail
=no \
34 ac_cv_libnet_endianess
=lil \
36 --target
=$(GNU_TARGET_NAME
) \
37 --host
=$(GNU_TARGET_NAME
) \
38 --build
=$(GNU_HOST_NAME
) \
44 --datadir=/usr
/share \
45 --includedir=/usr
/include \
46 --infodir=/usr
/share
/info \
48 --libexecdir
=/usr
/lib \
49 --localstatedir
=/var \
50 --mandir=/usr
/share
/man \
54 $(DISABLE_LARGEFILE
) \
57 --with-pf_packet
=yes \
61 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
62 rm -rf
$(PKG_INSTALL_DIR
)
63 mkdir
-p
$(PKG_INSTALL_DIR
)
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 $(TARGET_CONFIGURE_OPTS
) \
66 CFLAGS
="$(TARGET_CFLAGS)" \
67 DESTDIR
="$(PKG_INSTALL_DIR)" \
71 $(IPKG_LIBNET
): $(STAGING_DIR
)/usr
/lib
/libnet.so
72 install -m0755
-d
$(IDIR_LIBNET
)/usr
/lib
73 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libnet.so.
* $(IDIR_LIBNET
)/usr
/lib
/
74 $(RSTRIP
) $(IDIR_LIBNET
)
75 $(IPKG_BUILD
) $(IDIR_LIBNET
) $(PACKAGE_DIR
)
77 $(STAGING_DIR
)/usr
/lib
/libnet.so
: $(PKG_BUILD_DIR
)/.built
78 mkdir
-p
$(STAGING_DIR
)/usr
/bin
79 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/libnet-config
$(STAGING_DIR
)/usr
/bin
/
80 mkdir
-p
$(STAGING_DIR
)/usr
/include
81 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/libnet
* $(STAGING_DIR
)/usr
/include/
82 mkdir
-p
$(STAGING_DIR
)/usr
/lib
83 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libnet.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
84 touch
$(STAGING_DIR
)/usr
/lib
/libnet.so
86 install-dev
: $(STAGING_DIR
)/usr
/lib
/libnet.so
89 rm -rf
$(STAGING_DIR
)/usr
/bin
/libnet-config
90 rm -rf
$(STAGING_DIR
)/usr
/include/libnet
*
91 rm -rf
$(STAGING_DIR
)/usr
/lib
/libnet.
{a
,so
*}