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)" \
75 rm -f
$(INSTALL_DIR
)/usr
/lib
/libpopt.la
78 configure
: .stamp-configured
84 install: $(INSTALL_DIR
)/usr
/include/popt.h
87 package
: $(INSTALL_DIR
)/usr
/include/popt.h
89 mkdir
-p
$(I_LIBPOPT
)/usr
/lib
90 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpopt
*.so.
* $(I_LIBPOPT
)/usr
/lib
/
91 $(STRIP
) $(I_LIBPOPT
)/usr
/lib
/lib
*.so.
*
93 mkdir
-p
$(I_LIBPOPT_DEV
)/usr
/include
94 cp
-fpR
$(INSTALL_DIR
)/usr
/include/popt.h
$(I_LIBPOPT_DEV
)/usr
/include/
95 mkdir
-p
$(I_LIBPOPT_DEV
)/usr
/lib
96 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpopt
*.a
$(I_LIBPOPT_DEV
)/usr
/lib
/
97 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpopt
*.so
* $(I_LIBPOPT_DEV
)/usr
/lib
/
99 chmod
0755 ipkg
/*/CONTROL
/
100 chmod
0644 ipkg
/*/CONTROL
/control
102 perl
-pi
-e
"s/^Arch.*:.*/Architecture: $(ARCH)/g" ipkg
/*/CONTROL
/control
103 ifneq ($(strip $(PKG_VERSION
)),)
104 perl
-pi
-e
"s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg
/*/CONTROL
/control
107 $(IPKG_BUILD
) $(I_LIBPOPT
) $(IPKG_TARGET_DIR
)
108 $(IPKG_BUILD
) $(I_LIBPOPT_DEV
) $(IPKG_TARGET_DIR
)
114 DESTDIR
="$(INSTALL_DIR)" \
119 $(I_LIBPOPT_DEV
)/usr \
124 @cat
$(I_LIBPOPT
)/CONTROL
/control
126 @cat
$(I_LIBPOPT_DEV
)/CONTROL
/control
130 .PHONY
: configure build
install package
clean control
This page took 0.04882 seconds and 5 git commands to generate.