mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Respect NOPORTDOCS
- use REINPLACE_CMD for making it respect CC instead of MAKE_ARGS - Take maintainership PR: 103036 Submitted by: Gabor Kovesdan <gabor@FreeBSD.org>
This commit is contained in:
parent
de3fa1901b
commit
1673638efb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=172704
@ -12,17 +12,29 @@ CATEGORIES= archivers
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
||||
MASTER_SITE_SUBDIR= utils/compress
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= gkovesdan@t-hosting.hu
|
||||
COMMENT= Extracts files from the old `.arc' archive format
|
||||
|
||||
USE_GETOPT_LONG=yes
|
||||
MAKE_ARGS= CC="${CC}" CFLAGS="${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"
|
||||
|
||||
MAN1= nomarch.1
|
||||
PLIST_FILES= bin/nomarch
|
||||
PORTDOCS= COPYING ChangeLog NEWS README TODO
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|CC=|CC?=|' \
|
||||
-e 's|CFLAGS=|CFLAGS?=|' ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/nomarch ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/nomarch.1 ${MAN1PREFIX}/man/man1
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for i in ${PORTDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user