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)" \
82 configure
: .stamp-configured
88 install: $(INSTALL_DIR
)/usr
/include/pcre.h
91 package
: $(INSTALL_DIR
)/usr
/include/pcre.h
93 mkdir
-p
$(I_LIBPCRE
)/usr
/lib
94 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpcre
*.so.
* $(I_LIBPCRE
)/usr
/lib
/
95 $(STRIP
) $(I_LIBPCRE
)/usr
/lib
/lib
*.so.
*
97 mkdir
-p
$(I_LIBPCRE_DEV
)/usr
/bin
98 cp
-fpR
$(INSTALL_DIR
)/usr
/bin
/pcre-config
$(I_LIBPCRE_DEV
)/usr
/bin
/
99 mkdir
-p
$(I_LIBPCRE_DEV
)/usr
/include
100 cp
-fpR
$(INSTALL_DIR
)/usr
/include/pcre
*.h
$(I_LIBPCRE_DEV
)/usr
/include/
101 mkdir
-p
$(I_LIBPCRE_DEV
)/usr
/lib
102 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpcre
*.a
$(I_LIBPCRE_DEV
)/usr
/lib
/
103 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libpcre
*.so
* $(I_LIBPCRE_DEV
)/usr
/lib
/
105 chmod
0755 ipkg
/*/CONTROL
/
106 chmod
0644 ipkg
/*/CONTROL
/control
108 perl
-pi
-e
"s/^Arch.*:.*/Architecture: $(ARCH)/g" ipkg
/*/CONTROL
/control
109 ifneq ($(strip $(PKG_VERSION
)),)
110 perl
-pi
-e
"s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg
/*/CONTROL
/control
113 $(IPKG_BUILD
) $(I_LIBPCRE
) $(IPKG_TARGET_DIR
)
114 $(IPKG_BUILD
) $(I_LIBPCRE_DEV
) $(IPKG_TARGET_DIR
)
122 $(INSTALL_DIR
)/usr
/bin
/pcre
* \
123 $(INSTALL_DIR
)/usr
/include/pcre
* \
124 $(INSTALL_DIR
)/usr
/lib
/libpcre
* \
125 $(INSTALL_DIR
)/usr
/lib
/pkgconfig
/libpcre.
pc \
126 $(INSTALL_DIR
)/usr
/share
/man
/man
*/pcre
* \
128 $(I_LIBPCRE_DEV
)/usr \
133 @cat
$(I_LIBPCRE
)/CONTROL
/control
135 @cat
$(I_LIBPCRE_DEV
)/CONTROL
/control
139 .PHONY
: configure build
install package
clean control
This page took 0.052277 seconds and 5 git commands to generate.