2000-07-05 23:48:39 -04:00
|
|
|
# New ports collection makefile for: TekNap napster client
|
|
|
|
# Date created: 6 Jul 2000
|
2000-06-10 02:58:32 -04:00
|
|
|
# Whom: Carl Johan Madestrand
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-07-05 23:48:39 -04:00
|
|
|
PORTNAME= TekNap
|
2000-09-17 14:58:43 -04:00
|
|
|
PORTVERSION= 1.2
|
2000-06-10 02:58:32 -04:00
|
|
|
CATEGORIES= audio
|
2001-03-27 08:10:14 -05:00
|
|
|
MASTER_SITES= ftp://ukug.uk.freebsd.org/pub/lord_cj/
|
2000-06-10 02:58:32 -04:00
|
|
|
|
2001-03-27 08:10:14 -05:00
|
|
|
MAINTAINER= LoRd_CJ@dalusers.com
|
2000-06-10 02:58:32 -04:00
|
|
|
|
2000-09-17 14:58:43 -04: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-05 23:48:39 -04:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/TekNap
|
2000-10-05 02:47:41 -04:00
|
|
|
|
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
|
|
|
|
2000-07-05 23:48:39 -04:00
|
|
|
USE_GMAKE= yes
|
2000-10-05 02:47:41 -04:00
|
|
|
WANT_GTK= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2000-07-05 23:48:39 -04:00
|
|
|
|
2000-10-05 02:47:41 -04: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 14:58:43 -04:00
|
|
|
.endif
|
2000-10-05 02:47:41 -04:00
|
|
|
|
2000-09-17 14:58:43 -04:00
|
|
|
.if defined(WITH_MP3)
|
2000-10-05 02:47:41 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-mp3
|
2000-09-17 14:58:43 -04:00
|
|
|
.endif
|
2000-10-05 02:47:41 -04:00
|
|
|
|
2000-09-17 14:58:43 -04:00
|
|
|
.if defined(WITH_XMMS)
|
2000-10-05 02:47:41 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-xmms
|
2000-07-05 23:48:39 -04:00
|
|
|
.endif
|
2000-06-10 02:58:32 -04:00
|
|
|
|
2000-07-05 23:48:39 -04:00
|
|
|
pre-extract:
|
2000-09-17 14:58:43 -04:00
|
|
|
@${ECHO} "Available switches:"
|
|
|
|
@${ECHO} "-------------------"
|
|
|
|
@${ECHO} "WITH_MP3 - Support MP3 playback"
|
|
|
|
@${ECHO} "WITH_XMMS - Support XMMS"
|
2000-10-05 02:47:41 -04:00
|
|
|
|
2000-07-05 23:48:39 -04:00
|
|
|
pre-configure:
|
2000-10-05 02:47:41 -04:00
|
|
|
@${PERL} -pi -e "s:-lc_r:-pthread:g" ${WRKSRC}/configure
|
2000-07-05 23:48:39 -04:00
|
|
|
|
2000-06-10 02:58:32 -04:00
|
|
|
post-install:
|
2000-07-05 23:48:39 -04: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 02:58:32 -04:00
|
|
|
@${ECHO}
|
2000-10-08 06:23:48 -04:00
|
|
|
@${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
|
2000-06-10 02:58:32 -04:00
|
|
|
@${ECHO}
|
2000-07-05 23:48:39 -04:00
|
|
|
.endif
|
2000-06-10 02:58:32 -04:00
|
|
|
|
2000-10-05 02:47:41 -04:00
|
|
|
.include <bsd.port.post.mk>
|