Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2017 22:17:07 -0500
From:      Pedro Giffuni <pfg@FreeBSD.org>
To:        portmaster@BSDforge.com
Cc:        Eugene Grosbein <eugen@grosbein.net>, freebsd-ports@freeBSD.org
Subject:   Re: Linux ports tutorial? WPS Office
Message-ID:  <2ca3551a-db23-1c17-2035-c67494f8f542@FreeBSD.org>
In-Reply-To: <73820d5ad4436c73fe47d0b35a112cf5@udns.ultimatedns.net>
References:  <73820d5ad4436c73fe47d0b35a112cf5@udns.ultimatedns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello;


On 13/12/2017 21:11, Chris H wrote:
> On Wed, 13 Dec 2017 19:56:24 -0500 "Pedro Giffuni" <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 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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2ca3551a-db23-1c17-2035-c67494f8f542>