3 ifneq ($(strip ${IPKG_RULES_INC}),)
4 include $(IPKG_RULES_INC
)
9 PKG_VERSION
:= $(shell cat .
/ipkg
/version
)
10 CURRENT_DIR
:= $(shell pwd
)
11 INSTALL_DIR ?
= $(CURRENT_DIR
)/ipkg-install
15 I_LIBNET
:= ipkg
/libnet
16 I_LIBNET_DEV
:= ipkg
/libnet-dev
19 $(STAGING_DIR
)/usr
/include/pcap.h \
24 --with-pf_packet
=yes \
31 .stamp-configured
: $(BUILD_DEPS
)
40 $(TARGET_CONFIGURE_OPTS
) \
41 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
42 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
43 ac_libnet_have_pf_packet
=yes \
44 ac_cv_lbl_unaligned_fail
=no \
45 ac_cv_libnet_endianess
=lil \
47 --target
=$(GNU_TARGET_NAME
) \
48 --host
=$(GNU_TARGET_NAME
) \
49 --build
=$(GNU_HOST_NAME
) \
55 --datadir=/usr
/share \
56 --includedir=/usr
/include \
57 --infodir=/usr
/share
/info \
59 --libexecdir
=/usr
/lib \
60 --localstatedir
=/var \
61 --mandir=/usr
/share
/man \
64 $(DISABLE_LARGEFILE
) \
71 touch .stamp-configured
74 .stamp-built
: .stamp-configured
77 $(TARGET_CONFIGURE_OPTS
) \
78 CFLAGS
="$(TARGET_CFLAGS)" \
83 $(INSTALL_DIR
)/usr
/include/libnet.h
: .stamp-built
85 mkdir
-p
$(INSTALL_DIR
)
88 DESTDIR
="$(INSTALL_DIR)" \
92 configure
: .stamp-configured
98 install: $(INSTALL_DIR
)/usr
/include/libnet.h
101 package
: $(INSTALL_DIR
)/usr
/include/libnet.h
103 mkdir
-p
$(I_LIBNET
)/usr
/lib
104 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libnet.so.
* $(I_LIBNET
)/usr
/lib
/
105 $(STRIP
) $(I_LIBNET
)/usr
/lib
/libnet.so.
*
107 mkdir
-p
$(I_LIBNET_DEV
)/usr
/bin
108 cp
-fpR
$(INSTALL_DIR
)/usr
/bin
/libnet-config
$(I_LIBNET_DEV
)/usr
/bin
/
109 mkdir
-p
$(I_LIBNET_DEV
)/usr
/include
110 cp
-fpR
$(INSTALL_DIR
)/usr
/include/libnet.h
$(I_LIBNET_DEV
)/usr
/include/
111 cp
-fpR
$(INSTALL_DIR
)/usr
/include/libnet
$(I_LIBNET_DEV
)/usr
/include/
112 mkdir
-p
$(I_LIBNET_DEV
)/usr
/lib
113 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libnet.a
$(I_LIBNET_DEV
)/usr
/lib
/
114 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libnet.so
* $(I_LIBNET_DEV
)/usr
/lib
/
116 chmod
0755 ipkg
/*/CONTROL
/
117 chmod
0644 ipkg
/*/CONTROL
/control
119 perl
-pi
-e
"s/^Arch.*:.*/Architecture: $(ARCH)/g" ipkg
/*/CONTROL
/control
120 ifneq ($(strip $(PKG_VERSION
)),)
121 perl
-pi
-e
"s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg
/*/CONTROL
/control
124 $(IPKG_BUILD
) $(I_LIBNET
) $(IPKG_TARGET_DIR
)
125 $(IPKG_BUILD
) $(I_LIBNET_DEV
) $(IPKG_TARGET_DIR
)
131 DESTDIR
="$(INSTALL_DIR)" \
136 $(I_LIBNET_DEV
)/usr \
141 @cat
$(I_LIBNET
)/CONTROL
/control
143 @cat
$(I_LIBNET_DEV
)/CONTROL
/control
147 .PHONY
: configure build
install package
clean control
This page took 0.051048 seconds and 5 git commands to generate.