From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 0BFAB385B831 for ; Mon, 6 Apr 2020 03:12:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0BFAB385B831 Received: by mail-wr1-x42f.google.com with SMTP id h9so15591983wrc.8 for ; Sun, 05 Apr 2020 20:12:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=OQTAbcCmi1LSVCsa6KPtg0joCrBZQN2kcL2CoXNkRFg=; b=jIkTUGVBMN1TvjmWf/gdRDDfI4Nc5ehWrnjSoRPV6cMm6z+Nxu/0ZjscbC28fBzksr kaaIfZSDaXJO8iPGg+BOnMTU2cX4AZhtEhEp+rbEu1zmJY+cv4b26FoML467sW6l0Wjj WlTtZ4aIrXj03AFmIWou1qh1ob03PM9Y3oap/UNTNaIM053v+rGSw8ubModVQczFJYj6 KGAjabLlTfqzAmeV0eV7EzyQxhTjNo5GVftSS7jok6TlISA1OGyuOVZedWM4UM3SLxpQ XmuF+SvPTwmB/Z49h5Z9rBXF2KPRP8wDl6swi3AR3Gp/wWUwlWpV+ikR96Y318v3zmpM 5SVA== X-Gm-Message-State: AGi0PuaIEuwvq+G6R598Xu0w9KqoNT1yhW1jIk/dTKgou4sVVXnCt2lZ 8RvbKzc7IsKqB1DqYY22UTnI9Nwzc64= X-Google-Smtp-Source: APiQypLu9A4/fLNhFHKDtncjWdT+8VgSpmwIn1VdGMRL8HSKNkOdMcn9kJPTfOvB1Uh38IhnxENITA== X-Received: by 2002:adf:f58c:: with SMTP id f12mr22856828wro.207.1586142757792; Sun, 05 Apr 2020 20:12:37 -0700 (PDT) Received: from [192.168.2.111] (p2E57D2E2.dip0.t-ipconnect.de. [46.87.210.226]) by smtp.gmail.com with ESMTPSA id s13sm8051228wrw.20.2020.04.05.20.12.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Apr 2020 20:12:37 -0700 (PDT) Subject: Re: How do I write a cygport file for two different configurations in the same cygport package To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: <3a1cee6f-d8f8-f0c9-ee89-1cfbccad4d14@gmail.com> Date: Mon, 6 Apr 2020 05:12:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2020 03:12:40 -0000 Am 05.04.2020 um 22:51 schrieb Åke Rehnman via Cygwin: > Hello all, > > I was going to update the libftdi1 package which in addition to the > regular ftdi library contains python bindings. Unfortunately the cmake > CMakeLists only builds python 3 bindings for this library unless > explicitly passed some magic variables on the command line. However both > python 2 and python 3 bindings cannot be built in one go. > > So the question is how do I write a cygport file to first compile the > libraries with python 3 then reconfigure (run cmake again with new > parameters) and build the python 2 bindings? > > Any ideas? > > BR > > /Ake > this is the solution implemented to build fftw3 3 times with different parameters. I will use something similar for postgresql that has the same problem of your libftdi1. src_compile() { cd ${S} cygautoreconf mkdir -p ${B}/float cd ${B}/float CYGCONF_SOURCE=${S} cygconf \ --enable-float \ --enable-threads \ --enable-shared --disable-static \ --enable-openmp \ --enable-sse -enable-avx \ --with-windows-f77-mangling cygmake mkdir -p ${B}/long cd ${B}/long CYGCONF_SOURCE=${S} cygconf \ --enable-threads \ --enable-shared --disable-static \ --enable-openmp \ --enable-sse2 -enable-avx \ --with-windows-f77-mangling cygmake mkdir -p ${B}/double cd ${B}/double CYGCONF_SOURCE=${S} cygconf \ --enable-long-double \ --enable-threads \ --enable-shared --disable-static \ --enable-openmp \ --with-windows-f77-mangling cygmake } src_test() { for precision in float long double do cd ${B}/${precision}/tests cygtest done } src_install() { for precision in float long double do cd ${B}/${precision} cyginstall done .. Regards Marco