From owner-svn-ports-all@FreeBSD.ORG Mon Jun 15 19:34:06 2015 Return-Path: Delivered-To: svn-ports-all@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBD58B44; Mon, 15 Jun 2015 19:34:06 +0000 (UTC) (envelope-from acm@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8DF46F50; Mon, 15 Jun 2015 19:34:06 +0000 (UTC) (envelope-from acm@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5FJY6Nk027367; Mon, 15 Jun 2015 19:34:06 GMT (envelope-from acm@FreeBSD.org) Received: (from acm@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5FJY6Om027366; Mon, 15 Jun 2015 19:34:06 GMT (envelope-from acm@FreeBSD.org) Message-Id: <201506151934.t5FJY6Om027366@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: acm set sender to acm@FreeBSD.org using -f From: Jose Alonso Cardenas Marquez Date: Mon, 15 Jun 2015 19:34:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r389747 - head/multimedia/winff X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2015 19:34:06 -0000 Author: acm Date: Mon Jun 15 19:34:05 2015 New Revision: 389747 URL: https://svnweb.freebsd.org/changeset/ports/389747 Log: - Add LCL OPTIONS (GTK1, GTK2 and QT) - Clean up Approved by: thierry (maintainer) Modified: head/multimedia/winff/Makefile Modified: head/multimedia/winff/Makefile ============================================================================== --- head/multimedia/winff/Makefile Mon Jun 15 19:23:17 2015 (r389746) +++ head/multimedia/winff/Makefile Mon Jun 15 19:34:05 2015 (r389747) @@ -14,12 +14,12 @@ COMMENT= Convert your videos quickly, ea LICENSE= GPLv3 -BUILD_DEPENDS= fpc:${PORTSDIR}/lang/fpc \ - lazbuild:${PORTSDIR}/editors/lazarus +BUILD_DEPENDS= lazbuild:${PORTSDIR}/editors/lazarus LIB_DEPENDS= libavutil.so:${PORTSDIR}/multimedia/ffmpeg NO_WRKSUBDIR= yes -USE_GNOME= gtk20 +USE_FPC= yes +USE_GNOME= # _PORTNAME= ${PORTNAME:tl} DATADIR= ${PREFIX}/share/${_PORTNAME} DOCSDIR= ${PREFIX}/share/doc/${_PORTNAME} @@ -35,6 +35,38 @@ DESKTOP_ENTRIES= "${PORTNAME}" \ LAZBUILD_CMD= ${LOCALBASE}/bin/lazbuild -d LAZARUS_VER= 1.4.0 LAZARUS_DIR= ${LOCALBASE}/share/lazarus-${LAZARUS_VER} +LCL_UNITS_DIR= ${LOCALBASE}/share/lazarus-${LAZARUS_VER}/lcl/units/${BUILDNAME} + +OPTIONS_SINGLE= LCL +OPTIONS_SINGLE_LCL= GTK1 GTK2 QT4 + +GTK1_DESC= Use gtk12 interface +GTK2_DESC= Use gtk20 interface +QT4_DESC= Use qt4 interface + +OPTIONS_DEFAULT= GTK2 + +.include + +.if ${PORT_OPTIONS:MGTK2} +USE_FPC+= gtk2 +USE_GNOME= gtk20 +LCL_PLATFORM= gtk2 +BUILD_DEPENDS+= ${LCL_UNITS_DIR}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-gtk2 +.endif + +.if ${PORT_OPTIONS:MGTK1} +USE_FPC+= gtk1 +USE_GNOME= gtk12 gdkpixbuf +LCL_PLATFORM= gtk +BUILD_DEPENDS+= ${LCL_UNITS_DIR}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-gtk +.endif + +.if ${PORT_OPTIONS:MQT4} +LIB_DEPENDS+= libQt4Pas.so:${PORTSDIR}/x11-toolkits/qt4pas +LCL_PLATFORM= qt +BUILD_DEPENDS+= ${LCL_UNITS_DIR}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-qt +.endif pre-configure: ${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' ${WRKSRC}/unit1.pas @@ -43,7 +75,7 @@ pre-configure: .endfor do-build: - cd ${WRKSRC} && ${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} -B winff.lpr + cd ${WRKSRC} && ${LAZBUILD_CMD} --ws=${LCL_PLATFORM} --lazarusdir=${LAZARUS_DIR} -B winff.lpr do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:tl} ${STAGEDIR}${PREFIX}/bin @@ -55,4 +87,4 @@ do-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${STAGEDIR}${DOCSDIR} -.include +.include