Changeset 4293


Ignore:
Timestamp:
2006-07-26T03:09:42+02:00 (12 years ago)
Author:
nico
Message:

port libart to buildroot-ng

Location:
packages/libs/libart
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/libs/libart/Makefile

    r3112 r4293  
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=2.3.17 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3 
    818PKG_MD5SUM:=f1f6b3e5490f382535dccb288f5d8b14 
    9  
    10 PKG_SOURCE_URL:=http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3 
    11 PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION) 
    1521PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1622 
    17 include $(TOPDIR)/package/rules.mk 
     23include $(INCLUDE_DIR)/package.mk 
    1824 
    19 $(eval $(call PKG_template,LIBART,libart,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/libart 
     26  SECTION:=libs 
     27  CATEGORY:=Libraries 
     28  TITLE:=An high-performance 2D graphics library 
     29  DESCRIPTION:=An high-performance 2D graphics library.\\\ 
     30    A library of functions for 2D graphics supporting a superset of the \\\ 
     31    PostScript imaging model, designed to be integrated with graphics, artwork, \\\ 
     32    and illustration programs. It is written in optimized C, and is fully \\\ 
     33    compatible with C++. With a small footprint of 10,000 lines of code, it is \\\ 
     34    especially suitable for embedded applications. 
     35  URL:=http://www.levien.com/libart/ 
     36endef 
    2037 
    21 $(PKG_BUILD_DIR)/.configured: 
    22         (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ 
     38define Build/Configure 
     39        (cd $(PKG_BUILD_DIR); rm -f config.cache; \ 
    2340                CFLAGS="$(TARGET_CFLAGS)" \ 
    2441                CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ 
     
    4764                        --disable-rpath \ 
    4865        ); 
    49         touch $@ 
     66endef 
    5067 
    51 $(PKG_BUILD_DIR)/.built: 
     68define Build/Compile 
    5269        rm -rf $(PKG_INSTALL_DIR) 
    5370        mkdir -p $(PKG_INSTALL_DIR) 
     
    5673                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    5774                all install 
    58         touch $@ 
     75endef 
    5976 
    60 $(IPKG_LIBART): 
    61         install -d -m0755 $(IDIR_LIBART)/usr/lib 
    62         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(IDIR_LIBART)/usr/lib/ 
    63         $(RSTRIP) $(IDIR_LIBART) 
    64         $(IPKG_BUILD) $(IDIR_LIBART) $(PACKAGE_DIR) 
     77define Package/libart/install 
     78        install -d -m0755 $(1)/usr/lib 
     79        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/ 
     80endef 
    6581 
    66 $(STAGING_DIR)/usr/lib/libart_lgpl_2.so: $(PKG_BUILD_DIR)/.built 
     82define Build/InstallDev 
    6783        mkdir -p $(STAGING_DIR)/usr/bin 
    6884        $(CP) $(PKG_INSTALL_DIR)/usr/bin/libart2-config $(STAGING_DIR)/usr/bin/ 
     
    7389        mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig 
    7490        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/ 
    75         touch $@ 
     91        $(SED) 's,-I$$$${includedir}/libart-2.0,,g' $(STAGING_DIR)/usr/lib/pkgconfig/libart-2.0.pc 
     92        $(SED) 's,-L$$$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libart-2.0.pc 
     93endef 
    7694 
    77 install-dev: $(STAGING_DIR)/usr/lib/libart_lgpl_2.so 
    78  
    79 uninstall-dev: 
     95define Build/UninstallDev 
    8096        rm -rf \ 
    8197                $(STAGING_DIR)/usr/bin/libart2-config \ 
    8298                $(STAGING_DIR)/usr/include/libart-2.0 \ 
    8399                $(STAGING_DIR)/usr/lib/libart_lgpl_2.{a,so*} \ 
    84                 $(STAGING_DIR)/usr/lib/pkgconfig/libart-2.0.pc \ 
     100                $(STAGING_DIR)/usr/lib/pkgconfig/libart-2.0.pc 
     101endef 
    85102 
    86 compile-targets: install-dev 
    87 clean-targets: uninstall-dev 
     103$(eval $(call BuildPackage,libart)) 
Note: See TracChangeset for help on using the changeset viewer.