1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

Convert to staging

This commit is contained in:
Eitan Adler 2013-10-12 20:29:58 +00:00
parent a040313bc4
commit 05ca5e0430
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330186
2 changed files with 9 additions and 11 deletions

View File

@ -14,21 +14,18 @@ USE_CSTD= c89
USES= readline
ALL_TARGET= ${PORTNAME}
MAN1= cdecl.1
MLINKS= cdecl.1 c++decl.1
PORTDOCS= testset testset++
PLIST_FILES= bin/cdecl bin/c++decl
PLIST_FILES= bin/cdecl bin/c++decl man/man1/cdecl.1.gz man/man1/c++decl.1.gz
MAKE_ENV+= STAGEDIR=$(STAGEDIR)
CONFLICTS= cutils-[0-9]*
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/testset* ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/testset* ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -24,12 +24,13 @@
install: cdecl
- $(INSTALL) cdecl $(BINDIR)
+ ${BSD_INSTALL_PROGRAM} cdecl $(BINDIR)
ln $(BINDIR)/cdecl $(BINDIR)/c++decl
+ ${BSD_INSTALL_PROGRAM} cdecl $(STAGEDIR)$(BINDIR)
- ln $(BINDIR)/cdecl $(BINDIR)/c++decl
+ ln -s $(BINDIR)/cdecl $(STAGEDIR)$(BINDIR)/c++decl
- $(INSTALL_DATA) cdecl.1 $(MANDIR)
- $(INSTALL_DATA) c++decl.1 $(MANDIR)
+ ${BSD_INSTALL_MAN} cdecl.1 $(MANDIR)
+ ${BSD_INSTALL_MAN} c++decl.1 $(MANDIR)
+ ${BSD_INSTALL_MAN} cdecl.1 $(STAGEDIR)$(MANDIR)
+ ln -s $(MANDIR)/cdecl.1 $(STAGEDIR)$(MANDIR)/c++decl.1
clean:
rm -f cdgram.c cdlex.c cdecl y.output c++decl