Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2013 17:52:17 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r313123 - head/graphics/liblqr-1
Message-ID:  <201302281752.r1SHqHC9088369@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Feb 28 17:52:16 2013
New Revision: 313123
URL: http://svnweb.freebsd.org/changeset/ports/313123

Log:
  - OptionsNG
  - Trim header
  - Sort out HTMLDOCS installation
  - Don't depend on unnecessary glib parts [1]
  
  PR:		176391 [1]
  Submitted by:	Reko Turja <reko.turja@liukuma.net>

Modified:
  head/graphics/liblqr-1/Makefile
  head/graphics/liblqr-1/pkg-plist

Modified: head/graphics/liblqr-1/Makefile
==============================================================================
--- head/graphics/liblqr-1/Makefile	Thu Feb 28 17:49:57 2013	(r313122)
+++ head/graphics/liblqr-1/Makefile	Thu Feb 28 17:52:16 2013	(r313123)
@@ -1,13 +1,9 @@
-# New ports collection makefile for:	liblqr-1
-# Date created:		30 Jan 2008
-# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
-#
+# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	liblqr-1
 DISTVERSION=	0.4.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	graphics
 MASTER_SITES=	http://liblqr.wdfiles.com/local--files/en:download-page/ \
 		http://mirror.amdmi3.ru/distfiles/
@@ -18,7 +14,7 @@ COMMENT=	An easy to use C/C++ seam carvi
 GNU_CONFIGURE=	yes
 USE_BZIP2=	yes
 USE_GMAKE=	yes
-USE_GNOME=	glib20 pkgconfig
+USE_GNOME=	_glib20 pkgconfig
 USE_GETTEXT=	yes
 MAKE_JOBS_SAFE=	yes
 USE_LDCONFIG=	yes
@@ -26,23 +22,25 @@ USE_LDCONFIG=	yes
 # Use GNU89 inline semantics
 USE_CSTD=	gnu89
 
-.if !defined(NOPORTEXAMPLES)
 PORTEXAMPLES=	*
 
+OPTIONS_DEFINE=	EXAMPLES HTMLDOCS
+HTMLDOCS_DESC=	Build and install HTML documentation
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MEXAMPLES}
 SUB_FILES=	pkg-message
 SUB_LIST=	PORTSDIR=${PORTSDIR}
 .endif
 
-OPTIONS=	HTMLDOCS	"Build and install HTML documentation"	off
-
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_HTMLDOCS) && !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MHTMLDOCS}
 BUILD_DEPENDS+=	${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt \
 		${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \
 		${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml-450
-
-PORTDOCS=	*
+PLIST_SUB=	HTMLDOCS=""
+.else
+PLIST_SUB=	HTMLDOCS="@comment "
 .endif
 
 post-patch:
@@ -53,17 +51,17 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|/usr.*docbookx.dtd|${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd|' \
 		${WRKSRC}/docs/liblqr_manual.docbook
 
+.if ${PORT_OPTIONS:MHTMLDOCS}
 post-build:
-.if defined(WITH_HTMLDOCS) && !defined(NOPORTDOCS)
 	cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} ${MAKE} html
 .endif
 
 post-install:
-.if defined(WITH_HTMLDOCS) && !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MHTMLDOCS}
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/docs/html/* ${DOCSDIR}
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
 
@@ -72,4 +70,4 @@ post-install:
 .endif
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/graphics/liblqr-1/pkg-plist
==============================================================================
--- head/graphics/liblqr-1/pkg-plist	Thu Feb 28 17:49:57 2013	(r313122)
+++ head/graphics/liblqr-1/pkg-plist	Thu Feb 28 17:52:16 2013	(r313123)
@@ -17,3 +17,107 @@ lib/liblqr-1.so.3
 libdata/pkgconfig/lqr-1.pc
 @dirrm include/lqr-1/lqr
 @dirrm include/lqr-1
+%%HTMLDOCS%%%%DOCSDIR%%/Introduction.html
+%%HTMLDOCS%%%%DOCSDIR%%/about-this-doc.html
+%%HTMLDOCS%%%%DOCSDIR%%/api-manual.html
+%%HTMLDOCS%%%%DOCSDIR%%/app-deprecated.html
+%%HTMLDOCS%%%%DOCSDIR%%/app-new-0-2.html
+%%HTMLDOCS%%%%DOCSDIR%%/app-new-0-3.html
+%%HTMLDOCS%%%%DOCSDIR%%/app-new.html
+%%HTMLDOCS%%%%DOCSDIR%%/attach-images.html
+%%HTMLDOCS%%%%DOCSDIR%%/basic.html
+%%HTMLDOCS%%%%DOCSDIR%%/bias.html
+%%HTMLDOCS%%%%DOCSDIR%%/energy.html
+%%HTMLDOCS%%%%DOCSDIR%%/generate-multi-size.html
+%%HTMLDOCS%%%%DOCSDIR%%/index.html
+%%HTMLDOCS%%%%DOCSDIR%%/lqr.html
+%%HTMLDOCS%%%%DOCSDIR%%/overview.html
+%%HTMLDOCS%%%%DOCSDIR%%/progress.html
+%%HTMLDOCS%%%%DOCSDIR%%/read-out.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-bias.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-carve.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-energy.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-attach.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-bias-add.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-bias-clear.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-cancel.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-destroy.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-flatten.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-channels.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-col-depth.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-depth.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-energy.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-enl-step.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-height.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-image-type.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-orientation.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-ref-height.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-ref-width.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-get-width.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-init.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-list-current.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-list-foreach.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-list-next.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-list-start.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-new.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-resize.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-rigmask-add.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-rigmask-clear.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-scan-by-row.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-scan-line.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-scan-reset.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-scan.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-alpha-channel.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-black-channel.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-dump-vmaps.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-energy-function-builtin.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-energy-function.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-enl-step.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-gradient-function.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-image-type.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-preserve-input-image.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-progress.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-resize-order.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-side-switch-frequency.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-carver-set-use-cache.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-col-depth.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-image-type.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-progress-new.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-progress-set-end-height-message.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-progress-set-end-width-message.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-progress-set-end.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-progress-set-init-height-message.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-progress-set-init-width-message.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-progress-set-init.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-progress-set-update-step.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-progress-set-update.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-ret-val.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-rwindow-get-channels.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-rwindow-get-radius.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-rwindow-get-read-t.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-rwindow-read.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-destroy.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-dump.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-get-data.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-get-depth.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-get-height.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-get-orientation.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-get-width.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-internal-dump.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-list-current.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-list-foreach.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-list-next.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-list-start.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-load.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-lqr-vmap-new.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-pages.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-progress.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-rigmask.html
+%%HTMLDOCS%%%%DOCSDIR%%/ref-vmaps.html
+%%HTMLDOCS%%%%DOCSDIR%%/references.html
+%%HTMLDOCS%%%%DOCSDIR%%/release.html
+%%HTMLDOCS%%%%DOCSDIR%%/rigmask.html
+%%HTMLDOCS%%%%DOCSDIR%%/seam-carve.html
+%%HTMLDOCS%%%%DOCSDIR%%/tuning.html
+%%HTMLDOCS%%%%DOCSDIR%%/vmaps.html
+%%HTMLDOCS%%@dirrm %%DOCSDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302281752.r1SHqHC9088369>