From owner-freebsd-ports@freebsd.org Sat Nov 25 08:14:09 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F134DBBB36 for ; Sat, 25 Nov 2017 08:14:09 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 270257965B for ; Sat, 25 Nov 2017 08:14:09 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x231.google.com with SMTP id i38so31539163iod.2 for ; Sat, 25 Nov 2017 00:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=/aqXSiExqYumBqMtIGgEiEG7mcSs7X737s1I8XQ7Zo0=; b=AZrh36ylMi0+WMbmzBbPwr+ZltzWGil1XsklI6BHIyIgSlE2MUbTJQncO91ru3tgjh jz0qGlrhYkyw48zKOAeKl5RSwrTGwZ3hZ7T1bge3e76sTsvUit7IKSbIHonP7I+iYG55 vGUF2f3ApyfSd2wSsD310ehwP/CIRyZeSwwrC3RWvrPglEyb8V6i0djOxrHSO2Aarof+ sqpjtiuMuw9hOMfoh02d+4MYc90Ltk4CrkOmoVY/j6UElO5Sw/btJW30f5NpEAyX2sO4 4hupJ75a7eTr59mvMcAa2Lk592jDR1aAnDK2IZoUvE+GD5K3x+KG/nq1hrBMqrThh4Ga p72Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=/aqXSiExqYumBqMtIGgEiEG7mcSs7X737s1I8XQ7Zo0=; b=NQOucZJcrwES0ORBsHvPw3c7kUl2WNgxxgjsB+JxYP2f7dALKfJiyovpmKYTKFBwCb qz66r+R11F/Hyx/i+/gYrUioyXeHI+wm5AUbv7IGLT7ivlaY+ImLNUhDF5SsfY+6z/Qw bpOVecSci/UxL5nrIKhiXjB8wdGrtMOOsRT1blEib9EuiDFjEombnJsGZKayQegPLLXi prkZooWgCRC+gIjyUFmqfO2TnKlKWujdg//FMGbVsE45w0QBNvEWkMt9NaRIIjSJ1R/8 zpLydxdZP+hDhNYptbUV1zOe+y2k61ymN5APjrhvKZBg8rCu+jwSeI6Pjbyag2kDoERi UcyQ== X-Gm-Message-State: AJaThX53el8ZUenKojHJy2WYjqqQl9SctSW4IbwCCEZoI4yBYmUD81CF rqqq8KZLSp+V8P+6fYQaFrpdthNvM0enxMLD+7Sm0g== X-Google-Smtp-Source: AGs4zMZUuZKdGVG717OhqijV/8BBl3R6YUNrb+4RutfhMjaiTdZVgMPfyFik9tyoowACx+54T1dFUZLZdJAtQoKNUAM= X-Received: by 10.107.135.97 with SMTP id j94mr2721617iod.213.1511597648317; Sat, 25 Nov 2017 00:14:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.11.31 with HTTP; Sat, 25 Nov 2017 00:14:07 -0800 (PST) In-Reply-To: References: From: blubee blubeeme Date: Sat, 25 Nov 2017 16:14:07 +0800 Message-ID: Subject: Re: Can I build multiple executables in 1 port Makefile? To: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 08:14:09 -0000 let's try this again: OPTIONS_DEFINE= X11 X11_RAWFB USE_GITHUB= yes GH_ACCOUNT= vurtun GH_TAGNAME= 36a396f .include .if ${PORT_OPTIONS:MX11} do-build: @(${DO_MAKE_BUILD} -C ${WRKSRC}/demo/x11) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/demo/x11/bin/x11-zahnrad ${STAGEDIR}${PREFIX}/bin echo ${STAGEDIR}${PREFIX}/bin .endif .if ${PORT_OPTIONS:MX11_RAWFB} do-build: @(${DO_MAKE_BUILD} -C ${WRKSRC}/demo/x11_rawfb) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/demo/x11_rawfb/bin/x11-rawfb-zahnrad ${STAGEDIR}${PREFIX}/bin echo ${STAGEDIR}${PREFIX}/bin .endif .include the port will build either or but not both, how can I build and install both? Is that possible? On Sat, Nov 25, 2017 at 4:12 PM, blubee blubeeme wrote: > A sample of my makefile: > >