summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2002-10-13 11:34:51 +0000
committerAlan Eldridge <alane@FreeBSD.org>2002-10-13 11:34:51 +0000
commit43cf62663b7c34cbf0182434535c99ab34da7fbc (patch)
tree7bfdbd22dae233c585e30355fea68e7fdc95a05b /devel
parentUnbreak by creating subdir under applnk if necessary. (diff)
1. Make nicer message is USE_AUTOCONF* defined.
2. Make post-install target actions DESTDIR-safe.
Notes
Notes: svn path=/head/; revision=67965
Diffstat (limited to 'devel')
-rw-r--r--devel/autoconf213/Makefile25
1 files changed, 17 insertions, 8 deletions
diff --git a/devel/autoconf213/Makefile b/devel/autoconf213/Makefile
index 904a37ab1c50..2de0af80481c 100644
--- a/devel/autoconf213/Makefile
+++ b/devel/autoconf213/Makefile
@@ -29,20 +29,29 @@ CONFIGURE_ARGS= --program-suffix=213
WRKSRC= ${WRKDIR}/autoconf
.if defined(USE_AUTOCONF) || defined(USE_AUTOCONF_VER)
-.error You have `USE_AUTOCONF' or `USE_AUTOCONF_VER' variables defined either in environment or in make(1) arguments. Please undefine and try again.
-.endif
+pre-everything:
+ @${ECHO} ===========================================================
+ @${ECHO} "You have 'USE_AUTOCONF' or 'USE_AUTOCONF_VER' variables"
+ @${ECHO} "defined either in environment or in make(1) arguments."
+ @${ECHO} "Please undefine them and try again."
+ @${ECHO} ===========================================================
+ @${FALSE}
+.endif # defined(USE_AUTOCONF) || defined(USE_AUTOCONF_VER)
post-patch:
@${RM} ${WRKSRC}/*.info* >/dev/null 2>&1 || true
post-install:
- @${CHMOD} +x ${PREFIX}/share/autoconf213/config.*
- @${INSTALL_SCRIPT} ${WRKSRC}/install-sh ${PREFIX}/share/autoconf213
- @-${RM} -fr ${PREFIX}/libexec/autoconf213
- ${MKDIR} ${PREFIX}/libexec/autoconf213
+ @${CHMOD} +x ${DESTDIR}${PREFIX}/share/autoconf213/config.*
+ @${INSTALL_SCRIPT} ${WRKSRC}/install-sh \
+ ${DESTDIR}${PREFIX}/share/autoconf213
+ @-${RM} -fr ${DESTDIR}${PREFIX}/libexec/autoconf213
+ ${MKDIR} ${DESTDIR}${PREFIX}/libexec/autoconf213
.for i in autoconf autoheader autoreconf autoscan autoupdate ifnames
- ${LN} -s ../../bin/${i}213 ${PREFIX}/libexec/autoconf213/${i}
+ ${LN} -s ../../bin/${i}213 \
+ ${DESTDIR}${PREFIX}/libexec/autoconf213/${i}
.endfor
- install-info ${PREFIX}/info/autoconf213.info ${PREFIX}/info/dir
+ install-info ${DESTDIR}${PREFIX}/info/autoconf213.info \
+ ${DESTDIR}${PREFIX}/info/dir
.include <bsd.port.mk>