From owner-freebsd-ports@FreeBSD.ORG Mon May 14 17:31:37 2012 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 5F0461065675 for ; Mon, 14 May 2012 17:31:37 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id DD5558FC1E for ; Mon, 14 May 2012 17:31:36 +0000 (UTC) Received: by bkvi18 with SMTP id i18so4275974bkv.13 for ; Mon, 14 May 2012 10:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ukjxZTPUss4gWy6t0DzGtOYs9Fg19l0KDXdKsOICo0E=; b=nnuregsozG5ncsODmxKndJQjXM247009URTtFOYiNrIS7shgW+X0QnEvM5HU4lkKZV YbM0O9/GQ0CzO6MW0lrd++LOvZmXCFD1/Y6R2s92ACVk9IB/LqBjPhm175VCTrwkmx48 zQLN/qGh8ViE8JKDWE18scITu8eEfvR7/Cs93ciW/bBpi+6XOEnuBlEMT6cdTi84r3q7 2iBMVNnb6d1GgkOjt85gE29RULTmfxZgqfpn2OClRZBwzlrpkaDhsP94cl00Pkfp6vtM ewb/YckZOeqiIrmXqP1qg2msKVG0UN9ULQqheUU8OvN7c6NqDKVB6/uwZEAW/O/jtPvZ pNRA== Received: by 10.204.145.89 with SMTP id c25mr3524605bkv.5.1337016695619; Mon, 14 May 2012 10:31:35 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.171.138 with HTTP; Mon, 14 May 2012 10:31:05 -0700 (PDT) In-Reply-To: References: From: Chris Rees Date: Mon, 14 May 2012 18:31:05 +0100 X-Google-Sender-Auth: KJETPBN60YCCcTkbjKd3PV62DC8 Message-ID: To: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: On file installation 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: Mon, 14 May 2012 17:31:37 -0000 On 14 May 2012 18:23, Fernando Apestegu=EDa = wrote: > Hi, > > I'm working on a port for an application written in Java and I'm > having some problems deciding how to install the application. > Previous to the installation, the WRKSRC directory contains some .jar > files and some directories along with some .txt files for > licenses, but also some .exe and .bat files _which I don't want to > install_. It is basically a package that contains both files for > windows and non-windows systems. > > I was thinking on using COPYTREE_SHARE to install everything and then > remove the non necessary files, but doesn't look like > an elegant solution. Also, I wouldn't like to explicitly specify every > one of the files I want to copy. Is there a way of using something > similar to bash's extglob so I can copy !(*.exe|*bat)? If not, how to pro= ceed? > > I already looked at the existent ports to find something similar but > it seems hard to find. I also had a look at bsd.port.mk but > I couldn't find what I'm looking for. You can use find primaries with COPYTREE_SHARE such as; (cd ${WRKSRC}/wherever && ${COPYTREE_SHARE} \* ${JAVALIBDIR}/${PORTNAME}/wherever "-not -name \*.exe -and -not -name \*.bat" Chris