1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/net-p2p/teknap/Makefile

81 lines
1.7 KiB
Makefile
Raw Normal View History

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