Date: Sun, 10 Dec 2017 15:42:31 -0500 From: Pedro Giffuni <pfg@FreeBSD.org> To: Eugene Grosbein <eugen@grosbein.net>, freebsd-ports@freeBSD.org Subject: Re: Linux ports tutorial? WPS Office Message-ID: <f15fc5c9-8267-4d9a-5f86-6b2b1bc876a1@FreeBSD.org> In-Reply-To: <5A2D912D.50204@grosbein.net> References: <3294bc10-633b-903d-1392-87447dcd05fd@FreeBSD.org> <5A2D912D.50204@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f15fc5c9-8267-4d9a-5f86-6b2b1bc876a1>