Changeset 48151


Ignore:
Timestamp:
2016-01-07T22:08:13+01:00 (2 years ago)
Author:
nbd
Message:

package/libs/zlib: new package zlib-dev

The patch adds a new package zlib-dev. It contains all files needed for
compiling a program using the zlib library:

/usr/include/zconf.h
/usr/include/zlib.h
/usr/lib/libz.a
/usr/lib/pkgconfig/zlib.pc

Signed-off-by: Heinrich Schuchardt <xypron.glpk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/libs/zlib/Makefile

    r47197 r48151  
    2626  TITLE:=Library implementing the deflate compression method 
    2727  URL:=http://www.zlib.net/ 
     28endef 
     29 
     30define Package/zlib-dev 
     31  SECTION:=devel 
     32  CATEGORY:=Development 
     33  SUBMENU:=Libraries 
     34  DEPENDS:=zlib 
     35  TITLE:=Development files for the zlib library 
     36endef 
     37 
     38define Package/zlib/description 
     39 zlib is a lossless data-compression library. 
     40 This package includes the shared library. 
     41endef 
     42 
     43define Package/zlib-dev/description 
     44 zlib is a lossless data-compression library. 
     45 This package includes the development support files. 
    2846endef 
    2947 
     
    7088endef 
    7189 
     90define Package/zlib-dev/install 
     91        $(INSTALL_DIR) $(1)/usr/include 
     92        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/zconf.h \ 
     93          $(1)/usr/include/ 
     94        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/zlib.h \ 
     95          $(1)/usr/include/ 
     96        $(INSTALL_DIR) $(1)/usr/lib 
     97        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.a $(1)/usr/lib/ 
     98        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 
     99        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/zlib.pc \ 
     100          $(1)/usr/lib/pkgconfig/ 
     101endef 
     102 
    72103$(eval $(call BuildPackage,zlib)) 
     104$(eval $(call BuildPackage,zlib-dev)) 
Note: See TracChangeset for help on using the changeset viewer.