3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=53976b62032fd5c76678274e5fd196b4
11 ftp
://ftp.csx.cam.ac.uk
/pub
/software
/programming
/pcre
/ \
12 http
://nthill.free.fr
/openwrt
/sources
/$(PKG_NAME
)/
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/templates.mk
21 $(eval
$(call PKG_template
,LIBPCRE
,libpcre
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 include $(TOPDIR
)/package
/rules.mk
25 COMPILE_TARGETS
+= install-dev
26 CLEAN_TARGETS
+= uninstall-dev
28 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
29 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
30 $(TARGET_CONFIGURE_OPTS
) \
31 CFLAGS
="$(TARGET_CFLAGS)" \
32 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
33 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
35 --target
=$(GNU_TARGET_NAME
) \
36 --host
=$(GNU_TARGET_NAME
) \
37 --build
=$(GNU_HOST_NAME
) \
43 --datadir=/usr
/share \
44 --includedir=/usr
/include \
45 --infodir=/usr
/share
/info \
47 --libexecdir
=/usr
/lib \
48 --localstatedir
=/var \
49 --mandir=/usr
/share
/man \
53 $(DISABLE_LARGEFILE
) \
58 touch
$(PKG_BUILD_DIR
)/.configured
60 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
61 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
62 CC_FOR_BUILD
="$(HOSTCC)" \
63 LINK_FOR_BUILD
="$(HOSTCC)" \
67 $(TARGET_CONFIGURE_OPTS
) \
68 CFLAGS
="$(TARGET_CFLAGS)"
69 touch
$(PKG_BUILD_DIR
)/.built
71 $(STAGING_DIR
)/usr
/lib
/libpcre.so
: $(PKG_BUILD_DIR
)/.built
72 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
73 DESTDIR
="$(STAGING_DIR)" \
75 rm -f
$(STAGING_DIR
)/usr
/lib
/libpcre
*.la
77 $(IPKG_LIBPCRE
): $(IDIR_LIBPCRE
)/CONTROL
/control
$(STAGING_DIR
)/usr
/lib
/libpcre.so
78 mkdir
-p
$(IDIR_LIBPCRE
)/usr
/lib
79 cp
-fpR
$(STAGING_DIR
)/usr
/lib
/libpcre
*.so.
* $(IDIR_LIBPCRE
)/usr
/lib
/
80 $(RSTRIP
) $(IDIR_LIBPCRE
)
81 mkdir
-p
$(PACKAGE_DIR
)
82 $(IPKG_BUILD
) $(IDIR_LIBPCRE
) $(PACKAGE_DIR
)
84 install-dev
: $(STAGING_DIR
)/usr
/lib
/libpcre.so
88 $(STAGING_DIR
)/usr
/bin
/pcre-config \
89 $(STAGING_DIR
)/usr
/include/pcre
* \
90 $(STAGING_DIR
)/usr
/lib
/libpcre
* \
91 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libpcre.
pc \
92 $(STAGING_DIR
)/usr
/share
/man
/man
*/pcre
* \