summaryrefslogtreecommitdiff
path: root/net-p2p/museek+/Makefile
diff options
context:
space:
mode:
authorStefan Walter <stefan@FreeBSD.org>2006-08-06 16:49:34 +0000
committerStefan Walter <stefan@FreeBSD.org>2006-08-06 16:49:34 +0000
commit126a5e1958912ca563924bc40888c4114d2590c1 (patch)
tree27b9ddc0a6f5a9600ee3a35259ffa419fffac32f /net-p2p/museek+/Makefile
parent- Broken on 4.X: does not compile (O_SYNC undeclared) (diff)
Add Museek+:
Museek+ (or Museek-Plus) is an enhanced fork of Museek, a file-sharing application for the Soulseek peer-to-peer network. The actual SoulSeek client and the GUI are separate programs that communicate via Unix or network sockets. Approved by: arved (mentor)
Notes
Notes: svn path=/head/; revision=169834
Diffstat (limited to 'net-p2p/museek+/Makefile')
-rw-r--r--net-p2p/museek+/Makefile95
1 files changed, 95 insertions, 0 deletions
diff --git a/net-p2p/museek+/Makefile b/net-p2p/museek+/Makefile
new file mode 100644
index 000000000000..0791f9b2b4e2
--- /dev/null
+++ b/net-p2p/museek+/Makefile
@@ -0,0 +1,95 @@
+# New ports collection makefile for: museekplus
+# Date created: 06 Aug 2006
+# Whom: Stefan Walter <stefan@FreeBSD.org>
+#
+# $FreeBSD$
+#
+# This port's behaviour can be adjusted by defining the following variables:
+#
+# WITHOUT_MUSEEQ - build without museeq, the Qt frontend
+# WITHOUT_QSA - build museeq without scripting support
+# WITH_DEBUG - build with debugging messages
+# WITH_OPTIMIZED_CFLAGS - build with optimizations and exclude debug symbols
+
+PORTNAME= museekplus
+PORTVERSION= 0.1.11
+CATEGORIES= net-p2p
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
+MASTER_SITE_SUBDIR= museek-plus
+DISTNAME= museek+-${PORTVERSION}
+
+MAINTAINER= stefan@FreeBSD.org
+COMMENT= SoulSeek client with separate terminal and Qt based interface
+
+LIB_DEPENDS= xml\\+\\+:${PORTSDIR}/textproc/libxml++26 \
+ vorbis:${PORTSDIR}/audio/libvorbis
+BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
+
+USE_BZIP2= yes
+USE_PYTHON= yes
+USE_SCONS= yes
+USE_FAM= yes
+
+SCONS_PARAMS= QTDIR=${X11BASE} QT_LIB=qt-mt PREFIX=${PREFIX} VORBIS=yes
+DATADIR= share/museek
+
+MAN1= muscan.1 muscand.1 museekd.1 musetup.1 musetup-gtk.1 mulog.1 \
+ museekcontrol.1 mucous.1
+
+.if defined(WITHOUT_MUSEEQ)
+SCONS_PARAMS+= MUSEEQ=no
+PLIST_SUB+= MUSEEQ="@comment "
+.else
+USE_QT_VER= 3
+SCONS_PARAMS+= MUSEEQ=yes
+PLIST_SUB+= MUSEEQ=""
+MAN1+= museeq.1
+.if defined(WITHOUT_QSA)
+SCONS_PARAMS+= QSA=no
+.else
+SCONS_PARAMS+= QSA=yes
+LIB_DEPENDS+= qsa:${PORTSDIR}/devel/qsa
+.endif
+.endif
+
+.if defined(WITH_DEBUG)
+SCONS_PARAMS+= MULOG="cycle,debug"
+.else
+SCONS_PARAMS+= MULOG=""
+.endif
+
+.if defined(WITH_OPTIMIZED_CFLAGS)
+SCONS_PARAMS+= RELEASE=yes
+.else
+SCONS_PARAMS+= RELEASE=no
+.endif
+
+pre-everything::
+.if !defined(WITHOUT_MUSEEQ)
+ @${ECHO_MSG} "Define WITHOUT_MUSEEQ to build without the Qt frontend"
+.endif
+.if !defined(WITH_DEBUG)
+ @${ECHO_MSG} "Define WITH_DEBUG to build with debugging messages"
+.endif
+.if !defined(WITH_OPTIMIZED_CFLAGS)
+ @${ECHO_MSG} "Define WITH_OPTIMIZED_CFALGS to build with optmizations"
+.endif
+
+do-build:
+ @cd ${WRKSRC} && scons ${SCONS_PARAMS}
+
+do-install:
+ @cd ${WRKSRC} && scons install
+
+post-install:
+ @${REINPLACE_CMD} -i "" -e "s,/usr/bin/python,${PYTHON_CMD},g" \
+ ${PREFIX}/bin/mucous
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.pre.mk>
+
+.if (${OSVERSION} < 500000)
+IGNORE= does not compile on systems < 5.x (needs wstring support)
+.endif
+
+.include <bsd.port.post.mk>