1997-07-10 09:41:25 +00:00
|
|
|
# New ports collection makefile for: mpg123
|
|
|
|
# Date created: 25 June 1997
|
|
|
|
# Whom: Carey Jones <mcj@acquiesce.org>
|
|
|
|
#
|
1999-08-25 04:36:31 +00:00
|
|
|
# $FreeBSD$
|
1997-07-10 09:41:25 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 21:25:03 +00:00
|
|
|
PORTNAME= mpg123
|
|
|
|
PORTVERSION= 0.59r
|
2004-03-27 14:16:04 +00:00
|
|
|
PORTREVISION= 13
|
2000-01-26 07:37:49 +00:00
|
|
|
CATEGORIES= audio ipv6
|
1999-08-05 05:53:54 +00:00
|
|
|
MASTER_SITES= http://www.mpg123.de/mpg123/ \
|
2002-12-26 13:22:10 +00:00
|
|
|
http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/
|
2000-05-05 07:20:23 +00:00
|
|
|
DISTFILES= mpg123-0.59r-pl1.tar.gz
|
1997-07-10 09:41:25 +00:00
|
|
|
|
2002-12-26 13:22:10 +00:00
|
|
|
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/:ipv6 \
|
|
|
|
http://www.unix-ag.org/Linux-Alpha/Packages/:l3 \
|
|
|
|
${MASTER_SITE_LOCAL:S/%SUBDIR%/sobomax/}:recode
|
|
|
|
PATCHFILES= mpg123-059r-v6-20000713b.diff.gz:ipv6 \
|
|
|
|
mpg123-059r-recode-20010410.diff.gz:recode \
|
|
|
|
l3.diff.gz:l3
|
2000-01-26 07:37:49 +00:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2003-07-20 20:14:52 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Command-line player for mpeg layer 1, 2 and 3 audio
|
1997-07-10 09:41:25 +00:00
|
|
|
|
2002-08-31 00:13:25 +00:00
|
|
|
WANT_GNOME= yes
|
1999-11-11 05:41:25 +00:00
|
|
|
|
2001-04-10 12:19:08 +00:00
|
|
|
.if defined(WITH_ICONV)
|
|
|
|
MAKE_ARGS+= WITH_ICONV=yes
|
|
|
|
.if defined(DEFAULT_RECODE)
|
|
|
|
MAKE_ARGS+= DEFAULT_RECODE=${DEFAULT_RECODE}
|
|
|
|
.endif
|
2004-03-30 19:20:22 +00:00
|
|
|
USE_ICONV= yes
|
2001-04-10 12:19:08 +00:00
|
|
|
.endif
|
|
|
|
|
2001-02-27 12:39:16 +00:00
|
|
|
.if defined(WITH_NAS)
|
|
|
|
HAVE_NAS= yes
|
2001-12-30 18:17:35 +00:00
|
|
|
LIB_DEPENDS= audio.2:${PORTSDIR}/audio/nas
|
2001-02-27 12:39:16 +00:00
|
|
|
MAKE_ENV+= HAVE_NAS=${HAVE_NAS}
|
|
|
|
.endif
|
|
|
|
|
1997-07-10 09:41:25 +00:00
|
|
|
MAN1= mpg123.1
|
2004-02-05 20:38:07 +00:00
|
|
|
PLIST_FILES= bin/mpg123
|
1997-07-10 09:41:25 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1998-10-03 12:09:54 +00:00
|
|
|
|
2000-01-26 07:37:49 +00:00
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
MAKE_ENV+= USE_INET6=yes
|
|
|
|
.endif
|
|
|
|
|
2002-08-31 00:13:25 +00:00
|
|
|
.if ${HAVE_GNOME:Mesound}!=""
|
|
|
|
USE_GNOME+= esound
|
1999-11-11 05:41:25 +00:00
|
|
|
ALL_TARGET= freebsd-esd
|
2002-08-31 00:13:25 +00:00
|
|
|
PKGNAMESUFFIX= -esound
|
2004-01-31 12:50:26 +00:00
|
|
|
MAKE_ENV+= HAVE_ESOUND=yes
|
2001-02-27 12:39:16 +00:00
|
|
|
.elif defined(HAVE_NAS)
|
|
|
|
PKGNAMESUFFIX= -nas
|
|
|
|
ALL_TARGET= freebsd-nas
|
1999-11-11 05:41:25 +00:00
|
|
|
.else
|
1998-10-03 12:09:54 +00:00
|
|
|
ALL_TARGET= freebsd
|
1999-11-11 05:41:25 +00:00
|
|
|
.endif
|
1998-11-14 09:43:39 +00:00
|
|
|
|
2001-02-27 12:39:16 +00:00
|
|
|
pre-fetch:
|
|
|
|
.if !defined(WITH_NAS)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you want to compile with NAS support,"
|
|
|
|
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_NAS=yes\""
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
2001-04-10 12:19:08 +00:00
|
|
|
.if !defined(WITH_ICONV)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you want to enable ID3 tags charset recoding,"
|
|
|
|
@${ECHO_MSG} "hit Ctrl-C and use \"make WITH_ICONV=yes\"; you can"
|
|
|
|
@${ECHO_MSG} "also specify DEFAULT_RECODE in 'from:to' format"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
2000-05-05 07:20:23 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2002-01-13 10:53:44 +00:00
|
|
|
.if ${OSVERSION} >= 430000
|
2001-03-10 11:55:50 +00:00
|
|
|
.if ${MACHINE_CPU:M3dnow}
|
2001-03-03 00:23:13 +00:00
|
|
|
OPT_ARCH= 3dnow
|
|
|
|
.elif ${MACHINE_CPU:Mi586}
|
|
|
|
OPT_ARCH= i586
|
|
|
|
.elif ${MACHINE_CPU:Mi486}
|
|
|
|
OPT_ARCH= i486
|
|
|
|
.endif
|
|
|
|
.else
|
2000-05-05 07:20:23 +00:00
|
|
|
.if !defined(OPT_ARCH) || ((${OPT_ARCH} != "i486") && (${OPT_ARCH} != "i586") \
|
|
|
|
&& (${OPT_ARCH} != "3dnow"))
|
2001-03-03 00:23:13 +00:00
|
|
|
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
2001-03-03 08:36:40 +00:00
|
|
|
@${ECHO_MSG} "Note: you can set OPT_ARCH to optimize for your hardware."
|
2001-02-27 12:39:16 +00:00
|
|
|
@${ECHO_MSG} "(e.g. make OPT_ARCH=i486)."
|
2000-01-28 07:50:12 +00:00
|
|
|
@${ECHO_MSG} "Valid values are: i486, i586, 3dnow"
|
2001-03-03 00:23:13 +00:00
|
|
|
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
1999-08-25 11:25:01 +00:00
|
|
|
OPT_ARCH?= i586
|
2001-03-03 00:23:13 +00:00
|
|
|
.endif
|
1999-08-25 11:25:01 +00:00
|
|
|
.endif
|
2000-05-05 07:20:23 +00:00
|
|
|
.endif
|
1999-08-25 11:25:01 +00:00
|
|
|
|
|
|
|
.if defined(OPT_ARCH)
|
2000-05-05 07:20:23 +00:00
|
|
|
MAKE_ARGS+= OPT_ARCH=${OPT_ARCH}
|
1999-08-25 11:25:01 +00:00
|
|
|
.endif
|
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|