. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. use PLIST_FILES and PORTDOCS; . remove pkg-plist (4 lines).
This commit is contained in:
parent
4ee320ce24
commit
3d4edf2fac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321252
2 changed files with 8 additions and 5 deletions
|
@ -13,16 +13,23 @@ COMMENT= Programs to compare protein sequences and profiles
|
|||
WRKSRC= ${WRKDIR}/SRC-${PORTVERSION}
|
||||
USE_GMAKE= yes
|
||||
|
||||
PLIST_FILES+= bin/ariadne bin/prospero
|
||||
PORTDOCS= README
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}| ; \
|
||||
s|CC =|CC ?=| ; \
|
||||
s|CFLAGS =|CFLAGS +=| ; \
|
||||
s|-c $(OPTIMISE)|-c $(CFLAGS) $(OPTIMIZE)|g' ${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${OPSYS}/ariadne ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${OPSYS}/prospero ${PREFIX}/bin
|
||||
.if !defined(NOPORTDOCS)
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
bin/ariadne
|
||||
bin/prospero
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in a new issue