aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/vidalia/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-04-23 11:31:05 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-04-23 11:31:05 +0000
commit3beb256659a94751d92fab61f3a3d9bdc16f89e8 (patch)
tree65b38e7a9d03046fdd2596977f0d550fd3027207 /net-mgmt/vidalia/Makefile
parent6ffd6b1352cb39afe6d838f198f5084a139fe346 (diff)
Notes
Diffstat (limited to 'net-mgmt/vidalia/Makefile')
-rw-r--r--net-mgmt/vidalia/Makefile21
1 files changed, 15 insertions, 6 deletions
diff --git a/net-mgmt/vidalia/Makefile b/net-mgmt/vidalia/Makefile
index b4e8b65a2ad1..b94ac6bb292c 100644
--- a/net-mgmt/vidalia/Makefile
+++ b/net-mgmt/vidalia/Makefile
@@ -7,6 +7,7 @@
PORTNAME= vidalia
PORTVERSION= 0.0.11
+PORTREVISION= 1
CATEGORIES= net-mgmt security
MASTER_SITES= http://vidalia-project.net:8001/\
http://tor.eff.org/dist/vidalia-bundles/
@@ -23,24 +24,29 @@ USE_GMAKE= yes
USE_QT_VER= 4
QT_COMPONENTS= gui moc qmake rcc uic network xml linguist
-OPTIONS= TOR_DEVEL "Depend on tor-devel" On \
- TOR "Depend on tor" Off
+HAVE_TOR!= if pkg_info -I tor-\* >/dev/null 2>&1 ; then ${ECHO} YES; fi
+.if (${HAVE_TOR} == "YES")
HAVE_TOR_DEVEL!= if pkg_info -I tor-devel\* >/dev/null 2>&1 ; then ${ECHO} YES; fi
+
.if (${HAVE_TOR_DEVEL} == "YES")
OPTIONS= TOR_DEVEL "Depend on tor-devel (already installed)" On
.else
-HAVE_TOR_DEVEL!= if pkg_info -I tor-\* >/dev/null 2>&1 ; then ${ECHO} YES; fi
-.endif
-.if (defined(HAVE_TOR) && ${HAVE_TOR} == "YES")
OPTIONS= TOR "Depend on tor (already installed)" On
.endif
+.else
+
+OPTIONS= TOR_DEVEL "Depend on tor-devel" On \
+ TOR "Depend on tor" Off
+
+.endif
+
.include <bsd.port.pre.mk>
.if defined(WITH_TOR_DEVEL)
.if defined(WITH_TOR)
-IGNORE= cannot depend on tor and tor-devel at the same time
+IGNORE= cannot depend on tor and tor-devel at the same time
.endif
RUN_DEPENDS+= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel
.elif defined(WITH_TOR)
@@ -50,6 +56,9 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor
pre-extract:
@${CAT} ${PKGMESSAGE}
+post-extract:
+ ${REINPLACE_CMD} -e 's@/bin/lrelease@/bin/lrelease-qt4@' ${WRKSRC}/configure
+
post-configure:
.if defined(TOR_CONTROL_ADDR)
${REINPLACE_CMD} -e 's@127\.0\.0\.1@${TOR_CONTROL_ADDR}@' ${WRKSRC}/src/config/torsettings.cpp