diff options
Diffstat (limited to 'net-p2p/nicotine-plus/Makefile')
-rw-r--r-- | net-p2p/nicotine-plus/Makefile | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/net-p2p/nicotine-plus/Makefile b/net-p2p/nicotine-plus/Makefile index b8ec61cda0b6..54a36d40723b 100644 --- a/net-p2p/nicotine-plus/Makefile +++ b/net-p2p/nicotine-plus/Makefile @@ -5,25 +5,32 @@ # $FreeBSD$ # -PORTNAME= nicotine -PORTVERSION= 1.0.8 -PORTREVISION= 1 +PORTNAME= plus +PORTVERSION= 1.2.6 CATEGORIES= net-p2p -MASTER_SITES= http://nicotine.thegraveyard.org/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} +PKGNAMEPREFIX= nicotine- +DISTNAME= ${PKGNAMEPREFIX:S/-/+/}-${PORTVERSION} -MAINTAINER= stefan@FreeBSD.org -COMMENT= GTK2 SoulSeek filesharing client +MAINTAINER= acm@FreeBSD.org +COMMENT= A fork of nicotine soulseek client RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 \ ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb +CONFLICTS= nicotine-[0-9]* + USE_BZIP2= yes USE_PYTHON= yes USE_PYDISTUTILS= yes USE_GETTEXT= yes +DOCSDIR= share/doc/${PKGNAMEPREFIX:S/-//} +DATADIR= share/${PKGNAMEPREFIX:S/-//} + OPTIONS= GEOIP "Enable the GeoIP based country code blocker" off \ - PSYCO "Enable Psyco, the optimizing Python compiler" off \ + PSYCO "Enable Psyco, the optimizing Python compiler" on \ VORBIS "Enable OGG/Vorbis support" on .include <bsd.port.pre.mk> @@ -31,7 +38,7 @@ OPTIONS= GEOIP "Enable the GeoIP based country code blocker" off \ .if defined(WITH_GEOIP) RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/GeoIP.so:${PORTSDIR}/net/py-GeoIP .endif -.if defined(WITH_PSYCO) +.if defined(WITH_PSYCO) && ${ARCH} == "i386" RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco .endif .if defined(WITH_VORBIS) @@ -39,13 +46,9 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/ogg/vorbis.so:${PORTSDIR}/audio/py-vorbis .endif post-patch: - @${REINPLACE_CMD} -e "s|sys\.prefix|\"${PREFIX}\"|g" ${WRKSRC}/setup.py - -.if !defined(NOPORTDOCS) -post-install: - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README.import-winconfig ${DOCSDIR} +.if defined(NOPORTDOCS) + @${REINPLACE_CMD} -i "" -e 's|^doc_files.*|doc_files = ""|g' ${WRKSRC}/setup.py .endif + @${REINPLACE_CMD} -e "s|sys\.prefix|\"${PREFIX}\"|g" ${WRKSRC}/setup.py .include <bsd.port.post.mk> |