2001-08-25 07:23:46 -04:00
|
|
|
#-*- mode: Fundamental; tab-width: 4; -*-
|
|
|
|
# ex:ts=4 sw=4 filetype=make:
|
2003-02-15 14:59:35 -05:00
|
|
|
# $OpenBSD: gnu.port.mk,v 1.12 2003/02/15 19:59:35 espie Exp $
|
2001-08-25 07:23:46 -04:00
|
|
|
# Based on bsd.port.mk, originally by Jordan K. Hubbard.
|
|
|
|
# This file is in the public domain.
|
|
|
|
|
2002-03-15 20:09:23 -05:00
|
|
|
AUTOCONF_NEW?= No
|
2003-02-15 11:38:48 -05:00
|
|
|
|
|
|
|
MODGNU_AUTOCONF_DEPENDS= ::devel/metaauto \
|
|
|
|
::devel/autoconf/${AUTOCONF_VERSION}
|
|
|
|
MODGNU_AUTOMAKE_DEPENDS= ::devel/automake
|
|
|
|
|
2002-03-15 20:09:23 -05:00
|
|
|
.if ${CONFIGURE_STYLE:L:Mautomake}
|
2003-02-15 11:38:48 -05:00
|
|
|
BUILD_DEPENDS+= ${MODGNU_AUTOMAKE_DEPENDS}
|
2002-03-15 20:09:23 -05:00
|
|
|
.endif
|
|
|
|
.if ${CONFIGURE_STYLE:L:Mautoupdate}
|
|
|
|
CONFIGURE_STYLE+=autoconf
|
|
|
|
.endif
|
2003-02-15 11:38:48 -05:00
|
|
|
|
2002-03-15 20:09:23 -05:00
|
|
|
.if ${CONFIGURE_STYLE:L:Mautoconf}
|
|
|
|
. if ${AUTOCONF_NEW:L} == "yes"
|
2003-02-15 09:06:58 -05:00
|
|
|
AUTOCONF_VERSION=2.52
|
2002-03-15 20:09:23 -05:00
|
|
|
. else
|
2003-02-15 09:06:58 -05:00
|
|
|
AUTOCONF_VERSION?=2.13
|
2002-03-15 20:09:23 -05:00
|
|
|
. endif
|
2003-02-15 11:38:48 -05:00
|
|
|
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS}
|
2003-02-15 09:06:58 -05:00
|
|
|
AUTOCONF?= autoconf
|
|
|
|
AUTOUPDATE?= autoupdate
|
|
|
|
AUTOHEADER?= autoheader
|
2002-03-15 20:09:23 -05:00
|
|
|
AUTOCONF_DIR?=${WRKSRC}
|
|
|
|
# missing ?= not an oversight
|
2003-02-15 09:06:58 -05:00
|
|
|
AUTOCONF_ENV=PATH=${PORTPATH} AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
|
|
|
MAKE_ENV+=AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
2002-03-15 20:09:23 -05:00
|
|
|
.endif
|
|
|
|
|
2001-09-24 18:30:03 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS?=${WRKSRC}
|
2001-09-16 10:56:42 -04:00
|
|
|
|
2001-09-24 18:30:03 -04:00
|
|
|
MODGNU_configure =
|
|
|
|
.for _d in ${MODGNU_CONFIG_GUESS_DIRS}
|
|
|
|
MODGNU_configure += cp -f ${PORTSDIR}/infrastructure/db/config.guess ${_d};
|
2001-09-30 13:14:33 -04:00
|
|
|
MODGNU_configure += chmod a+rx ${_d}/config.guess;
|
2002-03-02 20:23:23 -05:00
|
|
|
MODGNU_configure += cp -f ${PORTSDIR}/infrastructure/db/config.sub ${_d};
|
|
|
|
MODGNU_configure += chmod a+rx ${_d}/config.sub;
|
2001-09-24 18:30:03 -04:00
|
|
|
.endfor
|
|
|
|
MODGNU_configure += ${MODSIMPLE_configure}
|
2001-09-02 22:00:48 -04:00
|
|
|
|
2001-08-25 07:23:46 -04:00
|
|
|
.if ${CONFIGURE_STYLE:L:Mdest}
|
|
|
|
CONFIGURE_ARGS+= --prefix='$${${DESTDIRNAME}}${PREFIX}'
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --prefix='${PREFIX}'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if empty(CONFIGURE_STYLE:L:Mold)
|
|
|
|
. if ${CONFIGURE_STYLE:L:Mdest}
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir='$${${DESTDIRNAME}}${SYSCONFDIR}'
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir='${SYSCONFDIR}'
|
|
|
|
. endif
|
|
|
|
.endif
|
2001-09-30 13:14:33 -04:00
|
|
|
|
|
|
|
REGRESS_TARGET?= check
|
2002-03-15 20:09:23 -05:00
|
|
|
|
2003-02-15 09:06:58 -05:00
|
|
|
PATCH_CHECK_ONLY?= No
|
2002-03-15 20:09:23 -05:00
|
|
|
.if ${PATCH_CHECK_ONLY:L} != "yes"
|
|
|
|
. if ${CONFIGURE_STYLE:L:Mautoupdate}
|
2002-03-17 22:18:24 -05:00
|
|
|
MODGNU_post-patch+= cd ${AUTOCONF_DIR} && ${SETENV} ${AUTOCONF_ENV} ${AUTOUPDATE};
|
2002-03-15 20:09:23 -05:00
|
|
|
. endif
|
|
|
|
. if ${CONFIGURE_STYLE:L:Mautoconf}
|
2002-03-17 22:18:24 -05:00
|
|
|
MODGNU_post-patch+= cd ${AUTOCONF_DIR} && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF};
|
2002-03-15 20:09:23 -05:00
|
|
|
. 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
|
|
|
|
|