From owner-freebsd-ports@freebsd.org Mon Jun 22 01:01:18 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C4D9D33A468 for ; Mon, 22 Jun 2020 01:01:18 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49qrhF6Wmlz3gDW for ; Mon, 22 Jun 2020 01:01:17 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mail-wr1-x42c.google.com with SMTP id h5so14962294wrc.7 for ; Sun, 21 Jun 2020 18:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamw-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gt0Ipni2UhND8joQIQTqIwYtv0VAzdBI13+QBKwAb3A=; b=U50YwpNSRzOZoEsVJLh+8DeRTMmOyKsRPHvXBO1EHsLa1NRJb7Uxx8A6Yx08o62BUT vhzfrg8JWeo7EkdfSfiiKcVGIbKbI+8eeUmMKiYuRmNswJaO3MTzk1Ra9WZcrkm48cwD Y1NKw2cD9F8NosdJSp8isg9M00URc0XwZq1bajwrHOFs7W1e7e9vyq1fYKvG5nYVPMgM W6k6agF3Ff7NoX++4Erk0MdcZlKkgo5iBH/E8ZJWbO41lEgOfy6aDZWyA7TNw10nAp3F unXpgY5UjsIcr9NE+vZsiekh3f2MXKlHXYnRzj6/wCCj0ddnSnvv+nOZGn94Ym+Q8zAF ZA3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gt0Ipni2UhND8joQIQTqIwYtv0VAzdBI13+QBKwAb3A=; b=kGH9w8J4bwf4pU7YYSoT3sm6td7/RP8OXrupXRNOhq+2hZKSHP2I/BXyLF20S4YJYW MVG9nixNkofnQwwisqN48QbT6KMbdOnag+F7Vyvu3l7TuiyDjO0ITugHO26B9N7cw8Ak lbEjTEToQQ09O8dywr6Pt1IOMLKlZSnGdVcbDzcwZcPUdZfl7oVyuO4NeI/cb5pKS8x+ PHdbIVV3+vG4f8pU6OrS8Wtm2yxuzGc8eZpm3h0BFsR9pmkPAvmtQhF//8KUHrxsbtES pq/4bZSF9+5CuNRVskhi/NEwKyXadNgv33iE9Jjl53FIgFdKe2JddqYJcksPkiK5u27u ri5A== X-Gm-Message-State: AOAM530TwEoGnBH5HuzJdXYsLmNv4O+He7URmF0dULoI2fh51cmM9hZF CC4gR2p2pHqQhomuSmFm2vqLShzxJbk3FVZtlQr9V7PovXc= X-Google-Smtp-Source: ABdhPJzOFQxvJ39vIf/Ev715piZPu69SVXoxYemclBn+k+TG4wLMFbN9WN158cEgUQzXFehhj5+JE2dHgOKvzaEndms= X-Received: by 2002:adf:f30a:: with SMTP id i10mr15487280wro.134.1592787676421; Sun, 21 Jun 2020 18:01:16 -0700 (PDT) MIME-Version: 1.0 References: <20200622001145.5c4afcf5@diamond.diamondbox.dk> In-Reply-To: <20200622001145.5c4afcf5@diamond.diamondbox.dk> From: Adam Weinberger Date: Sun, 21 Jun 2020 19:01:00 -0600 Message-ID: Subject: Re: My first port To: Nikolaj Thygesen Cc: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 49qrhF6Wmlz3gDW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=adamw-org.20150623.gappssmtp.com header.s=20150623 header.b=U50YwpNS; dmarc=none; spf=pass (mx1.freebsd.org: domain of adamw@adamw.org designates 2a00:1450:4864:20::42c as permitted sender) smtp.mailfrom=adamw@adamw.org X-Spamd-Result: default: False [-3.02 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.009]; R_DKIM_ALLOW(-0.20)[adamw-org.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; NEURAL_HAM_LONG(-1.03)[-1.030]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[adamw.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[adamw-org.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42c:from]; NEURAL_HAM_SHORT(-0.49)[-0.486]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 01:01:18 -0000 On Sun, Jun 21, 2020 at 4:11 PM Nikolaj Thygesen wrote: > > Hi freebsd-ports, > > I'm trying to create my first port and things are taking shape, b= ut I'm down to one little detail making me feel a bit dirty. The port is ba= sed on the latest release of swi-prolog, which has switched to cmake/ninja.= My final issue is that the pkg-conf-.pc file gets installed in PREFIX/shar= e/pkgconfig instead of PREFIX/libdata/pkgconfig, but I can't find the best = way to maneuver it into the right directory. > My current hack-ish solution has been to add to pkg-plist a line = like: > > @sample share/pkgconfig/swipl.pc libdata/pkgconfig/swipl.= pc > > ... which actually works, but it feels wrong. Is there a better more stan= dard way to do this? If you can't find and patch the location in the cmake files (like Muhammad advised), the easiest solution is to move it in post-install. But Muhammad's solution is the best option and you should shoot for that first. post-install: ${MV} ${STAGEDIR}${PREFIX}/share/pkgconfig/swipl.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org