[packages] cwiid: Package also the python bindings
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22375 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
43b8bce2dd
commit
d1dba3f370
@ -9,13 +9,16 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=cwiid
|
PKG_NAME:=cwiid
|
||||||
PKG_VERSION:=0.6.00
|
PKG_VERSION:=0.6.00
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
||||||
PKG_SOURCE_URL:=http://abstrakraft.org/cwiid/downloads/
|
PKG_SOURCE_URL:=http://abstrakraft.org/cwiid/downloads/
|
||||||
PKG_SOURCE_VERSION:=2100f14c612471084434b364501e3818c7f4144e
|
PKG_SOURCE_VERSION:=2100f14c612471084434b364501e3818c7f4144e
|
||||||
|
|
||||||
|
PKG_BUILD_DEPENDS:=python
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
$(call include_mk, python-package.mk)
|
||||||
|
|
||||||
define Package/cwiid/Default
|
define Package/cwiid/Default
|
||||||
TITLE:=Linux Nintendo Wiimote interface
|
TITLE:=Linux Nintendo Wiimote interface
|
||||||
@ -39,12 +42,23 @@ $(call Package/cwiid/Default)
|
|||||||
DEPENDS+= +libcwiid
|
DEPENDS+= +libcwiid
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/python-cwiid
|
||||||
|
$(call Package/cwiid/Default)
|
||||||
|
SUBMENU:=Python
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
TITLE:=Python bindings for the cwiid libs
|
||||||
|
DEPENDS:= +python-mini +libcwiid
|
||||||
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--without-python \
|
--without-python \
|
||||||
--disable-ldconfig \
|
--disable-ldconfig \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
|
--enable-static \
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_CFLAGS += $(FPIC)
|
||||||
|
TARGET_CPPFLAGS += -I$(PKG_BUILD_DIR)/libcwiid/
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
$(call Build/Prepare/Default)
|
$(call Build/Prepare/Default)
|
||||||
@ -60,6 +74,10 @@ define Build/Compile
|
|||||||
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS) -L../libcwiid/" \
|
LDFLAGS="$(TARGET_LDFLAGS) -L../libcwiid/" \
|
||||||
all
|
all
|
||||||
|
$(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
|
||||||
|
$(call Build/Compile/PyMod,./python/, \
|
||||||
|
install --prefix="$(PKG_INSTALL_DIR)/usr", \
|
||||||
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
@ -80,5 +98,11 @@ define Package/wminput/install
|
|||||||
$(CP) $(PKG_BUILD_DIR)/lswm/lswm $(1)/usr/bin/
|
$(CP) $(PKG_BUILD_DIR)/lswm/lswm $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define PyPackage/python-cwiid/filespec
|
||||||
|
+|$(PYTHON_PKG_DIR)/cwiid.so
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libcwiid))
|
$(eval $(call BuildPackage,libcwiid))
|
||||||
$(eval $(call BuildPackage,wminput))
|
$(eval $(call BuildPackage,wminput))
|
||||||
|
$(eval $(call PyPackage,python-cwiid))
|
||||||
|
$(eval $(call BuildPackage,python-cwiid))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user