PORTNAME=	getopt
PORTVERSION=	2.41.4
CATEGORIES=	misc
MASTER_SITES=	KERNEL_ORG/linux/utils/util-linux/v${PORTVERSION:R}/
DISTNAME=	util-linux-${PORTVERSION}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Replacement for getopt(1) that supports GNU-style long options
WWW=		https://github.com/util-linux/util-linux

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		pkgconfig shebangfix tar:xz

CONFIGURE_ARGS=	--disable-asciidoc \
		--disable-all-programs \
		--disable-gtk-doc \
		--disable-nls \
		--disable-makeinstall-chown \
		--disable-makeinstall-setuid \
		--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
		${CONFIGURE_ARGS_${ARCH}}
CONFIGURE_ARGS_i386=	--disable-year2038
GNU_CONFIGURE=	yes

SHEBANG_FILES=	misc-utils/getopt-example.bash

OPTIONS_DEFINE=	EXAMPLES
OPTIONS_SUB=	yes

.include <bsd.port.mk>
