Changeset 12599


Ignore:
Timestamp:
2008-09-13T19:36:10+02:00 (8 years ago)
Author:
lars
Message:

Move python module of hippo-canvas into its own package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/XOrg/lib/hippo-canvas/Makefile

    • Property copyright set to Copyright (C) 2008 OpenWrt.org
    • Property licence set to GPLv2
    • Property svn:eol-style set to native
    • Property svn:keywords set to Author Date Id Revision
    r12505 r12599  
     1# 
     2# Copyright (C) 2008 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7# $Id$ 
     8 
    19include $(TOPDIR)/rules.mk 
    210 
     
    1119 
    1220include $(INCLUDE_DIR)/package.mk 
     21-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) 
     22 
     23PKG_INSTALL:=1 
    1324 
    1425EXTRA_CFLAGS += \ 
    1526        -I$(STAGING_DIR)/usr/lib/libintl/include \ 
    1627        -I$(STAGING_DIR)/usr/include/libcroco-0.6 \ 
    17         -I$(STAGING_DIR)/usr/include/pycairo 
     28        $(if $(CONFIG_PACKAGE_python-hipp-canvas),-I$(STAGING_DIR)/usr/include/pycairo,) 
     29 
     30STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_hippo-canvas CONFIG_PACKAGE_python-hippo-canvas) 
    1831 
    1932define Package/hippo-canvas 
     
    2336  TITLE:=Hippo Canvas 
    2437  URL:=http://developer.mugshot.org/wiki/Hippo_Canvas 
    25   DEPENDS:=+librsvg +python +gtk2 +cairo +libcroco +pango +pycairo 
     38  DEPENDS:=+librsvg +gtk2 +cairo +libcroco +pango 
    2639endef 
    2740 
     
    3144endef 
    3245 
    33 define Build/Configure 
    34         $(call Build/Configure/Default, --enable-python) 
     46define Package/python-hippo-canvas 
     47  SECTION:=lang-python 
     48  CATEGORY:=Languages 
     49  SUBMENU:=Python 
     50  TITLE:=Python bindings for hippo canvas 
     51  URL:=http://developer.mugshot.org/wiki/Hippo_Canvas 
     52  DEPENDS:=python-core +python-gtk +pycairo +hippo-canvas 
    3553endef 
    3654 
    37 define Build/Compile 
    38         make -C $(PKG_BUILD_DIR) 
    39         make -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR) 
     55define Build/Configure 
     56        $(call Build/Configure/Default, \ 
     57                $(if $(CONFIG_PACKAGE_python-hippo-canvas), \ 
     58                        --enable-python, \ 
     59                        --disable-python \ 
     60                ) \ 
     61        ) 
    4062endef 
    4163 
    4264define Build/InstallDev 
    4365        $(INSTALL_DIR) $(1)/usr/lib/ 
    44         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/ 
    45         $(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/ 
    46         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/*.{so*,a,la} $(1)/usr/lib/python2.5/site-packages/ 
     66        $(INSTALL_DATA) \ 
     67                $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \ 
     68                $(1)/usr/lib/ 
     69 
    4770        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/ 
    48         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ 
     71        $(INSTALL_DATA) \ 
     72                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ 
     73                $(1)/usr/lib/pkgconfig/ 
     74 
    4975        $(INSTALL_DIR) $(1)/usr/include/hippo-canvas-1/hippo/ 
    50         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hippo-canvas-1/hippo/* $(1)/usr/include/hippo-canvas-1/hippo/ 
     76        $(INSTALL_DATA) \ 
     77                $(PKG_INSTALL_DIR)/usr/include/hippo-canvas-1/hippo/* \ 
     78                $(1)/usr/include/hippo-canvas-1/hippo/ 
    5179endef 
    5280 
     
    5482        $(INSTALL_DIR) $(1)/usr/lib/ 
    5583        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/ 
    56         $(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/ 
    57         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/*.{so*,a} $(1)/usr/lib/python2.5/site-packages/ 
     84endef 
     85 
     86define Package/python-hippo-canvas/install 
     87        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) 
     88        $(INSTALL_DATA) \ 
     89                $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.{so*,a} \ 
     90                $(1)$(PYTHON_PKG_DIR) 
    5891endef 
    5992 
    6093$(eval $(call BuildPackage,hippo-canvas)) 
    61  
     94$(eval $(call BuildPackage,python-hippo-canvas)) 
Note: See TracChangeset for help on using the changeset viewer.