From owner-freebsd-ports@FreeBSD.ORG Thu Apr 26 12:34:57 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B5F821065672 for ; Thu, 26 Apr 2012 12:34:57 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward12.mail.yandex.net (forward12.mail.yandex.net [IPv6:2a02:6b8:0:801::2]) by mx1.freebsd.org (Postfix) with ESMTP id 364168FC1F for ; Thu, 26 Apr 2012 12:34:57 +0000 (UTC) Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward12.mail.yandex.net (Yandex) with ESMTP id C9E0DC20DA1; Thu, 26 Apr 2012 16:34:55 +0400 (MSK) Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id A7F8C1B60146; Thu, 26 Apr 2012 16:34:55 +0400 (MSK) Received: from 87.249.28.58.tel.ru (87.249.28.58.tel.ru [87.249.28.58]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Yt2OLRhC-Yt2m8qPb; Thu, 26 Apr 2012 16:34:55 +0400 Message-ID: <4F9940EE.4010509@passap.ru> Date: Thu, 26 Apr 2012 16:34:54 +0400 From: Boris Samorodov User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120425 Thunderbird/12.0 MIME-Version: 1.0 To: Mikle Krutov References: <20120426080813.GA52311@takino.org> In-Reply-To: <20120426080813.GA52311@takino.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: ports@freebsd.org Subject: Re: Problems with wrtiting new port: plugin installation X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 12:34:57 -0000 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