From owner-freebsd-ports@freebsd.org  Thu Dec 14 16:21:12 2017
Return-Path: <owner-freebsd-ports@freebsd.org>
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 9CDDCE85927
 for <freebsd-ports@mailman.ysv.freebsd.org>;
 Thu, 14 Dec 2017 16:21:12 +0000 (UTC) (envelope-from pfg@FreeBSD.org)
Received: from sonic304-25.consmr.mail.bf2.yahoo.com
 (sonic304-25.consmr.mail.bf2.yahoo.com [74.6.128.48])
 (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 50BF56AC68
 for <freebsd-ports@freebsd.org>; Thu, 14 Dec 2017 16:21:11 +0000 (UTC)
 (envelope-from pfg@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1513268470; bh=pavqAXnmC6gPD1Rvn0sUEWd2M4uD25HdMfJdg31qIvs=;
 h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject;
 b=i1a3m66LJZmni7MLbuBwxJdLyXDlJao8DrFwBGyzAZGeAPGgO9o8tFOyuIag6F5EaDagByFLXU6sUmylZzRmKwtsbq4PHLKwVT3mVwYPFJVsrc8/KG2PskbM1d9l64rCdggWfupiqCgN4vqsMhrxhdLZkrK/y9j6QKfRy4mA1im/bP6jJGAjAFvZo0u9NqufJ7ua5l0efgSemmUZQ7KgQ6fiQkwBxAFrrjfSGrQT1HkK9B76qH9w+J7TC1kCLmbPW6JM+8U3/w3a9DGu/Gf0TimnZkx6/eWNFeHJ3OKPzBUO+M6BDNQ5Av3w5zfu8722b50kfH/zYFGcFe/FPKOLNw==
X-YMail-OSG: riOjGgIVM1nNxNQPz5_EAAPy0b5jvqI1mL8qZ700R0w8gl8EFqczq.FAYvAapSt
 KhGT6SapZ3foRLmofZ3OEbltQRah0sY7hp4AY569Wc6.9uE1gHocd1FQ1YXKy18oSfwylspwDDxC
 p8XzgrOdF3pqx8w0Et2yOhDj5qD.3GqWblYlzy475cXC3yxoGdb_R.v1Ceb7rF4DH5L_1ENuc38j
 1xmVCX9HF6BrYS4uwz7H2U2wlvH5fKw1wCq_yzBEC_xpQ34ak_XRkHmIWWLuLk9ViDtqIPmdIZnn
 PC..UHczKIL515B4SQ6RjlET2m05zbmrp9EPWnx0mC_Ae4h5vH.ud1sWVaQogQcIo8K3dDQdQCu2
 4bVOE0kcs_fCoJpgOM5Vn1WB_8Y9DEv3A46lwwiapLEw5yeNMNu3tsdsqQQm.jeuoqBrYmnUoaUF
 XoB7YSpD1KYY43KL4Mi3eCcV343rgb6cAZtMTN2bLJWYtPzkD66kqeeUTf_51HvmG3Z2dpCYE
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic304.consmr.mail.bf2.yahoo.com with HTTP; Thu, 14 Dec 2017 16:21:10 +0000
Received: from smtpgate103.mail.bf1.yahoo.com (EHLO [192.168.0.6])
 ([72.30.28.111])
 by smtp407.mail.bf1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID
 3d05e5b335ca94373f8056fe6e068084; 
 Thu, 14 Dec 2017 16:21:07 +0000 (UTC)
Subject: Re: Linux ports tutorial? WPS Office
To: blubee blubeeme <gurenchan@gmail.com>
Cc: FreeBSD Ports <freebsd-ports@freebsd.org>
References: <73820d5ad4436c73fe47d0b35a112cf5@udns.ultimatedns.net>
 <2ca3551a-db23-1c17-2035-c67494f8f542@FreeBSD.org>
 <CALM2mEnXpB5swZe2=UShtn8-KSbCUM97xCJpwA0YAsLnmhpzgg@mail.gmail.com>
 <a7d7de70-c877-2cca-2994-e000df477e3e@FreeBSD.org>
 <CALM2mEkGFkwWEoeopgXy_XrfNRPmASt+bkj_owKibU_dD9eS2g@mail.gmail.com>
From: Pedro Giffuni <pfg@FreeBSD.org>
Message-ID: <63588c07-064d-e9cc-4dd0-146aab828e78@FreeBSD.org>
Date: Thu, 14 Dec 2017 11:21:06 -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: <CALM2mEkGFkwWEoeopgXy_XrfNRPmASt+bkj_owKibU_dD9eS2g@mail.gmail.com>
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 <freebsd-ports.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports/>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Dec 2017 16:21:12 -0000



On 12/14/17 10:57, blubee blubeeme wrote:
>
>
>
> On Thu, Dec 14, 2017, 22:15 Pedro Giffuni <pfg@freebsd.org 
> <mailto:pfg@freebsd.org>> wrote:
>
>
>
>     On 12/13/17 22:31, blubee blubeeme wrote:
>>
>>
>>     On Thu, Dec 14, 2017 at 11:17 AM, Pedro Giffuni <pfg@freebsd.org
>>     <mailto:pfg@freebsd.org>> wrote:
>>
>>         Hello;
>>
>>
>>         On 13/12/2017 21:11, Chris H wrote:
>>
>>             On Wed, 13 Dec 2017 19:56:24 -0500 "Pedro Giffuni"
>>             <pfg@FreeBSD.org> <mailto:pfg@FreeBSD.org> 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 <http://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
>>         <http://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.
>>
>>
>>         _______________________________________________
>>         freebsd-ports@freebsd.org <mailto:freebsd-ports@freebsd.org>
>>         mailing list
>>         https://lists.freebsd.org/mailman/listinfo/freebsd-ports
>>         To unsubscribe, send any mail to
>>         "freebsd-ports-unsubscribe@freebsd.org
>>         <mailto:freebsd-ports-unsubscribe@freebsd.org>"
>>
>>
>>     The linux packaging is okay but I'd recommend learning how the
>>     porting process and not just wrapping up a linux binary in FreeBSD.
>>
>
>     Well ... of course if I had the source code I would not be dealing
>     RPMs for the linuxulator.
>
>     Software can be free but not include source code.  It can still be
>     desirable for FreeBSD.
>
>
>>     The main reason for that is you can port your way into a corner
>>     that relies on very Linux specific stuff that there's just no
>>     solution for yet nor will there be one unless you port the entire
>>     Linux kernel to FreeBSD.
>>
>
>     Which is why we have a linuxulator.
>
>
>     Pedro.
>
>     What's in these tar.gz files here: http://wps-community.org/downloads
>
binaries:

libauth.so                      libtiff.so.4
libavcodec.so                   libtiff.so.4.3.4
libavcodec.so.57                libtxtrw.so
libavcodec.so.57.24.102         libwordconvert.so
libavformat.so                  libwordml12w.so
libavformat.so.57               libwppcore.so
libavformat.so.57.25.100        libwpsdocxrw.so
libavutil.so                    libwpshtmlrw.so
libavutil.so.55                 libwpsio.so
libavutil.so.55.17.103          libwpstablestyle.so
libc++.so                       libwpswordtool.so
libc++.so.1                     libwpsxmlrw.so
libc++.so.1.0                   libxercesc3.so
libc++abi.so                    libxlsxrw.so
libc++abi.so.1                  mui
libc++abi.so.1.0                qt
libdap.so                       qt.conf
libdocreader.so                 res
libdocwriter.so                 skins
libethtmlrw2.so                 thirdpartylegalnotices.txt
libethtmrw.so                   transerr
libetsolver.so                  wpp
libetxmlrw.so                   wps
...