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
|
2000-09-17 18:58:43 +00:00
|
|
|
PORTVERSION= 1.2
|
2000-06-10 06:58:32 +00:00
|
|
|
CATEGORIES= audio
|
2000-07-06 03:48:39 +00:00
|
|
|
MASTER_SITES= ftp://ftp.teknap.com/pub/TekNap/ \
|
2000-09-17 18:58:43 +00:00
|
|
|
ftp://ftp.bitchx.com/pub/TekNap/
|
2000-06-10 06:58:32 +00:00
|
|
|
|
2000-06-28 12:33:57 +00:00
|
|
|
MAINTAINER= cj@vallcom.net
|
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)
|
|
|
|
BUILD_DEPENDS= xmms:${PORTSDIR}/audio/xmms
|
|
|
|
.endif
|
2000-07-06 03:48:39 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/TekNap
|
2000-10-05 06:47:41 +00:00
|
|
|
|
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
|
|
|
|
2000-07-06 03:48:39 +00:00
|
|
|
USE_GMAKE= yes
|
2000-10-05 06:47:41 +00:00
|
|
|
WANT_GTK= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2000-07-06 03:48:39 +00:00
|
|
|
|
2000-10-05 06:47:41 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(HAVE_GTK)
|
|
|
|
USE_GTK= yes
|
|
|
|
CONFIGURE_ARGS+=--with-gtk
|
|
|
|
.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:
|
2000-10-05 06:47:41 +00:00
|
|
|
@${PERL} -pi -e "s:-lc_r:-pthread:g" ${WRKSRC}/configure
|
2000-07-06 03:48:39 +00:00
|
|
|
|
2000-06-10 06:58:32 +00:00
|
|
|
post-install:
|
2000-07-06 03:48:39 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/TekNap
|
|
|
|
${TAR} --directory ${WRKSRC}/teknap-help -cf - . --exclude CVS | \
|
|
|
|
${TAR} --directory ${PREFIX}/share/TekNap/help -xf -
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/TekNap
|
2000-06-10 06:58:32 +00:00
|
|
|
@${ECHO}
|
2000-10-08 10:23:48 +00:00
|
|
|
@${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}: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>
|