From owner-freebsd-desktop@FreeBSD.ORG Thu Nov 3 20:08:11 2011 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98E701065672 for ; Thu, 3 Nov 2011 20:08:11 +0000 (UTC) (envelope-from kris@pcbsd.org) Received: from mail.iXsystems.com (newknight.ixsystems.com [206.40.55.70]) by mx1.freebsd.org (Postfix) with ESMTP id 7A53A8FC1F for ; Thu, 3 Nov 2011 20:08:11 +0000 (UTC) Received: from mail.ixsystems.com (localhost [127.0.0.1]) by mail.iXsystems.com (Postfix) with ESMTP id 3BFCD2D9 for ; Thu, 3 Nov 2011 12:48:31 -0700 (PDT) Received: from mail.iXsystems.com ([127.0.0.1]) by mail.ixsystems.com (mail.ixsystems.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 42179-08 for ; Thu, 3 Nov 2011 12:48:31 -0700 (PDT) Received: from [192.168.0.186] (75-130-56-30.static.kgpt.tn.charter.com [75.130.56.30]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.iXsystems.com (Postfix) with ESMTPSA id D10C42D4 for ; Thu, 3 Nov 2011 12:48:30 -0700 (PDT) Message-ID: <4EB2F00D.1010708@pcbsd.org> Date: Thu, 03 Nov 2011 15:48:29 -0400 From: Kris Moore User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111003 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-desktop@freebsd.org X-Enigmail-Version: undefined Content-Type: multipart/mixed; boundary="------------010706080309000009080209" Subject: CTF bsd.pbi.mk X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 20:08:11 -0000 This is a multi-part message in MIME format. --------------010706080309000009080209 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Since we are so close to 9.0, I wanted to get some initial public testing on the "make pbi" functionality of the ports tree. Attached is the bsd.pbi.mk file, put that into /usr/ports/Mk/ and then edit /usr/ports/Mk/bsd.port.mk. Look for the line: .include "${PORTSDIR}/Mk/bsd.perl.mk and add above it: .include "${PORTSDIR}/Mk/bsd.pbi.mk" After doing this, you should be able to use the commands "make pbi" & "make clean-pbi". I would suggest starting on some small CLI app for testing, like cabextract, instead of trying libreoffice on the first go ;) After the build is finished, you will end up with a pbi file in the port directory ready to be installed with pbi_add. You'll also see a pbi/ directory created in your ports dir, which contains the structure for additional meta-data that I would love to find a way to integrate into the ports tree down the road, such as mime/desktop/menu/icons, etc. -- Kris Moore PC-BSD Software iXsystems --------------010706080309000009080209 Content-Type: text/plain; name="bsd.pbi.mk" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bsd.pbi.mk" # $Id$ # # Creates a PBI file from a port with just 'make pbi' # # _PBIMAKEPORT= pbi_makeport _PBICREATE= pbi_create _PBIDIR= pbi _PBICONF= ${_PBIDIR}/pbi.conf _PBIBUILDDIR= /usr/local/pbi/${PORTNAME}-${ARCH} .PHONY: check-pbimanager pbi pbi-makeport pbi-generate pbi-create \ clean-pbi clean-pbibuild _PBIMANAGER_PKG!=which pbi_info || ${TRUE} check-pbimanager: .if empty(_PBIMANAGER_PKG) @(cd ${PORTSDIR}/ports-mgmt/pbi-manager && ${MAKE} install clean) .endif pbi: pbi-generate pbi-generate: check-pbimanager @if [ ! -d ${PWD}/pbi ]; then \ ${ECHO_MSG} "===> Generating PBI for ${PORTNAME}"; \ ${MKDIR} ${_PBIDIR}; \ ${MKDIR} ${_PBIDIR}/resources ${_PBIDIR}/scripts \ ${_PBIDIR}/xdg-desktop ${_PBIDIR}/xdg-menu \ ${_PBIDIR}/xgd-mime; \ ${ECHO_CMD} "PBI_PROGNAME=\"${PORTNAME}\"" > ${_PBICONF};\ ${ECHO_CMD} "PBI_MAKEPORT=\"`echo ${PWD} | cut -d '/' -f4-`\"" >> ${_PBICONF};\ PROGWEB=`cat ${DESCR} | awk '/^WWW:/ { print $$2; }'`; \ ${ECHO_CMD} "PBI_PROGWEB=\"$${PROGWEB}\"" >> ${_PBICONF};\ ${ECHO_CMD} "PBI_PROGAUTHOR=\"The ${PORTNAME} team\"" \ >> ${_PBICONF}; \ ${ECHO_CMD} "PBI_UPDATEURL=\"http://update.pbidir.com\""\ >> ${_PBICONF}; \ ${ECHO_CMD} "export PBI_PROGNAME PBI_MAKEPORT " \ "PBI_PROGWEB " \ "PBI_PROGAUTHOR PBI_UPDATEURL " \ "PBI_MKPORTBEFORE PBI_MKPORTAFTER PBI_MAKEOPTS" \ >> ${_PBICONF}; \ fi @${ECHO_MSG} "==> Generating PBI file" @${_PBIMAKEPORT} -c `echo ${PWD}/${_PBIDIR}` -o `echo ${PWD}` `echo ${PWD} | cut -d '/' -f4-` clean-pbi: @${ECHO_MSG} "===> Cleaning PBI for ${PORTNAME}" @${RM} -rf ${_PBIDIR} --------------010706080309000009080209--