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

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

1.332   ! adam        1: # $NetBSD: Makefile,v 1.331 2006/02/24 21:59:49 rillig Exp $
1.1       tsarna      2: #
                      3:
1.329     rillig      4: DISTNAME=      pkglint-4.57
1.305     rillig      5: CATEGORIES=    pkgtools
1.112     zuntum      6: MASTER_SITES=  # empty
                      7: DISTFILES=     # empty
1.1       tsarna      8:
1.230     rillig      9: MAINTAINER=    rillig@NetBSD.org
1.238     rillig     10: HOMEPAGE=      http://www.netbsd.org/Documentation/pkgsrc/
1.112     zuntum     11: COMMENT=       Verifier for NetBSD packages and complete pkgsrc tree
1.101     hubertf    12:
1.317     rillig     13: DEPENDS+=      digest>=20010101:../../pkgtools/digest
1.305     rillig     14: DEPENDS+=      p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
1.1       tsarna     15:
1.174     jlam       16: PKG_INSTALLATION_TYPES=        overwrite pkgviews
1.1       tsarna     17:
1.245     jlam       18: USE_TOOLS+=    perl:run
1.174     jlam       19:
1.176     agc        20: WRKSRC=                ${WRKDIR}
1.1       tsarna     21: NO_CHECKSUM=   yes
1.238     rillig     22: NO_BUILD=      yes
1.178     markd      23: USE_LANGUAGES= # empty
1.1       tsarna     24:
1.331     rillig     25: INSTALLATION_DIRS=     bin ${PKGMANDIR:Q}/cat1 ${PKGMANDIR:Q}/man1 share/pkglint
1.174     jlam       26:
1.207     wiz        27: SUBST_CLASSES+=                pkglint
1.240     rillig     28: SUBST_STAGE.pkglint=   post-configure
1.207     wiz        29: SUBST_FILES.pkglint+=  lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl
                     30: SUBST_FILES.pkglint+=  pkglint.0 pkglint.1 pkglint.pl
1.322     rillig     31: SUBST_FILES.pkglint+=  plist-clash.pl
1.302     rillig     32: .if defined(BATCH)
1.332   ! adam       33: SUBST_SED.pkglint+=    -e 's|@PKGSRCDIR@|/usr/pkgsrc|g'
1.302     rillig     34: .else
1.332   ! adam       35: SUBST_SED.pkglint+=    -e 's|@PKGSRCDIR@|${PKGSRCDIR:Q}|g'
1.302     rillig     36: .endif
1.332   ! adam       37: SUBST_SED.pkglint+=    -e 's|@PREFIX@|${PREFIX:Q}|g'
        !            38: SUBST_SED.pkglint+=    -e 's|@DISTVER@|${DISTNAME:S/pkglint-//:Q}|g'
        !            39: SUBST_SED.pkglint+=    -e 's|@MAKE@|${MAKE:Q}|g'
        !            40: SUBST_SED.pkglint+=    -e 's|@PERL@|${PERL5:Q}|g'
        !            41: SUBST_SED.pkglint+=    -e 's|@DATADIR@|${PREFIX:Q}/share/pkglint|g'
1.180     jschauma   42:
1.8       agc        43: .include "../../mk/bsd.prefs.mk"
                     44:
1.325     rillig     45: # Note: This target is only intended for use by the pkglint author.
                     46: .PHONY: quick-install
                     47: quick-install:
                     48:        ${RM} -rf ${WRKSRC:Q}
                     49:        ${MKDIR} ${WRKSRC:Q}
1.326     rillig     50:        ${MAKE} do-extract subst-pkglint do-install post-install
1.325     rillig     51:
1.186     jschauma   52: do-extract:
1.320     rillig     53:        cd ${FILESDIR:Q} && ${CP} lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl pkglint.0 pkglint.1 pkglint.pl plist-clash.pl ${WRKSRC:Q}
1.186     jschauma   54:
1.1       tsarna     55: do-install:
1.320     rillig     56:        ${INSTALL_SCRIPT} ${WRKSRC:Q}/pkglint.pl ${PREFIX:Q}/bin/pkglint
                     57:        ${INSTALL_SCRIPT} ${WRKSRC:Q}/lintpkgsrc.pl ${PREFIX:Q}/bin/lintpkgsrc
                     58:        ${INSTALL_SCRIPT} ${WRKSRC:Q}/plist-clash.pl ${PREFIX:Q}/bin/plist-clash
1.330     reed       59:        ${INSTALL_MAN} ${WRKSRC:Q}/lintpkgsrc.0 ${PREFIX:Q}/${PKGMANDIR:Q}/cat1
1.238     rillig     60: .if !empty(MANINSTALL:Mmaninstall)
1.331     rillig     61:        ${INSTALL_MAN} ${WRKSRC:Q}/lintpkgsrc.1 ${PREFIX:Q}/${PKGMANDIR:Q}/man1
1.330     reed       62:        ${INSTALL_MAN} ${WRKSRC:Q}/pkglint.1 ${PREFIX:Q}/${PKGMANDIR:Q}/man1
1.238     rillig     63: .endif
1.330     reed       64:        ${INSTALL_MAN} ${WRKSRC:Q}/pkglint.0 ${PREFIX:Q}/${PKGMANDIR:Q}/cat1
1.320     rillig     65:        ${INSTALL_DATA} ${FILESDIR:Q}/makevars.map ${PREFIX:Q}/share/pkglint/
                     66:        ${INSTALL_DATA} ${FILESDIR:Q}/deprecated.map ${PREFIX:Q}/share/pkglint/
1.1       tsarna     67:
1.247     rillig     68: post-install:
1.320     rillig     69:        ${PREFIX:Q}/bin/pkglint -q 1>&2
1.247     rillig     70:
1.1       tsarna     71: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>