aboutsummaryrefslogtreecommitdiffstats
path: root/devel/autoconf213
diff options
context:
space:
mode:
authoralane <alane@FreeBSD.org>2002-10-13 19:34:51 +0800
committeralane <alane@FreeBSD.org>2002-10-13 19:34:51 +0800
commitca4c1cf0b5d5164c23c3a6dac014846dc1068616 (patch)
tree38016f64a7a401878407f0f935db797901532cb5 /devel/autoconf213
parent0c92fdf21c402abc1bbbe0616614449e35d047fd (diff)
downloadfreebsd-ports-gnome-ca4c1cf0b5d5164c23c3a6dac014846dc1068616.tar.gz
freebsd-ports-gnome-ca4c1cf0b5d5164c23c3a6dac014846dc1068616.tar.zst
freebsd-ports-gnome-ca4c1cf0b5d5164c23c3a6dac014846dc1068616.zip
1. Make nicer message is USE_AUTOCONF* defined.
2. Make post-install target actions DESTDIR-safe.
Diffstat (limited to 'devel/autoconf213')
-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>