X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83086385C019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1586142761; bh=hhQ8iBTEoe5t0kxYKIgLiAZpJcu4Yoej2pFY3ozbuGE=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=QyuBepFaERH/8J0HDe5H+R2+bACFBJXN9gonet0mKlkTP1B4cM2hOzKL6h4y8jMlS HIiFOZBmEBz7cDsO/WFU1XFRfQhdhsVEUSNdVrE1l3iP/O5JiZlI7MV8XvkxyUJyVB N9AyqszB5xm/EANeIrKlP58XhgjzZJeMgmxi+ttU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0BFAB385B831 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) Subject: Re: How do I write a cygport file for two different configurations in the same cygport package To: cygwin AT cygwin DOT com References: 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: 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 AT cygwin DOT 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: , From: Marco Atzeri via Cygwin Reply-To: Marco Atzeri Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0363D7bG008983 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple