freebsd-ports/graphics/nip2/Makefile
Mikhail Teterin 84ef40b4fa Unbreak and update the two ports to the latest version of 7.12.4.
Take over maintainership temporarily upon request from the software's
author(s), who were unable to reach the previous maintainer.

In both:
	- use explict --mandir=${PREFIX}/man to avoid man-pages getting
	  into ${PREFIX}/shared/man incorrectly
	- deal with the NOPORTDOCS situation by simply not-extracting
	  the extra documentation from the distribution tarball
	- parallelize the build to scale with the number of CPUs

In vips:
	- move the (giant) list of man-pages into a separate Makefile.man
	- turn the pages, which contain only `.so other-page', into
	  MANLINKS (specified in Makefile.man)
	- provide a "maintainance target" to regenerate the Makefile.man
	  during the next upgrade
	- do not install the HTML-ized versions of man-pages
	- create OPTIONS for use of devel/liboil and graphics/ImageMagick
	  (OPTION to use PYTHON awaits portmgr's decision/action)

In nip2:
	- do install the HTML pages regardless of NOPORTDOCS -- these
	  are accessible to the user through the application GUI
	- arrange for update-mime-database and update-desktop-database
	  to be run upon install (@exec) and uninstall (@unexec)
	- LIB_DEPEND on math/gsl, which nip2 can use for extra functionality

These ports are in need of a dedicated maintainer.

Approved by:	maintainer timeout
2007-08-19 16:50:23 +00:00

41 lines
1.2 KiB
Makefile

# New ports collection makefile for: vips
# Date created: 19 December 2003
# Whom: Lev Serebryakov <lev@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nip2
PORTVERSION= 7.12.4
CATEGORIES= graphics
MASTER_SITES= http://www.vips.ecs.soton.ac.uk/vips-${PORTVERSION:R}/
MAINTAINER= mi@aldan.algebra.com
COMMENT= Graphical user interface for VIPS
LIB_DEPENDS= vips:${PORTSDIR}/graphics/vips \
gsl:${PORTSDIR}/math/gsl \
xml2:${PORTSDIR}/textproc/libxml2
USE_GMAKE= yes
USE_GNOME= gnomemimedata glib20 pkgconfig gtk20
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --mandir=${PREFIX}/man
ALL_TARGET= -j`${SYSCTL} -n hw.ncpu`
# This port has no man-pages. It installs a number of HTML files,
# which are available through the GUI's Help. For this reason, they
# are always installed, regardless of the NOPORTDOCS setting.
# The PDF version of the documentation is another story:
.if defined(NOPORTDOCS)
EXTRACT_AFTER_ARGS=|${TAR} -xpf - --exclude nipguide --exclude pdf
.endif
# Somehow vendor's configure misses these:
MAKE_ENV+= UPDATE_MIME_DATABASE=update-mime-database \
UPDATE_DESKTOP_DATABASE=update-desktop-database
MAN1= nip2.1
post-patch:
${REINPLACE_CMD} -e 's, malkovich,,' ${WRKSRC}/configure
.include <bsd.port.mk>