31441bb2d6
* Add code for formal master/slave checking rules as defined in ports/64393 [1]: 1. A port is a slave port if and only if MASTERDIR != .CURDIR 2. Slave ports should define MASTERDIR using one of the following lines: MASTERDIR= ${.CURDIR}/../../<category>/<port> MASTERDIR= ${.CURDIR}/../<port> 3. Non-slave ports shouldn't define MASTERDIR at all 4. The last line of a slave port's Makefile has to be .include "${MASTERDIR}/Makefile" 5. The last line of a non-slave ports Makefile must be one of: .include <bsd.port.mk> .include <bsd.port.post.mk> 6. slave ports may not include bsd.port(.pre).mk * Check to make sure MACHINE_ARCH is not defined and make sure it is never tested directly [2] * Fix some grammar nits [3] PR: 64420 [1] Submitted by: eik [1] krion [3] Requested by: kris [2]
45 lines
974 B
Makefile
45 lines
974 B
Makefile
# New ports collection makefile for: portlint
|
|
# Date created: 13 Jun 1997
|
|
# Whom: Jun-ichiro itojun Hagino <itojun@itojun.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# This port is self contained in the src directory.
|
|
#
|
|
|
|
PORTNAME= portlint
|
|
PORTVERSION= 2.5.9
|
|
CATEGORIES= devel
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= marcus@FreeBSD.org
|
|
COMMENT= A verifier for FreeBSD port directory
|
|
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/src
|
|
USE_PERL5= yes
|
|
USE_REINPLACE= yes
|
|
|
|
SRC= ${.CURDIR}/src
|
|
|
|
MAN1= portlint.1
|
|
|
|
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
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/portlintgrep.pl ${EXAMPLESDIR}/portlintgrep
|
|
|
|
.include <bsd.port.mk>
|