From 4478a1d3824a952aedafd86c5d1db11ed9533d42 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Wed, 13 Apr 2022 14:40:22 -0500 Subject: [PATCH] bison: new package Signed-off-by: W. Michael Petullo --- devel/bison/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 devel/bison/Makefile diff --git a/devel/bison/Makefile b/devel/bison/Makefile new file mode 100644 index 0000000000..94183f9d93 --- /dev/null +++ b/devel/bison/Makefile @@ -0,0 +1,43 @@ +# SPDX-Identifier-License: GPL-2.0-only +# +# Copyright (C) 2022 W. Michael Petullo + +include $(TOPDIR)/rules.mk + +PKG_NAME:=bison +PKG_VERSION:=3.8.2 +PKG_RELEASE:=$(AUTORELEASE) + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=@GNU/$(PKG_NAME) +PKG_HASH:=9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2 + +PKG_MAINTAINER:=W. Michael Petullo +PKG_LICENSE:=GPL-3.0-or-later +PKG_LICENSE_FILES:=COPYING + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/bison + SECTION:=devel + CATEGORY:=Development + TITLE:=bison + URL:=http://www.gnu.org/software/bison/ +endef + +define Package/bison/description + Bison is a general-purpose parser generator +endef + +CONFIGURE_ARGS += --enable-threads=posix --disable-nls + +define Package/bison/install + $(INSTALL_DIR) $(1)/usr/bin/ + $(CP) \ + $(PKG_INSTALL_DIR)/usr/bin/bison \ + $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,bison))