From owner-freebsd-ports@FreeBSD.ORG Thu Apr 26 08:14:45 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58CA5106566C for ; Thu, 26 Apr 2012 08:14:45 +0000 (UTC) (envelope-from neko@takino.org) Received: from takino.org (mygate.battleship-potemkin.com [46.4.160.34]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4918FC08 for ; Thu, 26 Apr 2012 08:14:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by takino.org (Postfix) with ESMTP id 2142261C20; Thu, 26 Apr 2012 11:59:27 +0400 (GMT-4) Date: Thu, 26 Apr 2012 12:08:13 +0400 From: Mikle Krutov To: ports@freebsd.org Message-ID: <20120426080813.GA52311@takino.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: 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 08:14:45 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello ports@! I'm updating now the graphics/zathura port [1] Its developer has slightly changed the program to support plugins. So after installation of new version I need to install some plugin to view differents types of documents. For now, PDF, DJVU and some other plugins exist. 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? 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. Also is there any way to have after-install LIB_DEPENDS in ports? Because ${NONEXISTENT} is kludgy, and plugins are .so in $LOCALBASE/lib/zathura? [1] http://pwmt.org/projects/zathura/ -- Krutov Mihail || Takino.org --FL5UXtIhxfXey3p5--