mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
Support stage
This commit is contained in:
parent
891839efe7
commit
4017c46b09
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345872
2 changed files with 18 additions and 33 deletions
|
@ -12,53 +12,31 @@ MAINTAINER= rodrigo@FreeBSD.org
|
||||||
COMMENT= Library for command line and configuration file parsing
|
COMMENT= Library for command line and configuration file parsing
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
||||||
|
|
||||||
|
USES= gmake
|
||||||
USE_AUTOTOOLS= autoconf
|
USE_AUTOTOOLS= autoconf
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
USE_GMAKE= yes
|
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
|
||||||
INSTALL_TARGET= install-strip
|
INSTALL_TARGET= install-strip install-man
|
||||||
|
|
||||||
.if !defined(NO_INSTALL_MANPAGES)
|
|
||||||
MAN3= cfg_add_property.3 cfg_context.3 cfg_option.3 cfg_parse.3 \
|
|
||||||
cfg_print_error.3 cfg_set_context_flag.3 libcfg+.3
|
|
||||||
MANCOMPRESSED= yes
|
|
||||||
INSTALL_TARGET+= install-man
|
|
||||||
.endif
|
|
||||||
|
|
||||||
PORTDOCS= *
|
PORTDOCS= *
|
||||||
|
|
||||||
OPTIONS_DEFINE= EXAMPLES DOCS
|
OPTIONS_DEFINE= EXAMPLES DOCS
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
NO_STAGE= yes
|
CFLAGS_amd64= -fPIC
|
||||||
.include <bsd.port.options.mk>
|
CFLAGS_ia64= -fPIC
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
||||||
PLIST_SUB+= EXAMPLES=""
|
|
||||||
.else
|
|
||||||
PLIST_SUB+= EXAMPLES="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
||||||
CFLAGS+= -fPIC
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
@${MKDIR} ${EXAMPLESDIR}
|
${INSTALL_DATA} ${WRKSRC}/doc/examples/example.* ${STAGEDIR}${EXAMPLESDIR}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/doc/examples/example.* ${EXAMPLESDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
|
||||||
.endif
|
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
|
||||||
@${MKDIR} ${DOCSDIR}
|
|
||||||
.for FILE in AUTHORS README TODO
|
.for FILE in AUTHORS README TODO
|
||||||
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
@${MKDIR} ${DOCSDIR}/html
|
for FILE in ${WRKSRC}/doc/html/*; do \
|
||||||
@for FILE in ${WRKSRC}/doc/html/*; do \
|
${INSTALL_DATA} $${FILE} ${STAGEDIR}${DOCSDIR}/html; \
|
||||||
${INSTALL_DATA} $${FILE} ${DOCSDIR}/html; \
|
|
||||||
done
|
done
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -5,6 +5,13 @@ include/cfg.h
|
||||||
include/cfg+.h
|
include/cfg+.h
|
||||||
include/platon/cfg.h
|
include/platon/cfg.h
|
||||||
include/platon/cfg+.h
|
include/platon/cfg+.h
|
||||||
|
man/man3/cfg_add_property.3.gz
|
||||||
|
man/man3/cfg_context.3.gz
|
||||||
|
man/man3/cfg_option.3.gz
|
||||||
|
man/man3/cfg_parse.3.gz
|
||||||
|
man/man3/cfg_print_error.3.gz
|
||||||
|
man/man3/cfg_set_context_flag.3.gz
|
||||||
|
man/man3/libcfg+.3.gz
|
||||||
@dirrm include/platon
|
@dirrm include/platon
|
||||||
%%EXAMPLES%%%%EXAMPLESDIR%%/example.c
|
%%EXAMPLES%%%%EXAMPLESDIR%%/example.c
|
||||||
%%EXAMPLES%%%%EXAMPLESDIR%%/example.cfg
|
%%EXAMPLES%%%%EXAMPLESDIR%%/example.cfg
|
||||||
|
|
Loading…
Add table
Reference in a new issue