- add check-register, that basically does print-plist
- switch motif to WANTLIB - start warning about old style LIB_DEPENDS. It's time !
This commit is contained in:
parent
c401210b5d
commit
a4f88880eb
@ -1,6 +1,6 @@
|
|||||||
#-*- mode: Makefile; tab-width: 4; -*-
|
#-*- mode: Makefile; tab-width: 4; -*-
|
||||||
# ex:ts=4 sw=4 filetype=make:
|
# ex:ts=4 sw=4 filetype=make:
|
||||||
# $OpenBSD: bsd.port.mk,v 1.1052 2010/10/28 22:39:44 sthen Exp $
|
# $OpenBSD: bsd.port.mk,v 1.1053 2010/11/07 00:03:38 espie Exp $
|
||||||
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp 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 $
|
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
|
||||||
#
|
#
|
||||||
@ -477,18 +477,22 @@ USE_MOTIF ?= No
|
|||||||
|
|
||||||
.if ${USE_MOTIF:L} != "no"
|
.if ${USE_MOTIF:L} != "no"
|
||||||
. if ${USE_MOTIF:L} == "lesstif"
|
. if ${USE_MOTIF:L} == "lesstif"
|
||||||
LIB_DEPENDS += Xm.>=1::x11/lesstif
|
LIB_DEPENDS += ::x11/lesstif
|
||||||
|
WANTLIB += Xm.>=1
|
||||||
. elif ${USE_MOTIF:L} == "openmotif"
|
. elif ${USE_MOTIF:L} == "openmotif"
|
||||||
LIB_DEPENDS += Xm.>=2::x11/openmotif
|
LIB_DEPENDS += ::x11/openmotif
|
||||||
|
WANTLIB += Xm.>=2
|
||||||
. elif ${USE_MOTIF:L} == "any" || ${USE_MOTIF:L} == "yes"
|
. elif ${USE_MOTIF:L} == "any" || ${USE_MOTIF:L} == "yes"
|
||||||
FLAVORS += lesstif
|
FLAVORS += lesstif
|
||||||
. if ${FLAVOR:L:Mlesstif} && ${FLAVOR:L:Mmotif}
|
. if ${FLAVOR:L:Mlesstif} && ${FLAVOR:L:Mmotif}
|
||||||
ERRORS += "Fatal: choose motif or lesstif, not both."
|
ERRORS += "Fatal: choose motif or lesstif, not both."
|
||||||
. endif
|
. endif
|
||||||
. if ${FLAVOR:L:Mlesstif}
|
. if ${FLAVOR:L:Mlesstif}
|
||||||
LIB_DEPENDS += Xm.>=1::x11/lesstif
|
LIB_DEPENDS += ::x11/lesstif
|
||||||
|
WANTLIB += Xm.>=1
|
||||||
. else
|
. else
|
||||||
LIB_DEPENDS += Xm.>=2::x11/openmotif
|
LIB_DEPENDS += ::x11/openmotif
|
||||||
|
WANTLIB += Xm.>=2
|
||||||
. endif
|
. endif
|
||||||
. else
|
. else
|
||||||
ERRORS += "Fatal: Unknown USE_MOTIF=${USE_MOTIF} settings."
|
ERRORS += "Fatal: Unknown USE_MOTIF=${USE_MOTIF} settings."
|
||||||
@ -1590,6 +1594,22 @@ _grab_libs_from_plist = sed -n -e '/^@lib /{ s///; p; }' \
|
|||||||
### end of variable setup. Only targets now
|
### end of variable setup. Only targets now
|
||||||
###
|
###
|
||||||
|
|
||||||
|
check-register:
|
||||||
|
.if empty(PLIST_DB)
|
||||||
|
@exit 1
|
||||||
|
.else
|
||||||
|
@if cd ${.CURDIR} && ${MAKE} print-plist-with-depends | ${_PERLSCRIPT}/register-plist -p ${PLIST_DB}; then \
|
||||||
|
echo "${FULLPKGNAME${SUBPACKAGE}} okay"; \
|
||||||
|
else \
|
||||||
|
echo "${FULLPKGNAME${SUBPACKAGE}} BAD"; \
|
||||||
|
fi
|
||||||
|
.endif
|
||||||
|
|
||||||
|
check-register-all:
|
||||||
|
.for _S in ${MULTI_PACKAGES}
|
||||||
|
@cd ${.CURDIR} && SUBPACKAGE=${_S} ${MAKE} check-register
|
||||||
|
.endfor
|
||||||
|
|
||||||
.for _S in ${MULTI_PACKAGES}
|
.for _S in ${MULTI_PACKAGES}
|
||||||
|
|
||||||
${_CACHE_REPO}/${_PKGFILE${_S}}:
|
${_CACHE_REPO}/${_PKGFILE${_S}}:
|
||||||
@ -1623,6 +1643,10 @@ ${_PACKAGE_COOKIE${_S}}:
|
|||||||
. else
|
. else
|
||||||
# What PACKAGE normally does:
|
# What PACKAGE normally does:
|
||||||
@${ECHO_MSG} "===> Building package for ${FULLPKGNAME${_S}}"
|
@${ECHO_MSG} "===> Building package for ${FULLPKGNAME${_S}}"
|
||||||
|
. if ${LIB_DEPENDS${_S}:M?*\:*\:*}
|
||||||
|
@${ECHO_MSG} "WARNING: Old style LIB_DEPENDS:"
|
||||||
|
@${ECHO_MSG} "LIB_DEPENDS${_S} = ${LIB_DEPENDS${_S}}"
|
||||||
|
. endif
|
||||||
@${ECHO_MSG} "Create ${_PACKAGE_COOKIE${_S}}"
|
@${ECHO_MSG} "Create ${_PACKAGE_COOKIE${_S}}"
|
||||||
@cd ${.CURDIR} && \
|
@cd ${.CURDIR} && \
|
||||||
tmp=${_TMP_REPO}${_PKGFILE${_S}} && \
|
tmp=${_TMP_REPO}${_PKGFILE${_S}} && \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: pkgpath.mk,v 1.31 2010/10/28 11:14:23 espie Exp $
|
# $OpenBSD: pkgpath.mk,v 1.32 2010/11/07 00:03:38 espie Exp $
|
||||||
# ex:ts=4 sw=4 filetype=make:
|
# ex:ts=4 sw=4 filetype=make:
|
||||||
# pkgpath.mk - 2003 Marc Espie
|
# pkgpath.mk - 2003 Marc Espie
|
||||||
# This file is in the public domain.
|
# This file is in the public domain.
|
||||||
@ -112,7 +112,8 @@ _recursive_targets = \
|
|||||||
unlink-categories update update-or-install update-or-install-all \
|
unlink-categories update update-or-install update-or-install-all \
|
||||||
describe dump-vars homepage-links print-plist print-plist-all \
|
describe dump-vars homepage-links print-plist print-plist-all \
|
||||||
print-plist-all-with-depends print-plist-contents print-plist-libs \
|
print-plist-all-with-depends print-plist-contents print-plist-libs \
|
||||||
print-plist-with-depends show verbose-show show-size show-fake-size
|
print-plist-with-depends show verbose-show show-size show-fake-size \
|
||||||
|
check-register check-register-all
|
||||||
|
|
||||||
_dangerous_recursive_targets = \
|
_dangerous_recursive_targets = \
|
||||||
makesum plist update-patches update-plist
|
makesum plist update-patches update-plist
|
||||||
|
Loading…
Reference in New Issue
Block a user