diff options
author | rillig <rillig@pkgsrc.org> | 2006-11-19 23:11:18 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-11-19 23:11:18 +0000 |
commit | 9ae0612101f2281b87cf68b02495982b6bd6dc50 (patch) | |
tree | 716bffcfbf041cead8b2601d4de33496d33d0bd8 /graphics/cal3d-examples | |
parent | b9985e5cca51f9dd063151eef8d6be4090762168 (diff) | |
download | pkgsrc-9ae0612101f2281b87cf68b02495982b6bd6dc50.tar.gz |
Converted to the SUBST framework.
Diffstat (limited to 'graphics/cal3d-examples')
-rw-r--r-- | graphics/cal3d-examples/Makefile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/graphics/cal3d-examples/Makefile b/graphics/cal3d-examples/Makefile index 97778a7af72..df78afa9884 100644 --- a/graphics/cal3d-examples/Makefile +++ b/graphics/cal3d-examples/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2006/02/05 23:09:28 joerg Exp $ +# $NetBSD: Makefile,v 1.11 2006/11/19 23:11:18 rillig Exp $ # PKGNAME= cal3d-examples-${CAL3D_VERSION} @@ -35,18 +35,14 @@ pre-configure: ${CHMOD} 755 ${WRKSRC}/tools/converter/autogen.sh cd ${WRKSRC}/tools/converter && ./autogen.sh -post-patch: - for f in ${PATCHDATA}; do \ - ${CP} ${WRKDATADIR}/$$f ${WRKDATADIR}/$$f.pkgsrc && \ - ${SED} -e 's|@@DATADIR@@|${DATADIR}|g' ${WRKDATADIR}/$$f.pkgsrc > \ - ${WRKDATADIR}/$$f && \ - ${RM} ${WRKDATADIR}/$$f.pkgsrc; \ - ${RM} ${WRKDATADIR}/$$f.orig; \ - done +SUBST_CLASSES+= c3 +SUBST_STAGE.c3= post-configure +SUBST_FILES.c3= ${PATCHDATA:S,^,${WRKDATADIR}/,} +SUBST_SED.c3= -e 's|@@DATADIR@@|${DATADIR}|g' post-install: ${INSTALL_DATA_DIR} ${DATADIR} - cd ${WRKDATADIR} && ${PAX} -rw -pe [a-z]* ${DATADIR} + cd ${WRKDATADIR} && ${PAX} -rw -pp -s ',.*\.orig$$,,' [a-z]* ${DATADIR} .include "../../graphics/cal3d/buildlink3.mk" .include "../../graphics/Mesa/buildlink3.mk" |