freebsd-ports/devel/gengetopt/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

56 lines
1.4 KiB
Makefile

# Created by: Cyrille Lefevre <clefevre@citeweb.net>
# $FreeBSD$
PORTNAME= gengetopt
PORTVERSION= 2.22.6
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= GNU
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool for generating a C function which parses command line arguments
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE=yes
CFLAGS+= -D_GL_SYSTEM_GETOPT
INSTALL_WRKSRC= ${WRKSRC}/src
PORTDOCS= *
PORTEXAMPLES= *
INFO= gengetopt
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
OPTIONS_DEFINE= DOCS EXAMPLES
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>