mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
8a609be531
PR: 42232 Submitted by: Edwin Groothuis <edwin@mavetju.org>
72 lines
1.5 KiB
Makefile
72 lines
1.5 KiB
Makefile
# New ports collection makefile for: TekNap napster client
|
|
# Date created: 6 Jul 2000
|
|
# Whom: Carl Johan Madestrand
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= TekNap
|
|
PORTVERSION= 1.2
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ftp://ukug.uk.freebsd.org/pub/lord_cj/
|
|
|
|
MAINTAINER= calle.madestrand@norrgarden.se
|
|
|
|
.if defined(WITH_MP3)
|
|
BUILD_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
|
|
.endif
|
|
.if defined(WITH_XMMS)
|
|
BUILD_DEPENDS= xmms:${PORTSDIR}/audio/xmms
|
|
.endif
|
|
|
|
WRKSRC= ${WRKDIR}/TekNap
|
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
|
|
|
USE_GMAKE= yes
|
|
USE_GNOMENG= yes
|
|
WANT_GNOME= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${HAVE_GNOME:Mgtk12}!=""
|
|
USE_GNOME+= gtk12
|
|
CONFIGURE_ARGS+=--with-gtk
|
|
PKGNAMESUFFIX= -gtk
|
|
.else
|
|
CONFIGURE_ARGS+=--without-gtk
|
|
.endif
|
|
|
|
.if defined(WITH_MP3)
|
|
CONFIGURE_ARGS+=--enable-mp3
|
|
.endif
|
|
|
|
.if defined(WITH_XMMS)
|
|
CONFIGURE_ARGS+=--enable-xmms
|
|
.endif
|
|
|
|
pre-extract:
|
|
@${ECHO} "Available switches:"
|
|
@${ECHO} "-------------------"
|
|
@${ECHO} "WITH_MP3 - Support MP3 playback"
|
|
@${ECHO} "WITH_XMMS - Support XMMS"
|
|
|
|
pre-configure:
|
|
@${PERL} -pi -e "s:-lc_r:${PTHREAD_LIBS}:g" ${WRKSRC}/configure
|
|
|
|
post-install:
|
|
.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
|
|
@${ECHO}
|
|
@${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
|
|
@${ECHO}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|