Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / pkgtools / autoswc / Makefile
blobba767d753cc3d22fff2063640370ad1315dc47c0
1 # $NetBSD: Makefile,v 1.18 2009/04/09 00:48:10 joerg Exp $
3 DISTNAME= autoswc-1.6
4 CATEGORIES= pkgtools sysutils
5 MASTER_SITES= # empty
6 DISTFILES= # empty
8 MAINTAINER= jmmv@NetBSD.org
9 COMMENT= Generates system wide cache files for GNU autoconf
11 DEPENDS+= autoconf>=2.59:../../devel/autoconf
12 DEPENDS+= automake>=1.8.2:../../devel/automake
13 DEPENDS+= libtool-base>=1.5.2:../../devel/libtool-base
15 NO_CONFIGURE= YES
16 WRKSRC= ${WRKDIR}
18 PKG_SYSCONFSUBDIR= autoswc
19 CACHEDIR= /var/db/autoswc
20 MKCONF= /etc/mk.conf
21 OWN_DIRS= ${CACHEDIR}
23 EVAL_PREFIX+= PREFIX.autoconf=autoconf
24 PREFIX.autoconf_DEFAULT= ${LOCALBASE}
25 EVAL_PREFIX+= PREFIX.automake=automake
26 PREFIX.automake_DEFAULT= ${LOCALBASE}
27 EVAL_PREFIX+= PREFIX.libtool=libtool
28 PREFIX.libtool_DEFAULT= ${LOCALBASE}
30 SUBST_CLASSES+= build
31 SUBST_MESSAGE.build= Building autoswc.
32 SUBST_STAGE.build= do-build
33 SUBST_FILES.build= autoswc
34 SUBST_FILES.build+= autoswc.8
35 SUBST_FILES.build+= autoswc.mk
36 SUBST_FILES.build+= config.site
37 SUBST_SED.build= -e 's|@ACLOCAL@|${PREFIX.automake}/bin/aclocal|g'
38 SUBST_SED.build+= -e 's|@AUTOCONF@|${PREFIX.autoconf}/bin/autoconf|g'
39 SUBST_SED.build+= -e 's|@AUTOMAKE@|${PREFIX.automake}/bin/automake|g'
40 SUBST_SED.build+= -e 's|@CACHEDIR@|${CACHEDIR}|g'
41 SUBST_SED.build+= -e 's|@LIBTOOLIZE@|${PREFIX.libtool}/bin/libtoolize|g'
42 SUBST_SED.build+= -e 's|@MACHINE_GNU_PLATFORM@|${MACHINE_GNU_PLATFORM}|g'
43 SUBST_SED.build+= -e 's|@MAKE@|${MAKE}|g'
44 SUBST_SED.build+= -e 's|@MKCONF@|${MKCONF}|g'
45 SUBST_SED.build+= -e 's|@PREFIX@|${PREFIX}|g'
46 SUBST_SED.build+= -e 's|@SH@|${SH}|g'
47 SUBST_SED.build+= -e 's|@SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
49 INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin share/autoswc
51 do-extract:
52 ${CP} ${FILESDIR}/autoswc.8 ${WRKSRC}
53 ${CP} ${FILESDIR}/autoswc.mk ${WRKSRC}
54 ${CP} ${FILESDIR}/autoswc.sh ${WRKSRC}/autoswc
55 ${CP} ${FILESDIR}/config.site ${WRKSRC}
57 do-build:
58 @${DO_NADA}
60 do-install:
61 ${INSTALL_SCRIPT} ${WRKSRC}/autoswc ${DESTDIR}${PREFIX}/sbin
62 ${INSTALL_DATA} ${WRKSRC}/autoswc.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
63 ${INSTALL_DATA} ${WRKSRC}/autoswc.mk ${DESTDIR}${PREFIX}/share/autoswc
64 ${INSTALL_DATA} ${WRKSRC}/config.site ${DESTDIR}${PREFIX}/share/autoswc
65 ${INSTALL_DATA} ${FILESDIR}/configure.ac ${DESTDIR}${PREFIX}/share/autoswc
67 .include "../../mk/bsd.pkg.mk"