[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkglint

Annotation of pkgsrc/pkgtools/pkglint/Makefile, Revision 1.177

1.177   ! grant       1: # $NetBSD: Makefile,v 1.176 2004/01/20 12:23:57 agc Exp $
1.1       tsarna      2: #
                      3:
1.177   ! grant       4: DISTNAME=      pkglint-3.67
1.112     zuntum      5: CATEGORIES=    pkgtools devel
                      6: MASTER_SITES=  # empty
                      7: DISTFILES=     # empty
1.1       tsarna      8:
1.163     grant       9: MAINTAINER=    hubertf@NetBSD.org
                     10: HOMEPAGE=      ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/Packages.txt
1.112     zuntum     11: COMMENT=       Verifier for NetBSD packages and complete pkgsrc tree
1.101     hubertf    12:
1.142     schmonz    13: DEPENDS+=      digest>=20010101:../../pkgtools/digest
1.1       tsarna     14:
1.174     jlam       15: PKG_INSTALLATION_TYPES=        overwrite pkgviews
1.1       tsarna     16:
1.174     jlam       17: USE_PERL5=     yes
                     18:
1.176     agc        19: WRKSRC=                ${WRKDIR}
1.174     jlam       20: NO_BUILDLINK=  yes
1.1       tsarna     21: NO_CHECKSUM=   yes
                     22: NO_CONFIGURE=  yes
                     23:
1.152     abs        24: MAKE_ENV=      PKGSRCDIR=${_PKGSRCDIR:Q}
1.1       tsarna     25:
1.92      abs        26: DISTVER=       ${DISTNAME:S/pkglint-//}
                     27:
1.174     jlam       28: INSTALLATION_DIRS=     bin man/cat1 man/man1
                     29:
1.8       agc        30: .include "../../mk/bsd.prefs.mk"
                     31:
1.12      agc        32: .if ${OPSYS} == "SunOS"
1.74      tron       33: # This doesn't create readable manual pages. "mandoc" should be added
                     34: # to zoularis.
                     35: NROFF=         nroff -man
1.12      agc        36: .else
1.74      tron       37: NROFF=         nroff -mandoc
1.12      agc        38: .endif
                     39:
1.151     atatat     40: do-extract:
                     41:        @${MKDIR} ${WRKSRC}/src
                     42: .for FILE in lintpkgsrc.1 lintpkgsrc.pl pkglint.1 pkglint.pl plist-clash.pl
                     43:        ${CP} ${FILESDIR}/${FILE} ${WRKSRC}/src/${FILE}
                     44: .endfor
                     45:
1.1       tsarna     46: do-build:
1.75      tron       47: .for FILE in pkglint lintpkgsrc plist-clash
1.1       tsarna     48:        ${SED} -e 's|@PREFIX@|${PREFIX}|g'              \
1.120     agc        49:                -e 's|@PORTSDIR@|${_PKGSRCDIR}|g'       \
1.92      abs        50:                -e 's|@DISTVER@|${DISTVER}|g'           \
1.146     schmonz    51:                -e 's|@MAKE@|${MAKE}|g'                 \
1.175     wiz        52:                -e 's|@PERL@|${PERL5}|g'                \
1.151     atatat     53:                < ${WRKSRC}/src/${FILE}.pl              \
1.75      tron       54:                > ${WRKSRC}/${FILE}
1.9       abs        55: .endfor
1.75      tron       56: .for FILE in pkglint lintpkgsrc
1.1       tsarna     57:        ${SED} -e 's|@PREFIX@|${PREFIX}|g'              \
1.120     agc        58:                -e 's|@PORTSDIR@|${_PKGSRCDIR}|g'       \
1.146     schmonz    59:                -e 's|@MAKE@|${MAKE}|g'                 \
1.151     atatat     60:                < ${WRKSRC}/src/${FILE}.1               \
1.75      tron       61:                > ${WRKSRC}/${FILE}.1
                     62:        ${NROFF} ${WRKSRC}/${FILE}.1 >${WRKSRC}/${FILE}.0
1.9       abs        63: .endfor
1.1       tsarna     64:
                     65: do-install:
                     66:        ${INSTALL_SCRIPT} ${WRKSRC}/pkglint ${PREFIX}/bin/pkglint
                     67:        ${INSTALL_SCRIPT} ${WRKSRC}/lintpkgsrc ${PREFIX}/bin/lintpkgsrc
                     68:        ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash ${PREFIX}/bin/plist-clash
1.9       abs        69:        ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.0 ${PREFIX}/man/cat1
                     70:        ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.1 ${PREFIX}/man/man1
                     71:        ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${PREFIX}/man/cat1
1.1       tsarna     72:        ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${PREFIX}/man/man1
                     73:
                     74: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>