From nobody Sun Apr 3 18:38:27 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6769F1A40E35 for ; Sun, 3 Apr 2022 18:38:32 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KWjN82VGNz4tQ4; Sun, 3 Apr 2022 18:38:32 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649011112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=d6CU+JDW179cOvuJFJQcLmj+3w4xvw4fvmjrRBVLJN8=; b=VKsQoyCRKSM4J7IqadJ76TdbKpmivbb2Y1evK1mMywdlMyboRt3EVNc49J72ACxptjlE81 79iEEVURBKqbQhXymCc2iwGnFhd6Tt6LYB1aZfVCpUo38GYZDVb8YtCJ79hAM8DZw4/eJP kvWN+adPqIZaBfImAavLZ5fPqebj+Fggqx5SShZTA12URvZ7DjA1w7PO6ZXfqQINXCzMLY 5mluAwGZZW3Stj16+xcWy1Qoef2vKPUc/xrjc4wb2FHo4a+cJN60v/SmA8QhT/pqypGWxq 6XpMae6wMOYTuZl+cbYEgugVafP09rqqBGCsQwHu9IEvEnR16O4+KJ75lPGO3g== Received: by freefall.freebsd.org (Postfix, from userid 1354) id 46578183B1; Sun, 3 Apr 2022 18:38:32 +0000 (UTC) From: Jan Beich To: iio7@tutanota.com Cc: Freebsd Questions Subject: Re: How to add compile time options to a port? References: Date: Sun, 03 Apr 2022 20:38:27 +0200 In-Reply-To: (iio7@tutanota.com's message of "Sat, 2 Apr 2022 08:06:15 +0200 (CEST)") Message-ID: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649011112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=d6CU+JDW179cOvuJFJQcLmj+3w4xvw4fvmjrRBVLJN8=; b=sxjIUbaG2Gh3E9/hRs2sKoGcH2dhZ2MDUrrTf0xFFe0fqZuYlXv2gTUgyM6IMF1bY8WEOc r6gCPK7XTVJSW4ex4ECbdknGJx1gvHc0FfWJ7rCggcgrsRhVdZac0EYOqw1RtaSLbhy6i+ oXhZCPCpH1jC9rEu/JKXccCHL26++y9V/3pK6TcpKcJTUMaGQYbRBgJO6uK5kwF01l8/kL YuGx0kuI1EzazSHeK9WCUgJtdCt+MZhlUBh55am4leDP0XKRU+cxzEh3ak88zaV17WtozH /8t1vVpqK14r/E/6LxJIpL56eb5H93IuSrvW17Zck9/WmdvcG4q5kPPfc3hZRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649011112; a=rsa-sha256; cv=none; b=H81YOH6Ktbf70irCAmArW/CxtTnwrW3bOwbRhMdryUk6ja/lkg/tItn4og/LTP/r39OOgz w/jFvInbju+6VK/xOs8XJqHZj1WCw8h3b8xI/0WRRQYZhgtxVpeSxSy76qNbu+o5U8H6TG HVr0GZVhupkjmZSPwnzV/vySg+XHRdIyegutpxolN0vMM/Y48bdHgEOYHzqxUhGMY09XX3 TXKPYuS2UGmkZ2f4n9zgsF7lfomOlo/kIYXkL5Peg6PWtYOQ/6Imr2ksb9ZfHiZnLOH1tB +FUqMX/6YOnTIp+vPenMxFzmCZpovJHK3PqWrZcz9pYeHBig0PmKig9bmPdEnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N iio7@tutanota.com writes: > I have been search the man pages and the manual, but haven't > been able to locate any specific information. > > If there is a port in which the maintainer isn't providing all the > compile time options, is there a way to add an option without > manually editing and changing the Makefile? > > If not, what is the best practice here? /usr/ports/*/*/Makefile.local Makefile.local is read *after* Makefile, so unlike make.conf can modify all variables, not just those set via "?=" or "+=". > > Just as an example, say I want to add the option: > > --without-gpm-mouse > > to mc (Midnight Commander). $ cd /usr/ports/misc/mc $ echo 'CONFIGURE_ARGS += --without-gpm-mouse' >>Makefile.local $ make -V CONFIGURE_ARGS --without-gpm-mouse ...