1997-07-10 11:41:25 +02:00
|
|
|
# New ports collection makefile for: mpg123
|
|
|
|
# Date created: 25 June 1997
|
|
|
|
# Whom: Carey Jones <mcj@acquiesce.org>
|
|
|
|
#
|
1999-08-25 06:36:31 +02:00
|
|
|
# $FreeBSD$
|
1997-07-10 11:41:25 +02:00
|
|
|
#
|
|
|
|
|
2000-04-08 23:25:03 +02:00
|
|
|
PORTNAME= mpg123
|
|
|
|
PORTVERSION= 0.59r
|
2001-02-13 16:00:44 +01:00
|
|
|
PORTREVISION= 1
|
2000-01-26 08:37:49 +01:00
|
|
|
CATEGORIES= audio ipv6
|
1999-08-05 07:53:54 +02:00
|
|
|
MASTER_SITES= http://www.mpg123.de/mpg123/ \
|
|
|
|
http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/ \
|
1999-02-01 10:01:09 +01:00
|
|
|
ftp://ftp.tu-clausthal.de/pub/unix/audio/mpg123/ \
|
|
|
|
http://ftp.tu-clausthal.de/pub/unix/audio/mpg123/
|
2000-05-05 09:20:23 +02:00
|
|
|
DISTFILES= mpg123-0.59r-pl1.tar.gz
|
1997-07-10 11:41:25 +02:00
|
|
|
|
2000-05-05 09:20:23 +02:00
|
|
|
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/ \
|
|
|
|
http://www.unix-ag.org/Linux-Alpha/Packages/
|
2000-09-11 11:03:56 +02:00
|
|
|
PATCHFILES= mpg123-059r-v6-20000713b.diff.gz \
|
2000-05-05 09:20:23 +02:00
|
|
|
l3.diff.gz
|
2000-01-26 08:37:49 +01:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2001-02-22 07:40:31 +01:00
|
|
|
MAINTAINER= sobomax@freebsd.org
|
1997-07-10 11:41:25 +02:00
|
|
|
|
2000-10-05 07:19:38 +02:00
|
|
|
WANT_ESOUND= yes
|
1999-11-11 06:41:25 +01:00
|
|
|
|
2001-02-27 13:39:16 +01:00
|
|
|
.if defined(WITH_NAS)
|
|
|
|
HAVE_NAS= yes
|
|
|
|
LIB_DEPENDS= audio.1:${PORTSDIR}/audio/nas
|
|
|
|
MAKE_ENV+= HAVE_NAS=${HAVE_NAS}
|
|
|
|
.endif
|
|
|
|
|
1997-07-10 11:41:25 +02:00
|
|
|
MAN1= mpg123.1
|
|
|
|
|
1998-11-14 10:43:39 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
1998-10-03 14:09:54 +02:00
|
|
|
|
2000-01-26 08:37:49 +01:00
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
MAKE_ENV+= USE_INET6=yes
|
|
|
|
.endif
|
|
|
|
|
2000-10-05 07:19:38 +02:00
|
|
|
.if defined(HAVE_ESOUND)
|
|
|
|
USE_ESOUND= yes
|
1999-11-11 06:41:25 +01:00
|
|
|
ALL_TARGET= freebsd-esd
|
2001-02-27 13:39:16 +01:00
|
|
|
.elif defined(HAVE_NAS)
|
|
|
|
PKGNAMESUFFIX= -nas
|
|
|
|
ALL_TARGET= freebsd-nas
|
1999-11-11 06:41:25 +01:00
|
|
|
.else
|
1998-10-03 14:09:54 +02:00
|
|
|
ALL_TARGET= freebsd
|
1999-11-11 06:41:25 +01:00
|
|
|
.endif
|
1998-11-14 10:43:39 +01:00
|
|
|
|
2001-02-27 13:39:16 +01: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
|
2000-05-05 09:20:23 +02:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
.if !defined(OPT_ARCH) || ((${OPT_ARCH} != "i486") && (${OPT_ARCH} != "i586") \
|
|
|
|
&& (${OPT_ARCH} != "3dnow"))
|
2001-02-27 13:39:16 +01:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "Note: you can set OPT_ARCH to optimize for your hardware"
|
|
|
|
@${ECHO_MSG} "(e.g. make OPT_ARCH=i486)."
|
2000-05-05 09:20:23 +02:00
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
2000-01-28 08:50:12 +01:00
|
|
|
@${ECHO_MSG} "Valid values are: i486, i586, 3dnow"
|
1999-08-05 07:53:54 +02:00
|
|
|
.else
|
1999-08-27 23:14:04 +02:00
|
|
|
@${ECHO_MSG} "Valid values are: i486"
|
1999-08-05 07:53:54 +02:00
|
|
|
.endif
|
2001-02-27 13:39:16 +01:00
|
|
|
@${ECHO_MSG}
|
1999-08-05 07:53:54 +02:00
|
|
|
.endif
|
2000-05-05 09:20:23 +02:00
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
1999-08-25 13:25:01 +02:00
|
|
|
OPT_ARCH?= i586
|
|
|
|
.else
|
|
|
|
OPT_ARCH?= i486
|
|
|
|
.endif
|
2000-05-05 09:20:23 +02:00
|
|
|
.endif
|
1999-08-25 13:25:01 +02:00
|
|
|
|
|
|
|
.if defined(OPT_ARCH)
|
2000-05-05 09:20:23 +02:00
|
|
|
MAKE_ARGS+= OPT_ARCH=${OPT_ARCH}
|
1999-08-25 13:25:01 +02:00
|
|
|
.endif
|
|
|
|
|
1998-11-14 10:43:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|