Changeset 20315


Ignore:
Timestamp:
2010-03-20T13:12:54+01:00 (8 years ago)
Author:
florian
Message:

[package] package the thread-safe mysql library client, patch from Michael Geddes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/mysql/Makefile

    r19714 r20315  
    1010PKG_NAME:=mysql 
    1111PKG_VERSION:=5.0.18 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    2525include $(INCLUDE_DIR)/package.mk 
    2626 
    27 define Package/libmysqlclient 
     27define Package/libmysqlclient/Default 
    2828  SECTION:=libs 
    2929  CATEGORY:=Libraries 
     
    3131  TITLE:=MySQL client library 
    3232  URL:=http://dev.mysql.com/ 
     33endef 
     34 
     35define Package/libmysqlclient 
     36  $(call Package/libmysqlclient/Default) 
     37endef 
     38 
     39define Package/libmysqlclient_r 
     40  $(call Package/libmysqlclient/Default) 
     41  TITLE += threadsafe 
    3342endef 
    3443 
     
    4453                --enable-shared \ 
    4554                --enable-static \ 
     55                --enable-thread-safe-client \ 
    4656                --disable-assembler \ 
    4757                --with-pthread \ 
     
    8595                all install 
    8696        $(MAKE) -C "$(PKG_BUILD_DIR)" \ 
     97                SUBDIRS="libmysql_r" \ 
     98                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     99                all install 
     100        $(MAKE) -C "$(PKG_BUILD_DIR)" \ 
    87101                SUBDIRS="scripts" \ 
    88102                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     
    106120        $(CP) $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(1)/usr/lib/ 
    107121endef 
     122define Package/libmysqlclient_r/install 
     123        $(INSTALL_DIR) $(1)/usr/lib 
     124        $(CP) $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient_r.so.* $(1)/usr/lib/ 
     125endef 
    108126 
    109127$(eval $(call BuildPackage,libmysqlclient)) 
     128$(eval $(call BuildPackage,libmysqlclient_r)) 
Note: See TracChangeset for help on using the changeset viewer.