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-07-06 03:48:39 +00:00
|
|
|
.if defined(WITH_GTK)
|
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
|
|
|
|
.endif
|
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
|
|
|
|
|
|
|
GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
|
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
|
|
|
WRKSRC= ${WRKDIR}/TekNap
|
2000-06-10 06:58:32 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2000-07-06 03:48:39 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
.if defined(WITH_GTK)
|
|
|
|
CONFIGURE_ARGS+= --with-gtk
|
2000-09-17 18:58:43 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_MP3)
|
|
|
|
CONFIGURE_ARGS+= --enable-mp3
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_XMMS)
|
|
|
|
CONFIGURE_ARGS+= --enable-xmms
|
2000-07-06 03:48:39 +00:00
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --exec-prefix="${PREFIX}/share" \
|
|
|
|
--bindir="${PREFIX}/bin" \
|
|
|
|
--datadir="${PREFIX}/share" \
|
|
|
|
--libdir="${PREFIX}/share"
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
GLIB_CONFIG="${GLIB_CONFIG}" \
|
|
|
|
GTK_CONFIG="${GTK_CONFIG}"
|
|
|
|
MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}"
|
2000-06-10 06:58:32 +00:00
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
|
|
|
|
2000-07-06 03:48:39 +00:00
|
|
|
pre-extract:
|
2000-09-17 18:58:43 +00:00
|
|
|
@${ECHO} "Available switches:"
|
|
|
|
@${ECHO} "-------------------"
|
|
|
|
@${ECHO} "WITH_GTK - Add GTK support"
|
|
|
|
@${ECHO} "WITH_MP3 - Support MP3 playback"
|
|
|
|
@${ECHO} "WITH_XMMS - Support XMMS"
|
2000-07-06 03:48:39 +00:00
|
|
|
pre-configure:
|
|
|
|
${PERL} -pi -e "s:-lc_r:-pthread:g" ${WRKSRC}/configure
|
|
|
|
|
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}
|
|
|
|
@${CAT} ${PKGDIR}/MESSAGE | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
|
|
|
|
@${ECHO}
|
2000-07-06 03:48:39 +00:00
|
|
|
.endif
|
2000-06-10 06:58:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|