From owner-freebsd-ports@FreeBSD.ORG Tue Jul 31 15:27:35 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3BCF1065670 for ; Tue, 31 Jul 2012 15:27:35 +0000 (UTC) (envelope-from bsdkaffee@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 803318FC18 for ; Tue, 31 Jul 2012 15:27:35 +0000 (UTC) Received: by vcbgb22 with SMTP id gb22so7175530vcb.13 for ; Tue, 31 Jul 2012 08:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=WWdSkBX8goadaTo6iCcx+Vpp6rWOqLxqeOWlhs27PY0=; b=jtc+NUZKb31zyLqoTxN3YTAk4wh8suWE/MnIcX23oiogmXAPkd2lTcn3TJ5GFh7iU8 BQe2nFPB4snaGiNnirTjEk+mgd52nOOM9fVmJl20c7jfsASCFrEGdMaeQb/MKDwnk/iX 0KFs0BmPLhHv7RTfJVCHAKBRMPiEzJ4A4zB3aSu23gM9G7vk2Lp3gaU9MqZxHpJV4BKE LRrt1xdmStRr6UqMazBfdK/1jm7SvzKQH+sQB8GEJtPOOtS/McwI2L2JFYBpy6Cb2+cO fG3ZfXCqMin5J+VG/EfAAsHk4b4r1CKI7N+1CfzXbxJAmunv4+nnf/I+5Pgtwk/YMXG1 EjPA== Received: by 10.220.153.200 with SMTP id l8mr14451523vcw.40.1343748454859; Tue, 31 Jul 2012 08:27:34 -0700 (PDT) Received: from mocha.verizon.net (c-71-61-40-68.hsd1.oh.comcast.net. [71.61.40.68]) by mx.google.com with ESMTPS id ej4sm340337vdb.0.2012.07.31.08.27.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jul 2012 08:27:34 -0700 (PDT) From: "Jason E. Hale" To: HU Dong Date: Tue, 31 Jul 2012 11:27:31 -0400 Message-ID: <2468689.1qABUSPjkn@mocha.verizon.net> User-Agent: KMail/4.8.4 (FreeBSD/9.0-RELEASE-p3; KDE/4.8.4; i386; ; ) In-Reply-To: References: <10338955.6OcLDV9eam@mocha.verizon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: Michael Scheidell , freebsd-ports@freebsd.org Subject: Re: Problems about making a new port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2012 15:27:35 -0000 On Tuesday, July 31, 2012 10:10:48 HU Dong wrote: > As for "/usr/local/share/certs/ca-root-nss.crt", it's a cert file installed > by security/ca_root_nss. I can't figure out how to determine its > location automatically, but I think ${PREFIX} is not proper either, so I > replace /usr/local with ${LOCALBASE}. > I've looked over this port a lot closer and it doesn't seem like this replacement is really necessary. The user can define the location of the cert in ~/.xombrero.conf with the ssl_ca_file variable. > Now it seems that the only problem left is to create a wrapper script for > the binary. I don't know where to find tutorials. Is there a google example > that I can refer to? Roughly, I need to know where to place the original > binary, how to name the wrapper, whether there's anything additional to do > except copying files and executing the original binary, etc. > I'm not sure this is the right thing now since I looked at that script and it requires www/get_flash_videos and multimedia/mplayer. You could make them optional dependencies, but I wouldn't install the script to the users home directory unless get_flash_videos and mplayer are installed. It might be better to leave it up to the user since they will have to manually install .xombrero.conf anyways. Maybe a pkg-message would be more appropriate. I was bored and had some free time, so I fixed up the port and put it in my Redports SVN repo: https://redports.org/browser/bsdkaffee/www/xombrero Build logs here: https://redports.org/buildarchive/20120731145106-5752/ Clang build failed do to devel/gobject-introspection Feel free to use any of the changes I made. Many of the changes were things I said in my previous mail. I did away with the do-build target and left that up to bsd.port.mk by defining MAKE_ARGS and BUILD_WRKSRC. This will make it easier in the future if you want to make the port use either webkit-gtk2 or webkit-gtk3 (when it get in the ports tree). Plus we need to pass PTHREAD_CFLAGS and PTHREAD_LIBS to make. - Fixed some hardcoded paths and the use of -pthread directly in the Makefile. - Added -D_GCRYPT_IN_LIBGCRYPT=1 to the Makefile to squash the warnings. - Moved one of the reinplaces to a proper patch. Reinplaces are more for fixing paths and multiple instances of things. Regards, Jason E. Hale