- Support staging
- Use pkg-plist
This commit is contained in:
parent
25d24554e8
commit
eed896f16d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329358
2 changed files with 16 additions and 12 deletions
|
@ -14,27 +14,19 @@ ALL_TARGET= astyle
|
|||
CFLAGS+= -W -Wall -fno-rtti -fno-exceptions
|
||||
LDFLAGS+= -s
|
||||
MAKE_ARGS+= CFLAGS="${CFLAGS}"
|
||||
USE_GMAKE= yes
|
||||
USES= gmake
|
||||
USE_GCC= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/astyle/build/gcc
|
||||
|
||||
NO_STAGE= yes
|
||||
pre-patch:
|
||||
@${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},;' ${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
PLIST_FILES= bin/astyle
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${PREFIX}/bin
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.html ${DOCSDIR}
|
||||
.endif
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${STAGEDIR}${PREFIX}/bin
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.html ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
12
devel/astyle/pkg-plist
Normal file
12
devel/astyle/pkg-plist
Normal file
|
@ -0,0 +1,12 @@
|
|||
bin/astyle
|
||||
%%PORTDOCS%%%%DOCSDIR%%/astyle.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/index.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/install.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/license.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/links.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/news.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/notes.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/scripts.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/subversion.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/vsinstall.html
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
|
Loading…
Reference in a new issue