Changeset 22375


Ignore:
Timestamp:
2010-07-24T15:07:12+02:00 (7 years ago)
Author:
claudio
Message:

[packages] cwiid: Package also the python bindings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/cwiid/Makefile

    r22224 r22375  
    1010PKG_NAME:=cwiid 
    1111PKG_VERSION:=0.6.00 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz 
     
    1616PKG_SOURCE_VERSION:=2100f14c612471084434b364501e3818c7f4144e 
    1717 
     18PKG_BUILD_DEPENDS:=python 
     19 
    1820include $(INCLUDE_DIR)/package.mk 
     21$(call include_mk, python-package.mk) 
    1922 
    2023define Package/cwiid/Default 
     
    4043endef 
    4144 
     45define Package/python-cwiid 
     46$(call Package/cwiid/Default) 
     47  SUBMENU:=Python 
     48  SECTION:=lang 
     49  CATEGORY:=Languages 
     50  TITLE:=Python bindings for the cwiid libs 
     51  DEPENDS:= +python-mini +libcwiid 
     52endef 
     53 
    4254CONFIGURE_ARGS += \ 
    4355        --without-python \ 
    4456        --disable-ldconfig \ 
    4557        --enable-shared \ 
     58        --enable-static \ 
    4659 
    4760TARGET_CFLAGS += $(FPIC) 
     61TARGET_CPPFLAGS += -I$(PKG_BUILD_DIR)/libcwiid/ 
    4862 
    4963define Build/Prepare 
     
    6175                LDFLAGS="$(TARGET_LDFLAGS) -L../libcwiid/" \ 
    6276                all 
     77        $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false) 
     78        $(call Build/Compile/PyMod,./python/, \ 
     79                install --prefix="$(PKG_INSTALL_DIR)/usr", \ 
     80        ) 
    6381endef 
    6482 
     
    8199endef 
    82100 
     101define PyPackage/python-cwiid/filespec 
     102+|$(PYTHON_PKG_DIR)/cwiid.so 
     103endef 
     104 
    83105$(eval $(call BuildPackage,libcwiid)) 
    84106$(eval $(call BuildPackage,wminput)) 
     107$(eval $(call PyPackage,python-cwiid)) 
     108$(eval $(call BuildPackage,python-cwiid)) 
Note: See TracChangeset for help on using the changeset viewer.