From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-1.9 required=3.0 tests=AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: normalperson@yhbt.net Received: from zedshaw2.xen.prgmr.com (zedshaw2.xen.prgmr.com [71.19.156.177]) by dcvr.yhbt.net (Postfix) with ESMTP id 4E29F1F65E for ; Thu, 25 Apr 2013 04:08:10 +0000 (UTC) Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id E1ABB73E31 for ; Thu, 25 Apr 2013 04:09:44 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 25 Apr 2013 04:07:46 +0000 From: Eric Wong List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Message-Id: <1366862867-29521-2-git-send-email-normalperson@yhbt.net> Precedence: list References: <1366862867-29521-1-git-send-email-normalperson@yhbt.net> Sender: sleepy.penguin@librelist.org Subject: [sleepy.penguin] [PATCH 2/3] pkg.mk: allow passing arguments to extconf To: sleepy.penguin@librelist.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This allows us to use something like: make build EXTCONF_ARGS='--with-kqueue-include=/usr/include/kqueue \ --with-kqueue-libs=-lkqueue' To build with libkqueue. --- pkg.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg.mk b/pkg.mk index 4cd5bef..048d3d8 100644 --- a/pkg.mk +++ b/pkg.mk @@ -36,7 +36,7 @@ $(ext_pfx)/$(ext)/%: $(ext)/% $(ext_d) install -m 644 $< $@ $(ext_pfx)/$(ext)/Makefile: $(ext)/extconf.rb $(ext_d) $(ext_h) $(RM) -f $(@D)/*.o - cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb + cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb $(EXTCONF_ARGS) ext_sfx := _ext.$(DLEXT) ext_dl := $(ext_pfx)/$(ext)/$(notdir $(ext)_ext.$(DLEXT)) $(ext_dl): $(ext_src) $(ext_pfx_src) $(ext_pfx)/$(ext)/Makefile -- 1.8.2.1.367.gc875ca7