Date: Thu, 26 Apr 2012 16:34:54 +0400 From: Boris Samorodov <bsam@passap.ru> To: Mikle Krutov <neko@takino.org> Cc: ports@freebsd.org Subject: Re: Problems with wrtiting new port: plugin installation Message-ID: <4F9940EE.4010509@passap.ru> In-Reply-To: <20120426080813.GA52311@takino.org> References: <20120426080813.GA52311@takino.org>
next in thread | previous in thread | raw e-mail | index | archive | help
26.04.2012 12:08, Mikle Krutov написал: > Hello ports@! > So, in my Makefile of graphics/zathura I have: > > OPTIONS= POPPLERPDF "Poppler PDF Viewer Plugin" On \ > MUPDF "MuPDF Viewer Plugin" Off > > And, slightly later: > > .if defined (WITH_POPPLERPDF) > RUN_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/zathura-pdf-poppler > .endif > .if defined (WITH_MUPDF) > RUN_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/zathura-pdf-mupdf > .endif > > (All the ports in attached shar archive) > > While it works OK on writing options I choose (in > /var/db/ports/zathura), it does not work for actual compiling of the > plugins: ports system just does nothing after zathura installation. > > What am I doing wrong? 1. Use actual file instead of ${NONEXISTENT} and the dependency will be tracked. 2. Use "+=" instead plain "=" to _add_ a dependency. > I've talked the situation over with MAINTAINER, and he recommends just > to have an echo with 'You have to install blah-blah-blah' in > post-install, which I do not like. -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F9940EE.4010509>