From owner-freebsd-ports@freebsd.org Sun Dec 10 21:02:50 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 71394E9C9CF for ; Sun, 10 Dec 2017 21:02:50 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from sonic315-23.consmr.mail.gq1.yahoo.com (sonic315-23.consmr.mail.gq1.yahoo.com [98.137.65.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B58E3E95 for ; Sun, 10 Dec 2017 21:02:50 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1512939769; bh=fP7c2FxssUcny381waoo61ISISDzP+tEHuTdQyP7lfQ=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=Hp7VNWW0qbgE1lLX4dNzdmcuFHRnnkoMZlji96ibDEINCw4lRuw1x01fRxC/psgyr7xU4wZn9ZUqJdEuAdjiywrGOC5bpzlijujjEpDNEyqnYqSbhbr+7QBTu316g+iNcxLnHLbRR/i+8Vv8R+vGQKW0EwcuIZEJMDlU1aX5NacDMJ1deY7oc0oJ/i6qN7Rf5xo3ufDuboS09NKvvl8hmDcXMWd7IiWiSMhG7JPbtZvCMoRcm8+L3HsqMGLE/h9DgXpdW+zDh4+C8IlQ/H7ipUXdZgQongS8DhhynM4Qc58k+Bev/c4/lopGt7xdVzV6kdj05+7hWDtws2cKIFkPjw== X-YMail-OSG: lY4CW9MVM1mjV_PnzBccsDXNsDHSR9em1RL7blfUYRyd9E99FV4WW3p59SJNoR1 i3GVqCw9JSbaBjAH7tlUBj6792WbAs0xNwOMU1IFGSwRux.98FNe6At75d1LkFdJZQ5D2DkOe5vG 7M1ulMRfZnrpQAE7J2ryVtGD.sg8d_w87UFuDBu9qn1FawdXMYW4qIKXtr1n3bVQQPcNr_b39eXw D2Sp09m.XjeZEJGIURT6Xvy4PJP2x1AP9B.MvZn5w2dFTScYxy4J_jX32NRSOtHjrDh7cLrJmNw. igPq.jSa7bEeFuBZ73w08nbLUZGbE71fXtaVPYzTwk2YWWpk22sH1k92B1LGPdpJA5gbLU8qBova Ll0InFbnXAyVZ3RXIia9DLa7J5Ts2Ae02c1K0lqstmjY4PE3JAIumtqa1F.ULpr_Rb2lNNXWTUFp 52cxZMM8jasr_mWlQSnMYF04k9_SaqDARPaHQzlyejEI6a4aA7VrmPFnafDVb4xCZhI0sru5m Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Sun, 10 Dec 2017 21:02:49 +0000 Received: from smtp105.rhel.mail.gq1.yahoo.com (EHLO [192.168.0.5]) ([68.180.227.8]) by smtp402.mail.gq1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID -877903210; Sun, 10 Dec 2017 20:42:34 +0000 (UTC) Subject: Re: Linux ports tutorial? WPS Office To: Eugene Grosbein , freebsd-ports@freeBSD.org References: <3294bc10-633b-903d-1392-87447dcd05fd@FreeBSD.org> <5A2D912D.50204@grosbein.net> From: Pedro Giffuni Message-ID: Date: Sun, 10 Dec 2017 15:42:31 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <5A2D912D.50204@grosbein.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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: Sun, 10 Dec 2017 21:02:50 -0000 On 12/10/17 14:55, Eugene Grosbein wrote: > 11.12.2017 2:22, Pedro Giffuni пишет: >> Hello guys; >> >> I would like to attempt a port for WPS Office (AKA Kingsoft Office): >> >> http://wps-community.org/ >> >> Are there guidelines for linux ports? I couldn't find much details in the handbook. >> >> In particular, how do you handle when the pkg-plist is different for i386 and amd64? >> >> Some ports use pkg-plist.${ARCH} but I don't know how those work. > Just have "USES=linux", "USE_LINUX_RPM=yes" and make these two files pkg-plist.i386 and pkg-plist.amd64 > and they are used automatically. Or you could duplicate a magic from /ports/Mk/Uses/linux.mk in your Makefile: > > PLIST?= ${PKGDIR}/pkg-plist.${LINUX_ARCH:S/x86_64/amd64/} Thanks, this is a good starting point. > For details, read Porter's Handbook: https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ > Pedro.