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_LIBPCRE
:= ipkg
/libpcre
16 I_LIBPCRE_DEV
:= ipkg
/libpcre-dev
30 .stamp-configured
: $(BUILD_DEPS
)
33 $(TARGET_CONFIGURE_OPTS
) \
34 CFLAGS
="$(TARGET_CFLAGS)" \
36 --target
=$(GNU_TARGET_NAME
) \
37 --host
=$(GNU_TARGET_NAME
) \
38 --build
=$(GNU_HOST_NAME
) \
42 --datadir=/usr
/share \
43 --includedir=/usr
/include \
44 --infodir=/usr
/share
/info \
46 --libexecdir
=/usr
/lib \
47 --localstatedir
=/var \
48 --mandir=/usr
/share
/man \
51 $(DISABLE_LARGEFILE
) \
55 touch .stamp-configured
58 .stamp-built
: .stamp-configured
61 CC_FOR_BUILD
="$(HOSTCC)" \
62 LINK_FOR_BUILD
="$(HOSTCC)" \
67 $(TARGET_CONFIGURE_OPTS
) \
68 CFLAGS
="$(TARGET_CFLAGS)" \
73 $(INSTALL_DIR
)/usr
/include/pcre.h
: .stamp-built
75 mkdir
-p
$(INSTALL_DIR
)
78 DESTDIR
="$(INSTALL_DIR)" \
81 rm -f
$(INSTALL_DIR
)/usr
/lib
/libpcre
*.la
84 configure
: .stamp-configured
90 install: $(INSTALL_DIR
)/usr
/include/pcre.h
93 package
: $(INSTALL_DIR
)/usr
/include/pcre.h
95 mkdir
-p
$(I_LIBPCRE
)/usr
/lib
96 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpcre
*.so.
* $(I_LIBPCRE
)/usr
/lib
/
97 $(STRIP
) $(I_LIBPCRE
)/usr
/lib
/lib
*.so.
*
99 mkdir
-p
$(I_LIBPCRE_DEV
)/usr
/bin
100 cp
-fpR
$(INSTALL_DIR
)/usr
/bin
/pcre-config
$(I_LIBPCRE_DEV
)/usr
/bin
/
101 mkdir
-p
$(I_LIBPCRE_DEV
)/usr
/include
102 cp
-fpR
$(INSTALL_DIR
)/usr
/include/pcre
*.h
$(I_LIBPCRE_DEV
)/usr
/include/
103 mkdir
-p
$(I_LIBPCRE_DEV
)/usr
/lib
104 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpcre
*.a
$(I_LIBPCRE_DEV
)/usr
/lib
/
105 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpcre
*.so
* $(I_LIBPCRE_DEV
)/usr
/lib
/
107 chmod
0755 ipkg
/*/CONTROL
/
108 chmod
0644 ipkg
/*/CONTROL
/control
110 perl
-pi
-e
"s/^Arch.*:.*/Architecture: $(ARCH)/g" ipkg
/*/CONTROL
/control
111 ifneq ($(strip $(PKG_VERSION
)),)
112 perl
-pi
-e
"s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg
/*/CONTROL
/control
115 $(IPKG_BUILD
) $(I_LIBPCRE
) $(IPKG_TARGET_DIR
)
116 $(IPKG_BUILD
) $(I_LIBPCRE_DEV
) $(IPKG_TARGET_DIR
)
124 $(INSTALL_DIR
)/usr
/bin
/pcre
* \
125 $(INSTALL_DIR
)/usr
/include/pcre
* \
126 $(INSTALL_DIR
)/usr
/lib
/libpcre
* \
127 $(INSTALL_DIR
)/usr
/lib
/pkgconfig
/libpcre.
pc \
128 $(INSTALL_DIR
)/usr
/share
/man
/man
*/pcre
* \
130 $(I_LIBPCRE_DEV
)/usr \
135 @cat
$(I_LIBPCRE
)/CONTROL
/control
137 @cat
$(I_LIBPCRE_DEV
)/CONTROL
/control
141 .PHONY
: configure build
install package
clean control
This page took 0.048768 seconds and 5 git commands to generate.