From owner-freebsd-ports Sat Aug 31 22:54:28 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E8AD37B400 for ; Sat, 31 Aug 2002 22:54:25 -0700 (PDT) Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.8.210.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49EC443E65 for ; Sat, 31 Aug 2002 22:54:24 -0700 (PDT) (envelope-from alane@wwweasel.geeksrus.net) Received: from wwweasel.geeksrus.net (alane@localhost [127.0.0.1]) by wwweasel.geeksrus.net (8.12.5/8.12.5) with ESMTP id g815sJe6069510; Sun, 1 Sep 2002 01:54:19 -0400 (EDT) (envelope-from alane@wwweasel.geeksrus.net) Received: (from alane@localhost) by wwweasel.geeksrus.net (8.12.5/8.12.5/Submit) id g815sJkP069509; Sun, 1 Sep 2002 01:54:19 -0400 (EDT) (envelope-from alane) Date: Sun, 1 Sep 2002 01:54:19 -0400 From: Alan E To: ade#freebsd.org@wwweasel.geeksrus.net Cc: portmeg@wwweasel.geeksrus.net, FreeBSD Ports List Subject: Test code for autofsk tools in bsd.port.mk Message-ID: <20020901055419.GA55634@wwweasel.geeksrus.net> Reply-To: alane@geeksrus.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-message-flag: Magic 8-Ball says "Outlook not so good." I'll ask it about Exchange next. User-Agent: Mutt/1.5.1i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This not a patch, rather it replaces all AUTO* stuff until the LIBTOOL starts. Seems to mwork find for me, and it is totally backware compatible with the existing code and no effects on any ports. ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<== # Proof of concept for autotools versioning using PATH # AlanE .if defined(USE_AUTOMAKE) || defined(USE_AUTOMAKE_VER) USE_AUTOMAKE?= yes USE_AUTOMAKE_VER?= 14 .if ${USE_AUTOMAKE_VER} == 14 AUTOMAKE_ARGS+= -i ACLOCAL_DIR= ${LOCALBASE}/share/automake14/aclocal AUTOMAKE_DIR= ${LOCALBASE}/share/automake14/automake _AUTOMAKE_PATH= ${LOCALBASE}/libexec/automake14 BUILD_DEPENDS+= automake-14:${PORTSDIR}/devel/automake14 USE_AUTOCONF_VER= 213 .else AUTOMAKE_DIR= ${LOCALBASE}/share/automake BUILD_DEPENDS+= automake:${PORTSDIR}/devel/automake USE_AUTOCONF_VER= current .endif .endif .if defined(USE_AUTOCONF) || defined(USE_AUTOCONF_VER) USE_AUTOCONF?= yes USE_AUTOCONF_VER?= 213 .if ${USE_AUTOCONF_VER} == 213 _AUTOCONF_PATH= ${LOCALBASE}/libexec/autoconf213 AUTOCONF_DIR= ${LOCALBASE}/share/autoconf213 BUILD_DEPENDS+= autoconf-213:${PORTSDIR}/devel/autoconf213 .else AUTOCONF_DIR= ${LOCALBASE}/share/autoconf BUILD_DEPENDS+= autoconf:${PORTSDIR}/devel/autoconf .endif .endif .if defined(USE_AUTOMAKE_VER) ACLOCAL= aclocal AUTOMAKE= automake GNU_CONFIGURE= yes .endif .if defined(USE_AUTOCONF_VER) AUTOCONF= autoconf AUTOHEADER= autoheader AUTORECONF= autoreconf AUTOSCAN= autoscan AUTOUPDATE= autoupdate AUTOIFNAMES= ifnames GNU_CONFIGURE= yes .endif .if defined(_AUTOCONF_PATH) && defined(_AUTOMAKE_PATH) _AUTOTOOLS_PATH= ${_AUTOMAKE_PATH}:${_AUTOCONF_PATH} .elsif defined(_AUTOCONF_PATH) _AUTOTOOLS_PATH= ${_AUTOCONF_PATH} .endif .if defined(_AUTOTOOLS_PATH) MAKE_ENV+= PATH=${_AUTOTOOLS_PATH}:$$PATH CONFIGURE_ENV+= PATH=${_AUTOTOOLS_PATH}:$$PATH .endif ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<== -- AlanE KDE-FreeBSD Team (http://freebsd.kde.org/) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message