Changeset 30138


Ignore:
Timestamp:
2012-02-04T21:49:50+01:00 (6 years ago)
Author:
jow
Message:

[packages_10.03.2] bzip2: merge r28228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/packages_10.03.2/utils/bzip2/Makefile

    r23106 r30138  
    1818include $(INCLUDE_DIR)/package.mk 
    1919 
     20define Package/libbz2 
     21  SECTION:=libs 
     22  CATEGORY:=Libraries 
     23  DEPENDS:= 
     24  TITLE:=bzip2 library. 
     25  URL:=http://www.bzip.org/ 
     26endef 
     27 
     28define Package/libbz2/description 
     29        bzip2 is a freely available, patent free, high-quality 
     30        data compressor. This packages provides libbz2 library. 
     31endef 
     32 
    2033define Package/bzip2 
    2134  SECTION:=utils 
    2235  CATEGORY:=Utilities 
    23   DEPENDS:= 
     36  DEPENDS:=+libbz2 
    2437  TITLE:=bzip2 is a compression utility. 
    2538  URL:=http://www.bzip.org/ 
     
    2841define Package/bzip2/description 
    2942        bzip2 is a freely available, patent free, high-quality 
    30         data compressor. 
     43        data compressor. This package provides the binary. 
    3144endef 
    3245 
     
    3548 
    3649MAKE_FLAGS += \ 
     50        -f Makefile-libbz2_so \ 
    3751        CFLAGS="$(TARGET_CFLAGS)" \ 
    3852        LDFLAGS="$(TARGET_LDLAGS)" \ 
    39         bzip2 \ 
     53        all 
    4054 
    4155define Build/InstallDev 
     
    4357        $(CP) $(PKG_BUILD_DIR)/bzlib.h $(1)/usr/include/ 
    4458        $(INSTALL_DIR) $(1)/usr/lib 
    45         $(CP) $(PKG_BUILD_DIR)/libbz2.a $(1)/usr/lib/ 
     59        $(CP) $(PKG_BUILD_DIR)/libbz2.so.$(PKG_VERSION) $(1)/usr/lib/ 
     60        $(LN) libbz2.so.$(PKG_VERSION) $(1)/usr/lib/libbz2.so.1.0 
     61        $(LN) libbz2.so.$(PKG_VERSION) $(1)/usr/lib/libbz2.so 
     62endef 
     63 
     64define Package/libbz2/install 
     65        $(INSTALL_DIR) $(1)/usr/lib/ 
     66        $(CP) $(PKG_BUILD_DIR)/libbz2.so.$(PKG_VERSION) $(1)/usr/lib/ 
     67        $(LN) libbz2.so.$(PKG_VERSION) $(1)/usr/lib/libbz2.so.1.0 
    4668endef 
    4769 
    4870define Package/bzip2/install 
    4971        $(INSTALL_DIR) $(1)/usr/bin/ 
    50         $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/ 
     72        $(INSTALL_BIN) $(PKG_BUILD_DIR)/bzip2-shared $(1)/usr/bin/bzip2 
    5173endef 
    5274 
     75$(eval $(call BuildPackage,libbz2)) 
    5376$(eval $(call BuildPackage,bzip2)) 
Note: See TracChangeset for help on using the changeset viewer.