#!/bin/sh
# This is a shell archive
echo x devel/kconfig-frontends
mkdir -p devel/kconfig-frontends > /dev/null 2>&1
echo x devel/kconfig-frontends/distinfo
sed 's/^X//' > devel/kconfig-frontends/distinfo << 'SHAR_END'
XTIMESTAMP = 1634567697
XSHA256 (kconfig-frontends-4.11.0.1.tar.bz2) = cb1838cfe2f097ba09cade27d47527720d5b29e2b715c0a96c33d0b6a10bab13
XSIZE (kconfig-frontends-4.11.0.1.tar.bz2) = 448594
SHAR_END
echo x devel/kconfig-frontends/files
mkdir -p devel/kconfig-frontends/files > /dev/null 2>&1
echo x devel/kconfig-frontends/Makefile
sed 's/^X//' > devel/kconfig-frontends/Makefile << 'SHAR_END'
X# Created by: Tomasz "CeDeROM" CEDRO (http://www.tomek.cedro.info)
X
XPORTNAME=	kconfig-frontends
XPORTVERSION=	4.11.0.1
XCATEGORIES=	devel
XMASTER_SITES=	https://bitbucket.org/nuttx/tools/downloads/
X
XMAINTAINER=	tomek@cedro.info
XCOMMENT=	Mkfs equivalent for ROMFS filesystem
X
XLICENSE=	GPLv2
X
XEXTRACT_SUFFIX=	.tar.bz2
XUSES=		tar:bz2 gmake
XGNU_CONFIGURE=	yes
X
XPORTDOCS=	AUTHORS COPYING README docs/kconfig.txt docs/kconfig-language.txt
X
Xpost-install:
X	${MKDIR} ${STAGEDIR}${DOCSDIR}
X	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
X
XOPTIONS_DEFINE=	MCONF NCONF GCONF QCONF
XOPTIONS_DEFAULT=MCONF NCONF
XOPTIONS_SUB=	yes
XMCONF_DESC=	Enable Ncurses frontend (traditional)
XNCONF_DESC=	Enable Ncurses frontend (modern)
XGCONF_DESC=	Enable GTK-based frontend
XQCONF_DESC=	Enable QT-based frontend
X
XMCONF_CONFIGURE_ENABLE=mconf
XNCONF_CONFIGURE_ENABLE=nconf
XGCONF_CONFIGURE_ENABLE=gconf
XQCONF_CONFIGURE_ENABLE=qconf
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MMCONF} || ${PORT_OPTIONS:MNCONF}
XUSES+=		ncurses
X.endif
X
X.if ${PORT_OPTIONS:MGCONF}
XUSES+=		org
XUSE_XORG+=	x11
XUSE_WX+=	3.1
X.endif
X
X.if ${PORT_OPTIONS:MQCONF}
XUSES+=		qt:5
XUSE_QT=		buildtools_build core gui
X.endif
X
X.include <bsd.port.mk>
SHAR_END
echo x devel/kconfig-frontends/pkg-descr
sed 's/^X//' > devel/kconfig-frontends/pkg-descr << 'SHAR_END'
XKconfig frontends and parser. Port created for NuttX RTOS development.
XKconfig is the configuration language used by the Linux kernel. This package
Xis a simple copy of the frontends and the parser found in the Linux kernel
Xsource tree, with very minor changes to adapt them to being built out of
Xthe kernel build infrastructure. Kconfig is also used in embedded development.
XThis program has currently no upstream maintainer. NuttX copy is used.
XThere are two forks: Debian based on 4.11, Espressif based on version 4.6.
X
XWWW: https://bitbucket.org/nuttx/tools/downloads/
SHAR_END
echo x devel/kconfig-frontends/pkg-plist
sed 's/^X//' > devel/kconfig-frontends/pkg-plist << 'SHAR_END'
Xbin/kconfig
Xbin/kconfig-conf
Xbin/kconfig-diff
Xbin/kconfig-merge
Xbin/kconfig-tweak
Xinclude/kconfig/expr.h
Xinclude/kconfig/list.h
Xinclude/kconfig/lkc.h
Xinclude/kconfig/lkc_proto.h
Xlib/libkconfig-parser-4.11.0.so
Xlib/libkconfig-parser.la
Xlib/libkconfig-parser.so
Xlibdata/pkgconfig/kconfig-parser.pc
X%%DOCSDIR%%/AUTHORS
X%%DOCSDIR%%/COPYING
X%%DOCSDIR%%/README
X%%DOCSDIR%%/kconfig-language.txt
X%%DOCSDIR%%/kconfig.txt
X%%GCONF%%%%DATADIR%%/gconf.glade
X%%GCONF%%bin/kconfig-gconf
X%%MCONF%%bin/kconfig-mconf
X%%NCONF%%bin/kconfig-nconf
X%%QCONF%%bin/kconfig-qconf
X
SHAR_END
echo x devel/kconfig-frontends/files/patch-libs_parser_hconf.c
sed 's/^X//' > devel/kconfig-frontends/files/patch-libs_parser_hconf.c << 'SHAR_END'
X--- libs/parser/hconf.c.orig	2019-09-24 15:10:13 UTC
X+++ libs/parser/hconf.c
X@@ -172,7 +172,7 @@ __attribute__ ((__gnu_inline__))
X #endif
X #endif
X const struct kconf_id *
X-kconf_id_lookup (register const char *str, register unsigned int len)
X+kconf_id_lookup (register const char *str, register GPERF_LEN_TYPE len)
X {
X   enum
X     {
SHAR_END
exit
