Date: Sat, 16 Dec 2017 18:04:55 +0100 From: Tijl Coosemans <tijl@FreeBSD.org> To: Pedro Giffuni <pfg@FreeBSD.org> Cc: portmaster@BSDforge.com, FreeBSD Ports <freebsd-ports@freebsd.org>, blubee blubeeme <gurenchan@gmail.com> Subject: Re: Linux ports tutorial? WPS Office Message-ID: <20171216180455.111e38ec@kalimero.tijl.coosemans.org> In-Reply-To: <bdbd64cd-c9a8-bb8c-881c-0d6c898bf327@FreeBSD.org> References: <79074ba82ad8bd59f24678b21133bfe1@udns.ultimatedns.net> <bdbd64cd-c9a8-bb8c-881c-0d6c898bf327@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Dec 2017 18:27:10 -0500 Pedro Giffuni <pfg@FreeBSD.org> wrote: > The port still doesn't work: > - It appears it wants to use a old version of libpng that is not in our > centos7. > - USE_RPM doesn't install anything, it seems like we are missing support > for non-base RPMs. > > I think I'll bail on this port, it requires some packaging-foo that I > don't want to spend time on. > > I'll leave my WIP here, for someone else to play with it: > > https://people.freebsd.org/~pfg/ports/linux-wps-office.tgz USE_LINUX_RPM is only for Linux infrastructure ports. You should remove that and add your own do-install. You also need NO_WRKSUBDIR=yes and PLIST_SUB=LINUXBASE=${LINUXBASE}. The do-install target should copy WRKSRC/opt and WRKSRC/usr/bin to ${STAGEDIR}${LINUXBASE}. WRKSRC/etc and WRKSRC/usr/share look like they should go to ${STAGEDIR}${PREFIX}. Then you also need to add startup scripts for et, wpp and wps containing something like this: #! /bin/sh exec /compat/linux/bin/sh /usr/bin/et "$@" And let do-install copy them to ${STAGEDIR}${PREFIX/bin. You also need to replace /usr/bin with ${PREFIX} in .desktop files. I would also add -office to PORTNAME and remove PKGNAMESUFFIX. The old libpng it is looking for is in CentOS 6, so USES=linux:c7 won't work. For now it's best to simply use USES=linux.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171216180455.111e38ec>