From owner-freebsd-ports@FreeBSD.ORG Sat Jan 1 21:36:26 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C93B1065672 for ; Sat, 1 Jan 2011 21:36:26 +0000 (UTC) (envelope-from sam.lin4ml@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6425D8FC13 for ; Sat, 1 Jan 2011 21:36:26 +0000 (UTC) Received: by pxi1 with SMTP id 1so2466186pxi.13 for ; Sat, 01 Jan 2011 13:36:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=+ccewrQiHRf4Inrd/ZdUEq1aFfuxgDqXC28L7rtU13Y=; b=RWEdH9ys1SLUXWSaAwu4UwK4AexQOM5Dq+QovMf8wXSLme0vszfNNRQ6uoS92xBQRy 4Mp2oWkWPXFte0uX4HEo+1K9zUSGowJiNEioMu7rBKyGGqToyMVIZKKCKtGI7tpb3Gqb 7m68lXmE1tv9h4uljnHwKuUvO1kAp5h+w+dM8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DQbRkt3Im676pMxbZ+FYNdY1zfHX7rBHFShkURsNw3pafy8dl3EZAG5wcEr4GstQ3m LV7XNSflqDLrMUGvWLtDBhfiUSMsV76/HCXG4SD56cNj1yaMzCF6KNsqgl+0PUdB1hGM qB/dExHX0uXBIrnjLTn/ogt+ZPhwsXhMyntH4= MIME-Version: 1.0 Received: by 10.142.201.1 with SMTP id y1mr3839056wff.48.1293916121132; Sat, 01 Jan 2011 13:08:41 -0800 (PST) Received: by 10.142.191.16 with HTTP; Sat, 1 Jan 2011 13:08:41 -0800 (PST) Date: Sun, 2 Jan 2011 10:08:41 +1300 Message-ID: From: Sam Lin To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Makefile for Emacs extension package 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: Sat, 01 Jan 2011 21:36:26 -0000 Happy New Year. I am trying to port a Emacs extension package ESS (Emacs Speaks Statistics; [http://ess.r-project.org/]) and have been reading through the Porter's Handbook for the last couple weeks but still do not quite understand the contents, and hope I could please have some advice on editing the Makefile. I am managing to get my port to automatically add a few statements in .emacs for GNU Emacs AND in init.el for XEmacs when a user uses "make install" to add the port so that this mode is already loaded when the user launches GNU Emacs/XEmacs. To do this I think I need to put something in my Makefile... probably some special rules under "do-install" or "post-patch" before ".include "? If so then what do I put? If not then what should I do? I have looked at some existing emacs package e.g. deskutils/org-mode.el6 ( http://www.freebsd.org/cgi/cvsweb.cgi/ports/deskutils/org-mode.el6/Makefile?rev=1.8) but seems they do not have any options or statements in their Makefile to do similar task (if I understand the Makefile for the org-mode port). And unfortunately in the Porter's Handbook settings regarding Emacs appears yet to be written (page 68 as of this writing; [ http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-emacs.html] ). Any advice would be greatly appreciated. Regards, Sam