From owner-svn-ports-head@FreeBSD.ORG Sat Dec 29 23:14:25 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CDCB3887; Sat, 29 Dec 2012 23:14:25 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id B19A68FC12; Sat, 29 Dec 2012 23:14:25 +0000 (UTC) Received: from svn.freebsd.org (svn.FreeBSD.org [8.8.178.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBTNEP7f070007; Sat, 29 Dec 2012 23:14:25 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBTNEOGP070001; Sat, 29 Dec 2012 23:14:24 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201212292314.qBTNEOGP070001@svn.freebsd.org> From: Baptiste Daroussin Date: Sat, 29 Dec 2012 23:14:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r309643 - in head: graphics/gphoto2 graphics/gthumb graphics/libopenraw mail/popular x11-toolkits/gtkunique X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Dec 2012 23:14:25 -0000 Author: bapt Date: Sat Dec 29 23:14:24 2012 New Revision: 309643 URL: http://svnweb.freebsd.org/changeset/ports/309643 Log: Convert pav's ports to new options framework While here trim headers Explicitly set USE_PKGCONFIG=build where needed Approved by: pav Modified: head/graphics/gphoto2/Makefile head/graphics/gthumb/Makefile head/graphics/libopenraw/Makefile head/mail/popular/Makefile head/x11-toolkits/gtkunique/Makefile Modified: head/graphics/gphoto2/Makefile ============================================================================== --- head/graphics/gphoto2/Makefile Sat Dec 29 23:10:48 2012 (r309642) +++ head/graphics/gphoto2/Makefile Sat Dec 29 23:14:24 2012 (r309643) @@ -1,9 +1,5 @@ -# New ports collection makefile for: gphoto -# Date created: 26 May 1999 -# Whom: Anders Nordby -# +# Created by: Anders Nordby # $FreeBSD$ -# PORTNAME= gphoto2 PORTVERSION= 2.4.14 @@ -13,11 +9,12 @@ MASTER_SITES= SF/gphoto/gphoto/${PORTVER MAINTAINER= pav@FreeBSD.org COMMENT= A command-line frontend to libgphoto2 -LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \ - gphoto2.2:${PORTSDIR}/graphics/libgphoto2 +LIB_DEPENDS= popt:${PORTSDIR}/devel/popt \ + gphoto2:${PORTSDIR}/graphics/libgphoto2 USE_BZIP2= yes USE_GMAKE= yes +USE_PKGCONFIG= build GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-cdk MAKE_JOBS_SAFE= yes @@ -27,23 +24,25 @@ MAN1= gphoto2.1 CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -OPTIONS= AALIB "Enable command line capture preview (aalib)" on - -.include - -.if defined(WITH_AALIB) -LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib \ - jpeg.11:${PORTSDIR}/graphics/jpeg +OPTIONS_DEFINE= AALIB DOCS NLS +OPTIONS_DEFAULT= AALIB +AALIB_DESC= Command line capture preview (aalib) + +.include + +.if ${PORT_OPTIONS:MAALIB} +LIB_DEPENDS+= aa:${PORTSDIR}/graphics/aalib \ + jpeg:${PORTSDIR}/graphics/jpeg .else CONFIGURE_ARGS+=--without-aalib --without-jpeg .endif -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.else +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " .endif post-patch: @@ -51,10 +50,10 @@ post-patch: s|-g -Wall||g' ${WRKSRC}/configure post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} .for file in NEWS ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} .endfor .endif -.include +.include Modified: head/graphics/gthumb/Makefile ============================================================================== --- head/graphics/gthumb/Makefile Sat Dec 29 23:10:48 2012 (r309642) +++ head/graphics/gthumb/Makefile Sat Dec 29 23:14:24 2012 (r309643) @@ -1,9 +1,5 @@ -# New ports collection makefile for: gThumb2 -# Date created: 17 Aug 2002 -# Whom: Joe Marcus Clarke -# +# Created by: Joe Marcus Clarke # $FreeBSD$ -# PORTNAME= gthumb PORTVERSION= 2.14.1 @@ -25,6 +21,7 @@ USE_GMAKE= yes USE_GNOME= gnomeprefix gnomehack intlhack gnomedocutils gconf2 WANT_GSTREAMER= yes USE_LDCONFIG= yes +USE_PKGCONFIG= build GNU_CONFIGURE= yes INSTALLS_ICONS= yes CPPFLAGS+= -I${LOCALBASE}/include @@ -39,17 +36,18 @@ GCONF_SCHEMAS= gthumb.schemas gthumb-com PLIST_SUB= GTHUMB_VER=2.14 -OPTIONS= EXIV2 "Exif support (image metadata)" On \ - CLUTTER "Fancy slideshows" On \ - GSTREAMER "Video playback" On \ - OPENRAW "Support for camera RAW files" On \ - SOUP "Web services uploaders" On \ - BRASERO "Write galleries to CD/DVD (large dependency)" On \ - YELP "Viewer for built-in help system" On +OPTIONS_DEFINE= EXIV2 CLUTTER GSTREAMER OPENRAW SOUP BRASERO YELP +OPTIONS_DEFAULT= EXVI2 CLUTTER GSTREAMER OPENRAW SOUP BRASERO YELP +CLUTTER_DESC= Fancy slideshows +GSTREAMER_DESC= Video playback +OPENRAW_DESC= Support for camera RAW files +SOUP_DESC= Web services uploaders +BRASERO_DESC= Write galleries to CD/DVD (large dependency) +YELP_DESC= Viewer for built-in help system -.include +.include -.if defined(WITH_EXIV2) +.if ${PORT_OPTIONS:MEXIV2} LIB_DEPENDS+= exiv2.12:${PORTSDIR}/graphics/exiv2 CONFIGURE_ARGS+=--enable-exiv2 PLIST_SUB+= EXIV2="" @@ -58,14 +56,14 @@ CONFIGURE_ARGS+=--disable-exiv2 PLIST_SUB+= EXIV2="@comment " .endif -.if defined(WITH_CLUTTER) +.if ${PORT_OPTIONS:MCLUTTER} LIB_DEPENDS+= clutter-gtk-0.10.0:${PORTSDIR}/graphics/clutter-gtk CONFIGURE_ARGS+=--enable-clutter .else CONFIGURE_ARGS+=--disable-clutter .endif -.if defined(WITH_GSTREAMER) +.if ${PORT_OPTIONS:MGSTREAMER} USE_GSTREAMER= yes CONFIGURE_ARGS+=--enable-gstreamer PLIST_SUB+= GSTREAMER="" @@ -75,14 +73,14 @@ CONFIGURE_ARGS+=--disable-gstreamer PLIST_SUB+= GSTREAMER="@comment " .endif -.if defined(WITH_OPENRAW) +.if ${PORT_OPTIONS:MOPENRAW} LIB_DEPENDS+= openrawgnome.6:${PORTSDIR}/graphics/libopenraw CONFIGURE_ARGS+=--enable-libopenraw .else CONFIGURE_ARGS+=--disable-libopenraw .endif -.if defined(WITH_SOUP) +.if ${PORT_OPTIONS:MSOUP} LIB_DEPENDS+= soup-gnome-2.4.1:${PORTSDIR}/devel/libsoup-gnome CONFIGURE_ARGS+=--enable-libsoup --enable-gnome-keyring PLIST_SUB+= SOUP="" @@ -92,7 +90,7 @@ CONFIGURE_ARGS+=--disable-libsoup --disa PLIST_SUB+= SOUP="@comment " .endif -.if defined(WITH_BRASERO) +.if ${PORT_OPTIONS:MBRASERO} LIB_DEPENDS+= brasero-burn.3:${PORTSDIR}/sysutils/brasero CONFIGURE_ARGS+=--enable-libbrasero PLIST_SUB+= BRASERO="" @@ -101,8 +99,8 @@ CONFIGURE_ARGS+=--disable-libbrasero PLIST_SUB+= BRASERO="@comment " .endif -.if defined(WITH_YELP) +.if ${PORT_OPTIONS:MYELP} RUN_DEPENDS+= yelp:${PORTSDIR}/x11/yelp .endif -.include +.include Modified: head/graphics/libopenraw/Makefile ============================================================================== --- head/graphics/libopenraw/Makefile Sat Dec 29 23:10:48 2012 (r309642) +++ head/graphics/libopenraw/Makefile Sat Dec 29 23:14:24 2012 (r309643) @@ -1,9 +1,5 @@ -# New ports collection makefile for: libopenraw -# Date created: 21 Mar 2007 -# Whom: Pav Lucistnik -# +# Created by: Pav Lucistnik # $FreeBSD$ -# PORTNAME= libopenraw PORTVERSION= 0.0.8 @@ -20,16 +16,18 @@ LIB_DEPENDS= boost_thread.4:${PORTSDIR}/ MAKE_JOBS_SAFE= yes USE_GNOME= libxml2 USE_LDCONFIG= yes +USE_PKGCONFIG= build GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS= --with-boost=${LOCALBASE}/include -OPTIONS= GNOME "GNOME support (needs gtk20)" on +OPTIONS_DEFINE= GNOME +OPTIONS_DEFAULT= GNOME -.include +.include -.if !defined(WITHOUT_GNOME) +.if ${PORT_OPTIONS:MGNOME} USE_GNOME= gtk20 PLIST_SUB+= GNOME="" .else @@ -37,12 +35,8 @@ CONFIGURE_ARGS+=--disable-gnome PLIST_SUB+= GNOME="@comment " .endif -.if ${OSVERSION} < 700000 -BROKEN= does not configure on 6.X -.endif - post-patch: @${REINPLACE_CMD} -e 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|testsuite ||' ${WRKSRC}/Makefile.in -.include +.include Modified: head/mail/popular/Makefile ============================================================================== --- head/mail/popular/Makefile Sat Dec 29 23:10:48 2012 (r309642) +++ head/mail/popular/Makefile Sat Dec 29 23:14:24 2012 (r309643) @@ -1,9 +1,5 @@ -# New ports collection makefile for: popular -# Date created: 11 July 2005 -# Whom: Pav Lucistnik -# +# Created by: Pav Lucistnik # $FreeBSD$ -# PORTNAME= popular PORTVERSION= 1.5.5 @@ -35,11 +31,13 @@ MAN1= pcheck.1 pcontrol.1 pdeliver.1 ps MAN7= popular-log.7 MAN8= pcheckd.8 pproxy.8 pserv.8 ringd.8 -OPTIONS= DB4 "Build db4 pdm module" on +OPTIONS_DEFINE= DB4 +OPTIONS_DEFAULT= DB4 +DB4_DESC= Build db4 pdm module -.include +.include -.if !defined(WITHOUT_DB4) +.if ${PORT_OPTIONS:MDB4} LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4 PLIST_SUB+= WITH_DB4="" PDM_MODULES+= db4 @@ -54,4 +52,4 @@ post-install: ${MKDIR} ${PREFIX}/include/popular ${FIND} ${WRKSRC}/src -name *.h | ${XARGS} -n 1 -J % ${INSTALL_DATA} % ${PREFIX}/include/popular -.include +.include Modified: head/x11-toolkits/gtkunique/Makefile ============================================================================== --- head/x11-toolkits/gtkunique/Makefile Sat Dec 29 23:10:48 2012 (r309642) +++ head/x11-toolkits/gtkunique/Makefile Sat Dec 29 23:14:24 2012 (r309643) @@ -1,9 +1,5 @@ -# New ports collection makefile for: GtkUnique -# Date created: 21 Mar 2007 -# Whom: Pav Lucistnik -# +# Created by: Pav Lucistnik # $FreeBSD$ -# PORTNAME= gtkunique PORTVERSION= 0.9.1 @@ -20,23 +16,25 @@ USE_AUTOTOOLS= libtool USE_GETTEXT= yes USE_GNOME= gtk20 ltverhack USE_LDCONFIG= yes +USE_PKGCONFIG= build GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS= DBUS "D-Bus backend" on +OPTIONS_DEFINE= DBUS +OPTIONS_DEFAULT= DBUS -.include +.include -.if defined(WITHOUT_DBUS) -PLIST_SUB+= DBUS="@comment " XLIBS="" -.else +.if ${PORT_OPTIONS:MDBUS} LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib PLIST_SUB+= DBUS="" XLIBS="@comment " +.else +PLIST_SUB+= DBUS="@comment " XLIBS="" .endif post-patch: @${REINPLACE_CMD} -e 's|-Werror ||' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/Makefile.in -.include +.include