Changeset 26791


Ignore:
Timestamp:
2011-04-29T17:39:59+02:00 (7 years ago)
Author:
jow
Message:

[packages] pcre: Add C++ wrapper for pcre package (#9331)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/pcre/Makefile

    r24769 r26791  
    1616PKG_MD5SUM:=ef907b8792ec7f90f0dcd773848f0b3b 
    1717 
    18 PKG_FIXUP:=libtool 
     18PKG_FIXUP:=autoreconf 
    1919 
    2020PKG_INSTALL:=1 
     
    2222include $(INCLUDE_DIR)/package.mk 
    2323 
    24 define Package/libpcre 
     24define Package/libpcre/default 
    2525  SECTION:=libs 
    2626  CATEGORY:=Libraries 
    27   TITLE:=A Perl Compatible Regular Expression library 
    2827  URL:=http://www.pcre.org/ 
    2928endef 
     29 
     30define Package/libpcre 
     31  $(call Package/libpcre/default) 
     32  TITLE:=A Perl Compatible Regular Expression library 
     33endef 
     34 
     35define Package/libpcrecpp 
     36  $(call Package/libpcre/default) 
     37  TITLE:=C++ wrapper for Perl Compatible Regular Expression library 
     38  DEPENDS:=+libpcre 
     39endef 
     40 
    3041 
    3142TARGET_CFLAGS += $(FPIC) 
     
    3344CONFIGURE_ARGS += \ 
    3445        --enable-utf8 \ 
    35         --disable-cpp 
     46 
     47ifneq ($(CONFIG_PACKAGE_libpcrecpp),) 
     48  CONFIGURE_ARGS+= --enable-cpp 
     49else 
     50  CONFIGURE_ARGS+= --disable-cpp 
     51endif 
    3652 
    3753MAKE_FLAGS += \ 
     
    4662 
    4763        $(INSTALL_DIR) $(1)/usr/include 
    48         $(CP) $(PKG_INSTALL_DIR)/usr/include/pcre{,posix}.h $(1)/usr/include/ 
     64        $(CP) $(PKG_INSTALL_DIR)/usr/include/pcre*.h $(1)/usr/include/ 
    4965 
    5066        $(INSTALL_DIR) $(1)/usr/lib 
    51         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre{,posix}.{a,so*} $(1)/usr/lib/ 
     67        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre*.{a,so*} $(1)/usr/lib// 
    5268 
    5369        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 
    54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpcre.pc $(1)/usr/lib/pkgconfig/ 
     70        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpcre*.pc $(1)/usr/lib/pkgconfig/ 
    5571 
    5672endef 
     
    6177endef 
    6278 
     79define Package/libpcrecpp/install 
     80        $(INSTALL_DIR) $(1)/usr/lib 
     81        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcrecpp.so.* $(1)/usr/lib/ 
     82endef 
     83 
    6384$(eval $(call BuildPackage,libpcre)) 
     85$(eval $(call BuildPackage,libpcrecpp)) 
Note: See TracChangeset for help on using the changeset viewer.