Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / pkgtools / pkg_filecheck / Makefile
blob1bade6e986d5583d573d4b4c78ca8ee148e5a965
1 # $NetBSD: Makefile,v 1.33 2012/09/11 23:19:36 asau Exp $
4 DISTNAME= pkg_filecheck-0.4
5 PKGREVISION= 1
6 CATEGORIES= pkgtools devel
7 MASTER_SITES= # empty
8 DISTFILES= # empty
10 MAINTAINER= pkgsrc-users@NetBSD.org
11 #HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/
12 COMMENT= Check for files not owned by any package
14 WRKSRC= ${WRKDIR}
15 USE_TOOLS+= perl:run
16 USE_FEATURES= fts_open
18 FILES_SUBST+= X11PREFIX=${X11PREFIX:Q}
19 FILES_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q}
20 CONF_FILES= ${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf \
21 ${PKG_SYSCONFDIR}/pkg_filecheck.conf
23 INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 \
24 share/examples/pkg_filecheck
26 SUBST_CLASSES+= paths
27 SUBST_FILES.paths= builddb.pl builddb.1 pkg_filecheck.conf
28 SUBST_FILES.paths+= pkg_filecheck.conf.5 pkg_filecheck.c pkg_filecheck.1
29 SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
30 SUBST_SED.paths+= -e 's,@PERL5@,${PERL5},g'
31 SUBST_SED.paths+= -e 's,@X11PREFIX@,${X11PREFIX},g'
32 SUBST_SED.paths+= -e 's,@PKG_DBDIR@,${PKG_DBDIR},g'
33 SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
34 SUBST_STAGE.paths= post-patch
36 post-extract:
37 .for f in builddb.pl builddb.1 pkg_filecheck.conf pkg_filecheck.conf.5 \
38 pkg_filecheck.c pkg_filecheck.1
39 ${CP} ${FILESDIR}/${f} ${WRKSRC}/${f}
40 .endfor
42 do-build:
43 cd ${WRKSRC} \
44 && ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${BDB_LIBS} \
45 -o pkg_filecheck pkg_filecheck.c ${LIBS}
47 do-install:
48 ${INSTALL_SCRIPT} ${WRKSRC}/builddb.pl ${DESTDIR}${PREFIX}/bin/builddb
49 ${INSTALL_PROGRAM} ${WRKSRC}/pkg_filecheck ${DESTDIR}${PREFIX}/bin/pkg_filecheck
50 ${INSTALL_MAN} ${WRKSRC}/builddb.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
51 ${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
52 ${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
53 ${INSTALL_DATA} ${WRKSRC}/pkg_filecheck.conf \
54 ${DESTDIR}${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf
57 .include "../../mk/bdb.buildlink3.mk"
58 .include "../../mk/bsd.pkg.mk"