# New ports collection makefile for: rtgui # Date created: 14 December 2008 # Whom: Philippe Audeoud # # $FreeBSD: ports/net-p2p/rtgui/Makefile,v 1.2 2007/12/23 15:28:35 nobutaka Exp $ # PORTNAME= rtgui PORTVERSION= 0.2.2 CATEGORIES= net-p2p www MASTER_SITES= http://rtgui.googlecode.com/files/ EXTRACT_SUFX= .tgz MAINTAINER= jadawin@tuxaco.net COMMENT= A web based front end for rTorrent OPTIONS= APACHE "Use Apache for web interface" On \ LIGHTTPD "Use LightHTTPD for web interface" Off BUILD_DEPENDS+= libtorrent=0.11.9:${PORTSDIR}/net-p2p/libtorrent \ xmlrpc-c-config:${PORTSDIR}/net/xmlrpc-c RUN_DEPENDS+= rtorrent:${PORTSDIR}/net-p2p/rtorrent .include .if !defined(WITHOUT_APACHE) USE_APACHE= 1.3+ BUILD_DEPENDS+= ${LOCALBASE}/${APACHEMODDIR}/mod_scgi.so:${PORTSDIR}/www/mod_scgi .elif defined(WITH_LIGHTTPD) RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd .endif USE_PHP= xmlrpc WANT_PHP_WEB= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME} PKGMESSAGE= ${WRKDIR}/pkg-message SUB_FILES= pkg-message SUB_LIST= WWWDIR=${WWWDIR} \ PORTNAME=${PORTNAME} do-install: ${MKDIR} ${WWWDIR} ${CP} -r ${WRKSRC}/* ${WWWDIR} ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} post-install: @${CAT} ${PKGMESSAGE} .include