aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2012-05-08 03:23:07 +0800
committeracm <acm@FreeBSD.org>2012-05-08 03:23:07 +0800
commit4ba2916ed36bbcfc6147e45413ff5a58a2d07ce0 (patch)
treea1ef6a5e92d3a7f528faf07ef426c15f0a5e2705 /net-p2p
parent92812cca569221965faa41a1ecd03b5f991201cd (diff)
downloadfreebsd-ports-gnome-4ba2916ed36bbcfc6147e45413ff5a58a2d07ce0.tar.gz
freebsd-ports-gnome-4ba2916ed36bbcfc6147e45413ff5a58a2d07ce0.tar.zst
freebsd-ports-gnome-4ba2916ed36bbcfc6147e45413ff5a58a2d07ce0.zip
- Use new lazarus-* structure
- Bump PORTREVISION
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission-remote-gui/Makefile31
1 files changed, 29 insertions, 2 deletions
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 <bsd.port.pre.mk>
-.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: