summaryrefslogtreecommitdiff
path: root/lang/python/python3/files/python3-package-dev.mk
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-05-18 10:48:58 +0300
committerGitHub <noreply@github.com>2017-05-18 10:48:58 +0300
commit675585a66f48d53b8f1f7308f19d606a5664f3a7 (patch)
tree8ca48b5730d8762ef2c498ff9b62569d3d41ca59 /lang/python/python3/files/python3-package-dev.mk
parent5c8edf89482bd2a9d192faba8ab9ee4a9d71373d (diff)
parent68312f49c0b4456e665ed438a86a44738caa765a (diff)
Merge pull request #4365 from commodo/python-groupping
python packages: move all things python under lang/python
Diffstat (limited to 'lang/python/python3/files/python3-package-dev.mk')
-rw-r--r--lang/python/python3/files/python3-package-dev.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/lang/python/python3/files/python3-package-dev.mk b/lang/python/python3/files/python3-package-dev.mk
new file mode 100644
index 000000000..642bb0b5f
--- /dev/null
+++ b/lang/python/python3/files/python3-package-dev.mk
@@ -0,0 +1,27 @@
+#
+# 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/python3-dev
+$(call Package/python3/Default)
+ TITLE:=Python $(PYTHON3_VERSION) development files
+ DEPENDS:=+python3 +python3-lib2to3
+endef
+
+define Py3Package/python3-dev/install
+ $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/bin/python$(PYTHON3_VERSION)-config $(1)/usr/bin
+ $(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python3-config
+ $(LN) python$(PYTHON_VERSION)/config-$(PYTHON_VERSION)/libpython$(PYTHON3_VERSION).a $(1)/usr/lib/
+endef
+
+$(eval $(call Py3BasePackage,python3-dev, \
+ /usr/lib/python$(PYTHON_VERSION)/config-$(PYTHON_VERSION) \
+ /usr/include/python$(PYTHON_VERSION) \
+ /usr/lib/pkgconfig \
+ , \
+ DO_NOT_ADD_TO_PACKAGE_DEPENDS \
+))