blob: 342eff372151fd4d498a9b8fcf66cb14ea57c7ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# New ports collection makefile for: mpg123
# Date created: 25 June 1997
# Whom: Carey Jones <mcj@acquiesce.org>
#
# $FreeBSD$
#
PORTNAME= mpg123
PORTVERSION= 0.59r
PORTREVISION= 9
CATEGORIES= audio ipv6
MASTER_SITES= http://www.mpg123.de/mpg123/ \
http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/
DISTFILES= mpg123-0.59r-pl1.tar.gz
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
PATCH_DIST_STRIP= -p1
MAINTAINER= des@FreeBSD.org
COMMENT= Command-line player for mpeg layer 1, 2 and 3 audio
WANT_GNOME= yes
.if defined(WITH_ICONV)
MAKE_ARGS+= WITH_ICONV=yes
.if defined(DEFAULT_RECODE)
MAKE_ARGS+= DEFAULT_RECODE=${DEFAULT_RECODE}
.endif
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
.endif
.if defined(WITH_NAS)
HAVE_NAS= yes
LIB_DEPENDS= audio.2:${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 ${HAVE_GNOME:Mesound}!=""
USE_GNOME+= esound
ALL_TARGET= freebsd-esd
PKGNAMESUFFIX= -esound
MAKE_ENV= HAVE_ESOUND=yes
.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 !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
.if ${MACHINE_ARCH} == "i386"
.if ${OSVERSION} >= 430000
.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>
|