flex: install dev files to staging
authorMichael Pratt <redacted>
Thu, 25 Aug 2022 19:49:13 +0000 (15:49 -0400)
committerRosen Penev <redacted>
Fri, 9 Sep 2022 22:20:58 +0000 (15:20 -0700)
Provide the library and headers for flex
in the staging directory
for the target build of packages
that depend on lexical functions.

Signed-off-by: Michael Pratt <redacted>
devel/flex/Makefile

index 5f2c12e0c6c33fda8af2304fac712a18eb57f4f2..3b7d1ce1c7aba7b34f2d5a41bc3e4d7875b3ff55 100644 (file)
@@ -36,6 +36,12 @@ endef
 
 CONFIGURE_ARGS += --disable-shared --disable-bootstrap
 
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
+endef
+
 define Package/flex/install
        $(INSTALL_DIR) $(1)/usr/bin/
        $(CP) \
git clone https://git.99rst.org/PROJECT