fix so that variable definitions work even in the presence of subpackage=c++
This commit is contained in:
parent
ad39c944fc
commit
3d6e1eba81
@ -1,6 +1,6 @@
|
||||
#-*- mode: Makefile; tab-width: 4; -*-
|
||||
# ex:ts=4 sw=4 filetype=make:
|
||||
# $OpenBSD: bsd.port.mk,v 1.840 2006/11/26 20:02:28 espie Exp $
|
||||
# $OpenBSD: bsd.port.mk,v 1.841 2006/11/26 23:39:41 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 $
|
||||
#
|
||||
@ -710,21 +710,21 @@ _SED_SUBST+=-e 's,$${FLAVORS},${FLAVOR_EXT},g' -e 's,$$\\,$$,g'
|
||||
# find out the most appropriate PLIST source
|
||||
.if !defined(PLIST${SUBPACKAGE})
|
||||
. if exists(${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}.${ARCH})
|
||||
PLIST${SUBPACKAGE}= ${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}.${ARCH}
|
||||
PLIST${SUBPACKAGE} = ${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}.${ARCH}
|
||||
. elif exists(${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}.${MACHINE_ARCH})
|
||||
PLIST${SUBPACKAGE}= ${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}.${MACHINE_ARCH}
|
||||
PLIST${SUBPACKAGE} = ${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}.${MACHINE_ARCH}
|
||||
. elif ${NO_SHARED_LIBS:L} == "yes" && exists(${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}.noshared)
|
||||
PLIST${SUBPACKAGE}= ${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}.noshared
|
||||
PLIST${SUBPACKAGE} = ${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}.noshared
|
||||
. elif exists(${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT})
|
||||
PLIST${SUBPACKAGE}= ${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}
|
||||
PLIST${SUBPACKAGE} = ${PKGDIR}/PLIST${SUBPACKAGE}${FLAVOR_EXT}
|
||||
. elif exists(${PKGDIR}/PLIST${SUBPACKAGE}.${ARCH})
|
||||
PLIST${SUBPACKAGE}= ${PKGDIR}/PLIST${SUBPACKAGE}.${ARCH}
|
||||
PLIST${SUBPACKAGE} = ${PKGDIR}/PLIST${SUBPACKAGE}.${ARCH}
|
||||
. elif exists(${PKGDIR}/PLIST${SUBPACKAGE}.${MACHINE_ARCH})
|
||||
PLIST${SUBPACKAGE}= ${PKGDIR}/PLIST${SUBPACKAGE}.${MACHINE_ARCH}
|
||||
PLIST${SUBPACKAGE} = ${PKGDIR}/PLIST${SUBPACKAGE}.${MACHINE_ARCH}
|
||||
. elif ${NO_SHARED_LIBS:L} == "yes" && exists(${PKGDIR}/PLIST${SUBPACKAGE}.noshared)
|
||||
PLIST${SUBPACKAGE}= ${PKGDIR}/PLIST${SUBPACKAGE}.noshared
|
||||
PLIST${SUBPACKAGE} = ${PKGDIR}/PLIST${SUBPACKAGE}.noshared
|
||||
. else
|
||||
PLIST${SUBPACKAGE}= ${PKGDIR}/PLIST${SUBPACKAGE}
|
||||
PLIST${SUBPACKAGE} = ${PKGDIR}/PLIST${SUBPACKAGE}
|
||||
. endif
|
||||
.endif
|
||||
|
||||
@ -742,7 +742,7 @@ MESSAGE${SUBPACKAGE}?= ${PKGDIR}/MESSAGE${SUBPACKAGE}
|
||||
UNMESSAGE${SUBPACKAGE}?= ${PKGDIR}/UNMESSAGE${SUBPACKAGE}
|
||||
.endif
|
||||
|
||||
DESCR${SUBPACKAGE}?= ${PKGDIR}/DESCR${SUBPACKAGE}
|
||||
DESCR${SUBPACKAGE} ?= ${PKGDIR}/DESCR${SUBPACKAGE}
|
||||
|
||||
MTREE_FILE?=
|
||||
MTREE_FILE+=${PORTSDIR}/infrastructure/db/fake.mtree
|
||||
@ -1197,12 +1197,12 @@ _REGRESS_DEP= ${_REGRESS_DEP2:C/[^:]*://}
|
||||
|
||||
.if defined(MULTI_PACKAGES)
|
||||
. for _S in ${MULTI_PACKAGES}
|
||||
_BUILD_DEP3${_S}=${_BUILD_DEP3}
|
||||
_RUN_DEP3${_S}= ${RUN_DEPENDS${_S}:C/^[^:]*:([^:]*:[^:]*).*$/\1/}
|
||||
_BUILD_DEP3${_S} =${_BUILD_DEP3}
|
||||
_RUN_DEP3${_S} = ${RUN_DEPENDS${_S}:C/^[^:]*:([^:]*:[^:]*).*$/\1/}
|
||||
. if ${NO_SHARED_LIBS:L} != "yes"
|
||||
_LIB_DEP3${_S}= ${LIB_DEPENDS${_S}}
|
||||
_LIB_DEP3${_S} = ${LIB_DEPENDS${_S}}
|
||||
. else
|
||||
_LIB_DEP3${_S}=
|
||||
_LIB_DEP3${_S} =
|
||||
. endif
|
||||
. endfor
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user