move gnu dreck (autoconf, automake...) to gnu.port.mk

This commit is contained in:
espie 2002-03-16 01:09:23 +00:00
parent 7105baeb90
commit b39f70427a
2 changed files with 50 additions and 37 deletions

View File

@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.512 2002/03/16 00:54:37 espie Exp $$
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.513 2002/03/16 01:09:23 espie Exp $$
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -352,32 +352,9 @@ MAKE_PROGRAM= ${GMAKE}
.else
MAKE_PROGRAM= ${MAKE}
.endif
AUTOCONF_NEW?= No
.if ${CONFIGURE_STYLE:L:Mautomake}
.if ${CONFIGURE_STYLE:L:Mautomake} || ${CONFIGURE_STYLE:L:Mautoconf} || ${CONFIGURE_STYLE:L:Mautoupdate}
CONFIGURE_STYLE+=gnu
BUILD_DEPENDS+= ::devel/automake
.endif
.if ${CONFIGURE_STYLE:L:Mautoupdate}
CONFIGURE_STYLE+=autoconf
.endif
.if ${CONFIGURE_STYLE:L:Mautoconf}
CONFIGURE_STYLE+=gnu
. if ${AUTOCONF_NEW:L} == "yes"
BUILD_DEPENDS+= ::devel/autoconf-new
AUTOCONF?= autoconf-new
AUTOUPDATE?= autoupdate-new
AUTOHEADER?= autoheader-new
MAKE_FLAGS+= AUTOCONF='${AUTOCONF}' AUTOHEADER='${AUTOHEADER}'
FAKE_FLAGS+= AUTOCONF='${AUTOCONF}' AUTOHEADER='${AUTOHEADER}'
. else
AUTOCONF?= autoconf
AUTOUPDATE?= autoupdate
AUTOHEADER?= autoheader
BUILD_DEPENDS+= ::devel/autoconf
. endif
AUTOCONF_DIR?=${WRKSRC}
# missing ?= not an oversight
AUTOCONF_ENV=PATH=${PORTPATH}
.endif
.if defined(USE_LIBTOOL)
@ -1697,17 +1674,12 @@ ${_PATCH_COOKIE}: ${_EXTRACT_COOKIE}
.if target(post-patch)
@cd ${.CURDIR} && exec ${MAKE} post-patch
.endif
.for _m in ${MODULES}
. if defined(MOD${_m:U}_post-patch)
@${MOD${_m:U}_post-patch}
. endif
.endfor
.if ${PATCH_CHECK_ONLY:L} != "yes"
. if ${CONFIGURE_STYLE:L:Mautoupdate}
@cd ${AUTOCONF_DIR} && exec ${SETENV} ${AUTOCONF_ENV} ${AUTOUPDATE}
. endif
. if ${CONFIGURE_STYLE:L:Mautoconf}
@cd ${AUTOCONF_DIR} && exec ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
. endif
. if !${CONFIGURE_STYLE:L:Mautomake}
@ln -s /usr/bin/false ${WRKDIR}/bin/automake
@ln -s /usr/bin/false ${WRKDIR}/bin/aclocal
. endif
@${_MAKE_COOKIE} $@
.endif

View File

@ -1,9 +1,36 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
# $OpenBSD: gnu.port.mk,v 1.6 2002/03/03 01:23:23 brad Exp $
# $OpenBSD: gnu.port.mk,v 1.7 2002/03/16 01:09:23 espie Exp $
# Based on bsd.port.mk, originally by Jordan K. Hubbard.
# This file is in the public domain.
NEED_VERSION+=1.513
AUTOCONF_NEW?= No
.if ${CONFIGURE_STYLE:L:Mautomake}
BUILD_DEPENDS+= ::devel/automake
.endif
.if ${CONFIGURE_STYLE:L:Mautoupdate}
CONFIGURE_STYLE+=autoconf
.endif
.if ${CONFIGURE_STYLE:L:Mautoconf}
. if ${AUTOCONF_NEW:L} == "yes"
BUILD_DEPENDS+= ::devel/autoconf-new
AUTOCONF?= autoconf-new
AUTOUPDATE?= autoupdate-new
AUTOHEADER?= autoheader-new
MAKE_FLAGS+= AUTOCONF='${AUTOCONF}' AUTOHEADER='${AUTOHEADER}'
FAKE_FLAGS+= AUTOCONF='${AUTOCONF}' AUTOHEADER='${AUTOHEADER}'
. else
AUTOCONF?= autoconf
AUTOUPDATE?= autoupdate
AUTOHEADER?= autoheader
BUILD_DEPENDS+= ::devel/autoconf
. endif
AUTOCONF_DIR?=${WRKSRC}
# missing ?= not an oversight
AUTOCONF_ENV=PATH=${PORTPATH}
.endif
MODGNU_CONFIG_GUESS_DIRS?=${WRKSRC}
MODGNU_configure =
@ -30,3 +57,17 @@ CONFIGURE_ARGS+= --sysconfdir='${SYSCONFDIR}'
.endif
REGRESS_TARGET?= check
.if ${PATCH_CHECK_ONLY:L} != "yes"
. if ${CONFIGURE_STYLE:L:Mautoupdate}
MODGNU_post-patch+= cd ${AUTOCONF_DIR} && exec ${SETENV} ${AUTOCONF_ENV} ${AUTOUPDATE};
. endif
. if ${CONFIGURE_STYLE:L:Mautoconf}
MODGNU_post-patch+= cd ${AUTOCONF_DIR} && exec ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF};
. endif
. if !${CONFIGURE_STYLE:L:Mautomake}
MODGNU_post-patch+= ln -s /usr/bin/false ${WRKDIR}/bin/automake;
MODGNU_post-patch+= ln -s /usr/bin/false ${WRKDIR}/bin/aclocal;
. endif
.endif