mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-15 11:53:59 +02:00
![Alexandru Ardelean](/assets/img/avatar_default.png)
I admit this may be be a bit aggressive, but the lang folder is getting cluttered/filled up with Python, PHP, Perl, Ruby, etc. packages. Makes sense to try to group them into per-lang folders. I took the Pythons. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
28 lines
750 B
Makefile
28 lines
750 B
Makefile
#
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
define Package/python-dev
|
|
$(call Package/python/Default)
|
|
TITLE:=Python $(PYTHON_VERSION) development files
|
|
DEPENDS:=+python +python-lib2to3
|
|
endef
|
|
|
|
define PyPackage/python-dev/install
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/python*config $(1)/usr/bin
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config/libpython$(PYTHON_VERSION).a $(1)/usr/lib
|
|
endef
|
|
|
|
$(eval $(call PyBasePackage,python-dev, \
|
|
/usr/lib/python$(PYTHON_VERSION)/config \
|
|
/usr/include/python$(PYTHON_VERSION) \
|
|
/usr/lib/pkgconfig \
|
|
, \
|
|
DO_NOT_ADD_TO_PACKAGE_DEPENDS \
|
|
))
|
|
|