From owner-svn-ports-all@FreeBSD.ORG Thu Sep 6 20:59:28 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F189106566C; Thu, 6 Sep 2012 20:59:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 394388FC0C; Thu, 6 Sep 2012 20:59:28 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q86KxRtg083667; Thu, 6 Sep 2012 20:59:27 GMT (envelope-from linimon@svn.freebsd.org) Received: (from linimon@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q86KxR07083664; Thu, 6 Sep 2012 20:59:27 GMT (envelope-from linimon@svn.freebsd.org) Message-Id: <201209062059.q86KxR07083664@svn.freebsd.org> From: Mark Linimon Date: Thu, 6 Sep 2012 20:59:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r303789 - head/Mk X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 20:59:28 -0000 Author: linimon Date: Thu Sep 6 20:59:27 2012 New Revision: 303789 URL: http://svn.freebsd.org/changeset/ports/303789 Log: - Remove obsolete USE_XLIB and MACHINE_ARCH definitions [1], [4] - Include top-level Makefile.inc from correct directory [2] - Add new target add-plist-buildinfo for package build details [3] PR: ports/152871 [1] PR: ports/164207 [2] PR: ports/162397 [3] PR: ports/167677 [4] Submitted by: eadler [1], [4]; glarkin [2]; jhelfman@experts-exchange.com [3] Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Thu Sep 6 20:16:47 2012 (r303788) +++ head/Mk/bsd.port.mk Thu Sep 6 20:59:27 2012 (r303789) @@ -38,9 +38,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # different actions for different values. # # ARCH - The architecture of the target machine, such as would be -# returned by "uname -p". (Note: Ports should test against -# ARCH, and not the host machine's architecture which is -# MACHINE_ARCH, to enable ports to be cross-built.) +# returned by "uname -p". # OPSYS - Portability clause. This is the operating system the # makefile is being used on. Automatically set to # "FreeBSD," "NetBSD," or "OpenBSD" as appropriate. @@ -359,8 +357,6 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # USE_IMAKE - If set, this port uses imake. # XMKMF - Set to path of `xmkmf' if not in $PATH # Default: xmkmf -a -# USE_XLIB - If set, this port uses the X libraries. In the USE_LINUX -# case the linux X libraries are referenced. # USE_DISPLAY - If set, this ports requires a (virtual) X11 environment # setup. If the environment variable DISPLAY Is not set, # then an extra build dependency on Xvfb is added. Further, @@ -1192,9 +1188,6 @@ MAINTAINER?= ports@FreeBSD.org ARCH!= ${UNAME} -p .endif -# Kludge for pre-3.0 systems -MACHINE_ARCH?= i386 - # Get the operating system type .if !defined(OPSYS) OPSYS!= ${UNAME} -s @@ -2105,21 +2098,12 @@ IGNORE= uses unknown USE_BISON construct .include "${PORTSDIR}/Mk/bsd.cmake.mk" .endif -.if exists(${PORTSDIR}/../Makefile.inc) -.include "${PORTSDIR}/../Makefile.inc" +.if exists(${PORTSDIR}/Makefile.inc) +.include "${PORTSDIR}/Makefile.inc" USE_SUBMAKE= yes .endif -.if defined(USE_XLIB) -. if defined(USE_LINUX) -RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1:${PORTSDIR}/x11/linux-xorg-libs -. else -BUILD_DEPENDS+= ${LOCALBASE}/libdata/xorg/libraries:${X_LIBRARIES_PORT} -RUN_DEPENDS+= ${LOCALBASE}/libdata/xorg/libraries:${X_LIBRARIES_PORT} -. endif -.endif - -.if defined(USE_XLIB) || defined(USE_XORG) +.if defined(USE_XORG) # Add explicit X options to avoid problems with false positives in configure .if defined(GNU_CONFIGURE) CONFIGURE_ARGS+=--x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include @@ -4333,10 +4317,10 @@ _INSTALL_SEQ= install-message check-inst _INSTALL_SUSEQ= check-umask install-mtree pre-su-install \ pre-su-install-script create-users-groups do-install \ install-desktop-entries install-license install-rc-script \ - post-install post-install-script add-plist-info \ - add-plist-docs add-plist-examples add-plist-data \ - add-plist-post fix-plist-sequence compress-man \ - install-ldconfig-file fake-pkg security-check + post-install post-install-script add-plist-buildinfo \ + add-plist-info add-plist-docs add-plist-examples \ + add-plist-data add-plist-post fix-plist-sequence \ + compress-man install-ldconfig-file fake-pkg security-check _PACKAGE_DEP= install _PACKAGE_SEQ= package-message pre-package pre-package-script \ do-package post-package-script @@ -5814,6 +5798,13 @@ add-plist-data: .endif .endif +.if defined(PACKAGE_BUILDING) +.if !target(add-plist-buildinfo) +add-plist-buildinfo: + @${ECHO_CMD} "@comment Build details: ${BUILDHOST}|${JAIL}|${BUILD}|${PORTSTREE}|${BUILDDATE}" >> ${TMPPLIST} +.endif +.endif + .if !target(add-plist-info) add-plist-info: # Process GNU INFO files at package install/deinstall time