[patch] devel/libgsf: make GCONF really OPTIONal
Alexey Dokuchaev
danfe at nsu.ru
Fri Feb 22 16:35:56 UTC 2013
hi there,
it's a bit inconvenient to manually specify WITHOUT_GCONF every time i
build devel/libgsf. mind if i commit attached patch?
./danfe
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile (revision 312694)
+++ Makefile (working copy)
@@ -1,10 +1,6 @@
-# New ports collection makefile for: libgsf
-# Date created: 11 September 2002
-# Whom: Maxim Sobolev <sobomax at FreeBSD.org>
-#
+# Created by: Maxim Sobolev <sobomax at FreeBSD.org>
# $FreeBSD$
# $MCom: ports/devel/libgsf/Makefile,v 1.35 2010/04/10 08:51:15 kwm Exp $
-#
PORTNAME= libgsf
PORTVERSION= 1.14.21
@@ -14,7 +10,7 @@
DIST_SUBDIR= gnome2
MAINTAINER= gnome at FreeBSD.org
-COMMENT?= An extensible i/o abstraction for dealing with structured file formats
+COMMENT?= Extensible I/O abstraction for dealing with structured file formats
.if !exists(/usr/lib/libbz2.so)
LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
@@ -35,7 +31,12 @@
MAN1= gsf.1 gsf-office-thumbnailer.1 gsf-vba-dump.1
.endif
-.if !defined(WITHOUT_GCONF) || exists(${LOCALBASE}/bin/gconftool-2)
+OPTIONS_DEFINE= GCONF
+OPTIONS_DEFAULT= GCONF
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGCONF} || exists(${LOCALBASE}/bin/gconftool-2)
USE_GNOME+= gconf2
PLIST_SUB+= THUMB=""
. if !defined(GSF_SLAVE)
More information about the freebsd-gnome
mailing list