Use SUBST framework.

This commit is contained in:
joerg 2006-01-06 16:07:39 +00:00
parent 68689bb0f3
commit deb9759c0d

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2005/12/29 06:22:20 jlam Exp $
# $NetBSD: Makefile,v 1.12 2006/01/06 16:07:39 joerg Exp $
#
DISTNAME= larswm-7.5.3
@ -23,13 +23,10 @@ CONF_FILES= ${EGDIR}/sample.larswmrc ${PKG_SYSCONFDIR}/larswmrc
CPPFLAGS+= -DPKG_SYSCONFDIR=\"${PKG_SYSCONFDIR:Q}\"
post-patch:
@cd ${WRKSRC} && \
( \
${MV} larswm.man larswm.man.orig; \
${SED} ${FILES_SUBST_SED} larswm.man.orig > \
larswm.man; \
)
SUBST_CLASSES+= paths
SUBST_FILES.paths= larswm.man
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
SUBST_STAGE.paths= post-patch
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/larswm