freebsd-ports/devel/gengetopt/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

57 lines
1.4 KiB
Makefile

PORTNAME= gengetopt
PORTVERSION= 2.23
CATEGORIES= devel
MASTER_SITES= GNU
MAINTAINER= bofh@FreeBSD.org
COMMENT= Tool for generating a C function which parses command line arguments
WWW= https://www.gnu.org/software/gengetopt/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= makeinfo tar:xz
USE_CXXSTD= c++14
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE=yes
CFLAGS+= -D_GL_SYSTEM_GETOPT
INSTALL_WRKSRC= ${WRKSRC}/src
INFO= gengetopt
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
DOC_EXAMPLES= README.example cmdline1.c cmdline1.h cmdline2.c cmdline2.h \
main1.cc main2.c multiple_example.c sample1.ggo sample2.ggo
TESTS_EXAMPLES= test_manual_help.c test_manual_help_cmd.c \
test_manual_help_cmd.ggo test_manual_help_cmd.h
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1/
@${MKDIR} ${STAGEDIR}${PREFIX}/${INFO_PATH}
${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.info \
${STAGEDIR}${PREFIX}/${INFO_PATH}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog NEWS \
README THANKS TODO doc/index.html doc/gengetopt.html \
${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for e in ${DOC_EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/doc/${e} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.for e in ${TESTS_EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/tests/${e} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>