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_LIBPOPT
:= ipkg
/libpopt
16 I_LIBPOPT_DEV
:= ipkg
/libpopt-dev
29 .stamp-configured
: $(BUILD_DEPS
)
32 $(TARGET_CONFIGURE_OPTS
) \
33 CFLAGS
="$(TARGET_CFLAGS)" \
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 \
53 $(DISABLE_LARGEFILE
) \
57 touch .stamp-configured
60 .stamp-built
: .stamp-configured
67 $(INSTALL_DIR
)/usr
/include/popt.h
: .stamp-built
69 mkdir
-p
$(INSTALL_DIR
)
72 DESTDIR
="$(INSTALL_DIR)" \
76 configure
: .stamp-configured
82 install: $(INSTALL_DIR
)/usr
/include/popt.h
85 package
: $(INSTALL_DIR
)/usr
/include/popt.h
87 mkdir
-p
$(I_LIBPOPT
)/usr
/lib
88 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpopt
*.so.
* $(I_LIBPOPT
)/usr
/lib
/
89 $(STRIP
) $(I_LIBPOPT
)/usr
/lib
/lib
*.so.
*
91 mkdir
-p
$(I_LIBPOPT_DEV
)/usr
/include
92 cp
-fpR
$(INSTALL_DIR
)/usr
/include/popt.h
$(I_LIBPOPT_DEV
)/usr
/include/
93 mkdir
-p
$(I_LIBPOPT_DEV
)/usr
/lib
94 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpopt
*.a
$(I_LIBPOPT_DEV
)/usr
/lib
/
95 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpopt
*.so
* $(I_LIBPOPT_DEV
)/usr
/lib
/
97 chmod
0755 ipkg
/*/CONTROL
/
98 chmod
0644 ipkg
/*/CONTROL
/control
100 perl
-pi
-e
"s/^Arch.*:.*/Architecture: $(ARCH)/g" ipkg
/*/CONTROL
/control
101 ifneq ($(strip $(PKG_VERSION
)),)
102 perl
-pi
-e
"s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg
/*/CONTROL
/control
105 $(IPKG_BUILD
) $(I_LIBPOPT
) $(IPKG_TARGET_DIR
)
106 $(IPKG_BUILD
) $(I_LIBPOPT_DEV
) $(IPKG_TARGET_DIR
)
112 DESTDIR
="$(INSTALL_DIR)" \
117 $(I_LIBPOPT_DEV
)/usr \
122 @cat
$(I_LIBPOPT
)/CONTROL
/control
124 @cat
$(I_LIBPOPT_DEV
)/CONTROL
/control
128 .PHONY
: configure build
install package
clean control
This page took 0.046582 seconds and 5 git commands to generate.