a659a8b6e9
* Reduce false alarms when checking for MAN* and MAN*PREFIX. [1] * Don't over-warn when using PORT_OPTIONS:MDOCS with ${PREFIX}/share/doc/${PORTNAME}. [2] * Remove spurious warnings about CPPFLAGS and LDFLAGS. [3] * Make sure we do not throw a warning if USE_GCC=any is used. [4] PR: 169745 [1] 171535 [2] 172335 [3] Submitted by: sunpoet [1] Hung-te Liang <lhd@cs.nctu.edu.tw> [2] glarkin [3] Suggested by: eadler [4]
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# Created by: Jun-ichiro itojun Hagino <itojun@itojun.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# This port is self contained in the src directory.
|
|
#
|
|
|
|
PORTNAME= portlint
|
|
PORTVERSION= 2.13.13
|
|
CATEGORIES= ports-mgmt
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= marcus@FreeBSD.org
|
|
COMMENT= A verifier for FreeBSD port directory
|
|
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/src
|
|
USE_PERL5_RUN= yes
|
|
|
|
SRC= ${.CURDIR}/src
|
|
|
|
MAN1= portlint.1
|
|
PLIST_FILES= bin/portlint
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
PLIST_FILES+= %%EXAMPLESDIR%%/portlintgrep
|
|
PLIST_DIRS= %%EXAMPLESDIR%%
|
|
.endif
|
|
|
|
do-fetch:
|
|
@${DO_NADA}
|
|
|
|
pre-patch:
|
|
@${CP} -R ${SRC} ${WRKDIR}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/portlint.pl
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' \
|
|
${WRKSRC}/portlintgrep.pl
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/portlint.pl ${PREFIX}/bin/portlint
|
|
${INSTALL_MAN} ${WRKSRC}/portlint.1 ${MAN1PREFIX}/man/man1
|
|
.if !defined(NOPORTEXAMPLES)
|
|
${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${BINMODE} -d ${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/portlintgrep.pl ${EXAMPLESDIR}/portlintgrep
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|