Changeset 15395


Ignore:
Timestamp:
2009-04-24T21:16:26+02:00 (9 years ago)
Author:
nbd
Message:

xcbproto: make python support conditional (auto-detected), and un-hardcode path names for python 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/Xorg/lib/xcbproto/Makefile

    r15244 r15395  
    1717PKG_INSTALL:=1 
    1818 
     19PKG_BUILD_DEPENDS:=PACKAGE_python:python PACKAGE_python-mini:python 
     20 
    1921include $(INCLUDE_DIR)/package.mk 
     22include $(STAGING_DIR)/mk/python-package.mk 
     23 
     24STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,PACKAGE_python PACKAGE_python-mini) 
    2025 
    2126define Package/xcbproto 
     
    2328  CATEGORY:=Xorg 
    2429  SUBMENU:=libraries 
     30  BUILDONLY:=1 
    2531  TITLE:=xcbproto 
    2632endef 
    2733 
     34ifneq ($(CONFIG_PACKAGE_python)$(CONFIG_PACKAGE_python-mini),) 
     35  define InstallPy 
     36        $(INSTALL_DIR) $(1)/host/lib/$(PYTHON)/site-packages/xcbgen 
     37        $(INSTALL_DATA) \ 
     38                $(PKG_INSTALL_DIR)/usr/lib/$(PYTHON)/site-packages/xcbgen/*.py \ 
     39                $(1)/host/lib/$(PYTHON)/site-packages/xcbgen/ 
     40  endef 
     41endif 
     42 
    2843define Build/InstallDev 
    29         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 
    30         $(INSTALL_DIR) $(1)/host/{lib/python2.5/site-packages/xcbgen,share/xcb} 
    31  
    32         $(INSTALL_DATA) \ 
    33                 $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/xcbgen/*.py \ 
    34                 $(1)/host/lib/python2.5/site-packages/xcbgen/ 
     44        $(call InstallPy,$(1),$(2)) 
     45        $(INSTALL_DIR) \ 
     46                $(1)/usr/lib/pkgconfig \ 
     47                $(1)/host/share/xcb 
    3548 
    3649        $(INSTALL_DATA) \ 
     
    4558endef 
    4659 
    47 define Package/xcbproto/install 
    48         true 
    49 endef 
    50  
    51  
    5260$(eval $(call BuildPackage,xcbproto)) 
Note: See TracChangeset for help on using the changeset viewer.