2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@SF
/pcre
17 PKG_MD5SUM
:=53305db73855f1ff155dcd2c05d448d3
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libpcre
26 TITLE
:=A Perl Compatible Regular Expression library
27 URL
:=http
://www.pcre.org
/
37 $(TARGET_CONFIGURE_OPTS
) \
38 CFLAGS
="$(TARGET_CFLAGS)" \
41 define Build
/InstallDev
42 $(INSTALL_DIR
) $(1)/usr
/bin
$(2)/bin
$(1)/usr
/include $(1)/usr
/lib
43 $(CP
) $(PKG_BUILD_DIR
)/pcre-config
$(1)/usr
/bin
/
44 ln
-sf
$(STAGING_DIR
)/usr
/bin
/pcre-config
$(2)/bin
45 $(CP
) $(PKG_BUILD_DIR
)/pcre
{,posix
}.h
$(1)/usr
/include/
46 $(CP
) $(PKG_BUILD_DIR
)/.libs
/libpcre
{,posix
}.
{a
,so
*} $(1)/usr
/lib
/
49 define Package
/libpcre
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_BUILD_DIR
)/.libs
/libpcre
{,posix
}.so.
* $(1)/usr
/lib
/
54 $(eval
$(call BuildPackage
,libpcre
))