bison: new package
[feed/packages.git] / devel / bison / Makefile
1 # SPDX-Identifier-License: GPL-2.0-only
2 #
3 # Copyright (C) 2022 W. Michael Petullo <mike@flyn.org>
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=bison
8 PKG_VERSION:=3.8.2
9 PKG_RELEASE:=$(AUTORELEASE)
10
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
12 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
13 PKG_HASH:=9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2
14
15 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
16 PKG_LICENSE:=GPL-3.0-or-later
17 PKG_LICENSE_FILES:=COPYING
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/bison
24 SECTION:=devel
25 CATEGORY:=Development
26 TITLE:=bison
27 URL:=http://www.gnu.org/software/bison/
28 endef
29
30 define Package/bison/description
31 Bison is a general-purpose parser generator
32 endef
33
34 CONFIGURE_ARGS += --enable-threads=posix --disable-nls
35
36 define Package/bison/install
37 $(INSTALL_DIR) $(1)/usr/bin/
38 $(CP) \
39 $(PKG_INSTALL_DIR)/usr/bin/bison \
40 $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,bison))