2000-07-06 03:48:39 +00:00
|
|
|
# New ports collection makefile for: TekNap napster client
|
|
|
|
# Date created: 6 Jul 2000
|
2000-06-10 06:58:32 +00:00
|
|
|
# Whom: Carl Johan Madestrand
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-07-06 03:48:39 +00:00
|
|
|
PORTNAME= TekNap
|
2002-11-03 22:27:18 +00:00
|
|
|
PORTVERSION= 1.3.g
|
2009-04-14 13:37:15 +00:00
|
|
|
PORTREVISION= 3
|
2008-01-09 15:19:46 +00:00
|
|
|
CATEGORIES= net-p2p
|
2012-02-06 08:03:27 +00:00
|
|
|
MASTER_SITES= http://www.epicsol.org/~brian/got.net-archive/teknap/
|
2002-11-03 22:27:18 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.g/g/}
|
2000-06-10 06:58:32 +00:00
|
|
|
|
2011-08-22 04:51:04 +00:00
|
|
|
MAINTAINER= sam@cassiba.com
|
2003-02-21 11:08:38 +00:00
|
|
|
COMMENT= Console napster client
|
2000-06-10 06:58:32 +00:00
|
|
|
|
2000-09-17 18:58:43 +00:00
|
|
|
.if defined(WITH_MP3)
|
|
|
|
BUILD_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_XMMS)
|
2002-11-28 16:37:35 +00:00
|
|
|
BUILD_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms
|
2000-09-17 18:58:43 +00:00
|
|
|
.endif
|
2000-07-06 03:48:39 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/TekNap
|
2000-10-05 06:47:41 +00:00
|
|
|
|
2009-04-14 13:37:15 +00:00
|
|
|
PLIST_FILES= bin/TekNap \
|
|
|
|
bin/TekNap-1.3g
|
2000-10-05 06:47:41 +00:00
|
|
|
|
2000-07-06 03:48:39 +00:00
|
|
|
USE_GMAKE= yes
|
2002-08-31 00:13:25 +00:00
|
|
|
WANT_GNOME= yes
|
2000-10-05 06:47:41 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-04-14 13:37:15 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/TekNap
|
|
|
|
PORTDOCS= *
|
2011-09-23 22:26:39 +00:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2000-07-06 03:48:39 +00:00
|
|
|
|
2000-10-05 06:47:41 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-08-31 00:13:25 +00:00
|
|
|
.if ${HAVE_GNOME:Mgtk12}!=""
|
|
|
|
USE_GNOME+= gtk12
|
2000-10-05 06:47:41 +00:00
|
|
|
CONFIGURE_ARGS+=--with-gtk
|
2002-08-31 00:13:25 +00:00
|
|
|
PKGNAMESUFFIX= -gtk
|
2000-10-05 06:47:41 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-gtk
|
2000-09-17 18:58:43 +00:00
|
|
|
.endif
|
2000-10-05 06:47:41 +00:00
|
|
|
|
2000-09-17 18:58:43 +00:00
|
|
|
.if defined(WITH_MP3)
|
2000-10-05 06:47:41 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-mp3
|
2000-09-17 18:58:43 +00:00
|
|
|
.endif
|
2000-10-05 06:47:41 +00:00
|
|
|
|
2000-09-17 18:58:43 +00:00
|
|
|
.if defined(WITH_XMMS)
|
2000-10-05 06:47:41 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-xmms
|
2000-07-06 03:48:39 +00:00
|
|
|
.endif
|
2000-06-10 06:58:32 +00:00
|
|
|
|
2000-07-06 03:48:39 +00:00
|
|
|
pre-extract:
|
2000-09-17 18:58:43 +00:00
|
|
|
@${ECHO} "Available switches:"
|
|
|
|
@${ECHO} "-------------------"
|
|
|
|
@${ECHO} "WITH_MP3 - Support MP3 playback"
|
|
|
|
@${ECHO} "WITH_XMMS - Support XMMS"
|
2000-10-05 06:47:41 +00:00
|
|
|
|
2000-07-06 03:48:39 +00:00
|
|
|
pre-configure:
|
2002-11-03 22:27:18 +00:00
|
|
|
@${REINPLACE_CMD} -e "s:-lc_r:${PTHREAD_LIBS}:g" ${WRKSRC}/configure
|
2000-07-06 03:48:39 +00:00
|
|
|
|
2009-04-14 13:37:15 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/mkinstalldirs/ s,$$(HELPDIR) $$(NAPLIB),,g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
2000-06-10 06:58:32 +00:00
|
|
|
post-install:
|
2000-07-06 03:48:39 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2009-04-14 13:37:15 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/help
|
2007-11-14 08:23:17 +00:00
|
|
|
${TAR} --directory ${WRKSRC}/teknap-help -cf - . | \
|
2009-04-14 13:37:15 +00:00
|
|
|
${TAR} --directory ${DOCSDIR}/help -xf -
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2000-06-10 06:58:32 +00:00
|
|
|
@${ECHO}
|
2009-04-14 13:37:15 +00:00
|
|
|
@${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%DOCSDIR%%:${DOCSDIR}:g"
|
2000-06-10 06:58:32 +00:00
|
|
|
@${ECHO}
|
2000-07-06 03:48:39 +00:00
|
|
|
.endif
|
2000-06-10 06:58:32 +00:00
|
|
|
|
2000-10-05 06:47:41 +00:00
|
|
|
.include <bsd.port.post.mk>
|