From owner-freebsd-ports@freebsd.org Thu Dec 14 03:27:19 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 7B8B9E9164C for ; Thu, 14 Dec 2017 03:27:19 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from sonic309-36.consmr.mail.ne1.yahoo.com (sonic309-36.consmr.mail.ne1.yahoo.com [66.163.184.162]) (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 495F07001F for ; Thu, 14 Dec 2017 03:27:18 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1513222037; bh=BQwWpqQNc0dEw94Cx+1HEDe1g0kD+LBxkyBk7t+c/Tc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=Nw1BbmSyx1hSKvV2kulSBzP7uUO4yLHrZccnwcWDsDUrXNM4f2vNnPnYQxq7Q9+VMu/9cOvRjpEWHJswtyJS9mrfWt9hnwKLB/G+LPdmwr099ZWVRa8hAIjsHFGz+KnA5OXhVFEXfu1nXDZ1LhrL2RsWjzHIfeirU45YyelZOfHH6CZCPMcJzy7l0tNp6/wYMsQtrHqGVfM6sVhi/xzw5LdY1q0a1P++RWyHJsfkmOuvk7GEM9Z0gyE9OFPrusZRm9gXI++lr1JrS5qrDwNu5y5PD2ySBU9le8X+sQno258NycJndTfPUNL7NQBVTu8Yd884u9+r29PzOhis8fGqeQ== X-YMail-OSG: HdK2ta0VM1mN1dbIpTo9oz4Nv_9f7NbOJ20J70M1_krVwVdvpEATdzRUcCCMJby zIEPYtrnJLNPj69PIf3YJeJlud4K.6hqGp_cgDunUD5k.yA.S8IFIy8279yEbNVb43LopCmHf7IX jnyo.NsQ9jkHW_4E6NXDmX_g_hTlQutpMuzwOjiWjRtiG_yqFrrijYAcnLQf9gmIuqX9jxKZZs9U yGDTJZqE.utigkUjSXiUzS0wtZphXbC2i.bgAbJRoUc2lYS9.7eLFsdiB4OZBSjVjoBrymlAswow XE645mJLYAZVQwOex_Bv0DbIVxl5K7F2kh807lGlJBVKO8.P5gPe910mPAMQBvRTuX0rFHM1Y6AJ xxL8EPg9r30CP._c942II9Bnwga7IVTpVnB7owypTguh.Am2cS3mliJc_RVixO1VkB1IZRqNPiLj au.uD7M3WdmIpvABs7J3AhLlbBcLq0V7JyC6mzKjYAegZCx.GQy3orwel6rJA9uWjwpMraWLm Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Thu, 14 Dec 2017 03:27:17 +0000 Received: from smtp234.mail.ne1.yahoo.com (EHLO [192.168.0.6]) ([10.218.253.207]) by smtp405.mail.ne1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID a44f4179534d9200cf37593de1db3df0; Thu, 14 Dec 2017 03:17:09 +0000 (UTC) Subject: Re: Linux ports tutorial? WPS Office To: portmaster@BSDforge.com Cc: Eugene Grosbein , freebsd-ports@freeBSD.org References: <73820d5ad4436c73fe47d0b35a112cf5@udns.ultimatedns.net> From: Pedro Giffuni Organization: FreeBSD Project Message-ID: <2ca3551a-db23-1c17-2035-c67494f8f542@FreeBSD.org> Date: Wed, 13 Dec 2017 22:17:07 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <73820d5ad4436c73fe47d0b35a112cf5@udns.ultimatedns.net> Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Thu, 14 Dec 2017 03:27:19 -0000 Hello; On 13/12/2017 21:11, Chris H wrote: > On Wed, 13 Dec 2017 19:56:24 -0500 "Pedro Giffuni" said > >> 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/} >> > >> > For details, read Porter's Handbook: >> > https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ >> > >> >> The handbook has no information about "USE_LINUX_RPM=yes". >> If I set that it appears the ports framework will ignore MASTER_SITES. >> >> Should I dig into the MK framework to see how to change the >> repository or should I use the .tar.xz distribution instead? :(. > I'm not sure. But would having a look at the way > emulators/linux_base-c(6|7) > provide some clues? > Not really but I think I found something in Mk/Uses/linux.mk: For the case of USE_LINUX_RPM it is supposed to not do anything when MASTER_SITES is defined but it is somewhat messy, and somehow it always uses ${MASTER_SITE_CENTOS_LINUX}. Any port that uses RPM but not the Centos repositories? > Just a thought, and hope it helps! > Thanks, I just have to keep digging :(. Pedro.