From 4ba2916ed36bbcfc6147e45413ff5a58a2d07ce0 Mon Sep 17 00:00:00 2001 From: acm Date: Mon, 7 May 2012 19:23:07 +0000 Subject: - Use new lazarus-* structure - Bump PORTREVISION --- net-p2p/transmission-remote-gui/Makefile | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'net-p2p') diff --git a/net-p2p/transmission-remote-gui/Makefile b/net-p2p/transmission-remote-gui/Makefile index 0206df125563..485978c83fbf 100644 --- a/net-p2p/transmission-remote-gui/Makefile +++ b/net-p2p/transmission-remote-gui/Makefile @@ -7,6 +7,7 @@ PORTNAME= transmission-remote-gui PORTVERSION= 3.2 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} DISTNAME= transgui-${PORTVERSION}-src @@ -22,6 +23,8 @@ PROJECTHOST= transmisson-remote-gui USE_ZIP= yes USE_FPC= fcl-net +USE_ICONV= yes +USE_GNOME= # WRKSRC= ${WRKDIR}/TransGUI PLIST_FILES= bin/transgui @@ -29,11 +32,35 @@ SUB_FILES= pkg-message LAZARUS_PROJECT_FILE= transgui.lpi LAZBUILD_CMD= ${LOCALBASE}/bin/lazbuild +LCL_UNITS_DIR= ${LOCALBASE}/share/lazarus/lcl/units/${BUILDNAME} + +OPTIONS= GTK2 "Use gtk20 interface instead of gtk12" on \ + QT4 "Use qt4 interface" off .include -.if exists(${LOCALBASE}/bin/lazbuild) && exists(${LOCALBASE}/etc/lazbuild.cfg) -.include "${LOCALBASE}/etc/lazbuild.cfg" +.if defined(WITH_GTK2) && defined(WITH_QT4) +IGNORE= Please select only one option QT4 or GTK2, don't select both options +.endif + +.if defined(WITH_GTK2) +USE_FPC+= gtk2 +USE_GNOME= gtk20 gdkpixbuf +LCL_PLATFORM= gtk2 +BUILD_DEPENDS+= ${LCL_UNITS_DIR}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-gtk2 +.else +.if !defined(WITH_QT4) +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 +.endif + +.if defined(WITH_QT4) +LIB_DEPENDS+= Qt4Pas.5:${PORTSDIR}/x11-toolkits/qt4pas +LCL_PLATFORM= qt +BUILD_DEPENDS+= ${LCL_UNITS_DIR}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-qt .endif do-build: -- cgit