1997-07-10 09:41:25 +00:00
|
|
|
# New ports collection makefile for: mpg123
|
1999-08-12 03:47:45 +00:00
|
|
|
# Version required: 0.59r
|
1997-07-10 09:41:25 +00:00
|
|
|
# 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
|
|
|
#
|
|
|
|
|
1999-08-05 05:53:54 +00:00
|
|
|
DISTNAME= mpg123-0.59r
|
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/ \
|
|
|
|
http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/ \
|
1999-02-01 09:01:09 +00:00
|
|
|
ftp://ftp.tu-clausthal.de/pub/unix/audio/mpg123/ \
|
|
|
|
http://ftp.tu-clausthal.de/pub/unix/audio/mpg123/
|
1997-07-10 09:41:25 +00:00
|
|
|
|
2000-01-26 07:37:49 +00:00
|
|
|
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
|
|
|
|
PATCHFILES= mpg123-059r-v6-20000111.diff.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
1998-10-03 12:09:54 +00:00
|
|
|
MAINTAINER= jkoshy@freebsd.org
|
1997-07-10 09:41:25 +00:00
|
|
|
|
1999-11-11 05:41:25 +00:00
|
|
|
.if defined(OPT_ESOUND)
|
|
|
|
LIB_DEPENDS= esd.2:${PORTSDIR}/audio/esound
|
|
|
|
.endif
|
|
|
|
|
1999-09-20 04:55:24 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
1999-09-20 01:05:45 +00:00
|
|
|
|
1997-07-10 09:41:25 +00:00
|
|
|
MAN1= mpg123.1
|
|
|
|
|
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
|
|
|
|
|
1999-11-11 05:41:25 +00:00
|
|
|
.if defined(OPT_ESOUND)
|
|
|
|
ALL_TARGET= freebsd-esd
|
|
|
|
.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
|
|
|
|
1999-08-05 05:53:54 +00:00
|
|
|
pre-configure:
|
1999-11-11 05:41:25 +00:00
|
|
|
.if !defined(OPT_ESOUND) && exists(${PREFIX}/lib/libesd.a)
|
|
|
|
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@${ECHO_MSG} "Note: you can set OPT_ESOUND to \"yes\" to compile mpg123 with esd support."
|
|
|
|
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
.endif
|
1999-08-05 05:53:54 +00:00
|
|
|
.if $(MACHINE_ARCH) == "i386"
|
2000-01-28 07:50:12 +00:00
|
|
|
.if !defined(OPT_ARCH) || (($(OPT_ARCH) != "i486") && ($(OPT_ARCH) != "i586") \
|
|
|
|
&& ($(OPT_ARCH) != "3dnow"))
|
1999-08-27 21:14:04 +00:00
|
|
|
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@${ECHO_MSG} "Note: you can set OPT_ARCH to optimize for your hardware. (Eg:- make OPT_ARCH=i486)"
|
1999-08-05 05:53:54 +00:00
|
|
|
.if $(PORTOBJFORMAT) == "elf"
|
2000-01-28 07:50:12 +00:00
|
|
|
@${ECHO_MSG} "Valid values are: i486, i586, 3dnow"
|
1999-08-05 05:53:54 +00:00
|
|
|
.else
|
1999-08-27 21:14:04 +00:00
|
|
|
@${ECHO_MSG} "Valid values are: i486"
|
1999-08-05 05:53:54 +00:00
|
|
|
.endif
|
1999-08-27 21:14:04 +00:00
|
|
|
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
1999-08-05 05:53:54 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
1999-08-25 11:25:01 +00:00
|
|
|
.if $(PORTOBJFORMAT) == "elf"
|
|
|
|
OPT_ARCH?= i586
|
|
|
|
.else
|
|
|
|
OPT_ARCH?= i486
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Uncomment this line below to optimise for i486 family CPUs on ELF boxes
|
|
|
|
# OPT_ARCH= i486
|
|
|
|
|
|
|
|
.if defined(OPT_ARCH)
|
|
|
|
MAKE_ARGS+= OPT_ARCH=$(OPT_ARCH)
|
|
|
|
.endif
|
|
|
|
|
1999-11-11 05:41:25 +00:00
|
|
|
.if defined(OPT_ESOUND)
|
|
|
|
MAKE_ARGS+= OPT_ESOUND=$(OPT_ESOUND)
|
|
|
|
.endif
|
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|