mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
04b126abb6
${MACHINE_CPU:Mk6}, because: 1. k6 CPU don't really support 3DNOW, this extension was first was introduced in k6-2 CPUs; 2. Duron/Athlon (aka k7) CPUs support this extension as well. Missed by: kris Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
86 lines
2.0 KiB
Makefile
86 lines
2.0 KiB
Makefile
# New ports collection makefile for: mpg123
|
|
# Date created: 25 June 1997
|
|
# Whom: Carey Jones <mcj@acquiesce.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mpg123
|
|
PORTVERSION= 0.59r
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio ipv6
|
|
MASTER_SITES= http://www.mpg123.de/mpg123/ \
|
|
http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/ \
|
|
ftp://ftp.tu-clausthal.de/pub/unix/audio/mpg123/ \
|
|
http://ftp.tu-clausthal.de/pub/unix/audio/mpg123/
|
|
DISTFILES= mpg123-0.59r-pl1.tar.gz
|
|
|
|
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/ \
|
|
http://www.unix-ag.org/Linux-Alpha/Packages/
|
|
PATCHFILES= mpg123-059r-v6-20000713b.diff.gz \
|
|
l3.diff.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= sobomax@freebsd.org
|
|
|
|
WANT_ESOUND= yes
|
|
|
|
.if defined(WITH_NAS)
|
|
HAVE_NAS= yes
|
|
LIB_DEPENDS= audio.1:${PORTSDIR}/audio/nas
|
|
MAKE_ENV+= HAVE_NAS=${HAVE_NAS}
|
|
.endif
|
|
|
|
MAN1= mpg123.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
MAKE_ENV+= USE_INET6=yes
|
|
.endif
|
|
|
|
.if defined(HAVE_ESOUND)
|
|
USE_ESOUND= yes
|
|
ALL_TARGET= freebsd-esd
|
|
.elif defined(HAVE_NAS)
|
|
PKGNAMESUFFIX= -nas
|
|
ALL_TARGET= freebsd-nas
|
|
.else
|
|
ALL_TARGET= freebsd
|
|
.endif
|
|
|
|
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
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
.if ${OSVERSION} >= 500018
|
|
.if ${MACHINE_CPU:M3dnow}
|
|
OPT_ARCH= 3dnow
|
|
.elif ${MACHINE_CPU:Mi586}
|
|
OPT_ARCH= i586
|
|
.elif ${MACHINE_CPU:Mi486}
|
|
OPT_ARCH= i486
|
|
.endif
|
|
.else
|
|
.if !defined(OPT_ARCH) || ((${OPT_ARCH} != "i486") && (${OPT_ARCH} != "i586") \
|
|
&& (${OPT_ARCH} != "3dnow"))
|
|
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
@${ECHO_MSG} "Note: you can set OPT_ARCH to optimize for your hardware."
|
|
@${ECHO_MSG} "(e.g. make OPT_ARCH=i486)."
|
|
@${ECHO_MSG} "Valid values are: i486, i586, 3dnow"
|
|
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
OPT_ARCH?= i586
|
|
.endif
|
|
.endif
|
|
.endif
|
|
|
|
.if defined(OPT_ARCH)
|
|
MAKE_ARGS+= OPT_ARCH=${OPT_ARCH}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|