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

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

1.366   ! rillig      1: # $NetBSD: Makefile,v 1.365 2007/10/07 12:59:14 kano Exp $
1.1       tsarna      2: #
                      3:
1.363     joerg       4: DISTNAME=      pkglint-4.79
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.365     kano       10: HOMEPAGE=      http://www.NetBSD.org/docs/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.357     rillig     15: DEPENDS+=      p5-enum>=1.016:../../devel/p5-enum
1.334     rillig     16: DEPENDS+=      p5-pkgsrc-Dewey>=1.0:../../pkgtools/p5-pkgsrc-Dewey
1.1       tsarna     17:
1.174     jlam       18: PKG_INSTALLATION_TYPES=        overwrite pkgviews
1.354     joerg      19: PKG_DESTDIR_SUPPORT=   user-destdir
1.1       tsarna     20:
1.176     agc        21: WRKSRC=                ${WRKDIR}
1.1       tsarna     22: NO_CHECKSUM=   yes
1.238     rillig     23: NO_BUILD=      yes
1.343     rillig     24: USE_LANGUAGES= # none
1.1       tsarna     25:
1.359     rillig     26: INSTALLATION_DIRS_FROM_PLIST=  yes
1.174     jlam       27:
1.360     rillig     28: .include "../../mk/bsd.prefs.mk"
                     29:
1.207     wiz        30: SUBST_CLASSES+=                pkglint
1.240     rillig     31: SUBST_STAGE.pkglint=   post-configure
1.207     wiz        32: SUBST_FILES.pkglint+=  lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl
1.356     rillig     33: SUBST_FILES.pkglint+=  pkglint.pl
1.322     rillig     34: SUBST_FILES.pkglint+=  plist-clash.pl
1.302     rillig     35: .if defined(BATCH)
1.333     rillig     36: SUBST_SED.pkglint+=    -e s\|@PKGSRCDIR@\|/usr/pkgsrc\|g
1.302     rillig     37: .else
1.336     rillig     38: SUBST_SED.pkglint+=    -e s\|@PKGSRCDIR@\|${PKGSRCDIR}\|g
1.302     rillig     39: .endif
1.336     rillig     40: SUBST_SED.pkglint+=    -e s\|@PREFIX@\|${PREFIX}\|g
1.333     rillig     41: SUBST_SED.pkglint+=    -e s\|@DISTVER@\|${DISTNAME:S/pkglint-//:Q}\|g
                     42: SUBST_SED.pkglint+=    -e s\|@MAKE@\|${MAKE:Q}\|g
                     43: SUBST_SED.pkglint+=    -e s\|@PERL@\|${PERL5:Q}\|g
1.336     rillig     44: SUBST_SED.pkglint+=    -e s\|@DATADIR@\|${PREFIX}/share/pkglint\|g
1.180     jschauma   45:
1.325     rillig     46: # Note: This target is only intended for use by the pkglint author.
                     47: .PHONY: quick-install
                     48: quick-install:
1.336     rillig     49:        ${RM} -rf ${WRKSRC}
                     50:        ${MKDIR} ${WRKSRC}
1.356     rillig     51:        ${MAKE} do-extract subst-pkglint do-install selftest clean
1.325     rillig     52:
1.186     jschauma   53: do-extract:
1.336     rillig     54:        cd ${FILESDIR} && ${CP} lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl pkglint.0 pkglint.1 pkglint.pl plist-clash.pl ${WRKSRC}
1.186     jschauma   55:
1.1       tsarna     56: do-install:
1.354     joerg      57:        ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${DESTDIR}${PREFIX}/bin/pkglint
                     58:        ${INSTALL_SCRIPT} ${WRKSRC}/lintpkgsrc.pl ${DESTDIR}${PREFIX}/bin/lintpkgsrc
                     59:        ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${DESTDIR}${PREFIX}/bin/plist-clash
1.364     rillig     60: .if !empty(MANINSTALL:Mcatinstall)
1.354     joerg      61:        ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
1.364     rillig     62:        ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
                     63: .endif
1.238     rillig     64: .if !empty(MANINSTALL:Mmaninstall)
1.354     joerg      65:        ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
                     66:        ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
1.238     rillig     67: .endif
1.354     joerg      68:        ${INSTALL_DATA} ${FILESDIR}/makevars.map ${DESTDIR}${PREFIX}/share/pkglint/
                     69:        ${INSTALL_DATA} ${FILESDIR}/deprecated.map ${DESTDIR}${PREFIX}/share/pkglint/
1.247     rillig     70:
1.356     rillig     71: selftest: .PHONY
                     72:        ${LOCALBASE}/bin/pkglint
                     73:
1.1       tsarna     74: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>