blob: 95ebf230830aa74b5ec2b9e5666be8705ac2b2c0 (
plain)
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
|
# $NetBSD: Makefile,v 1.2 2002/08/21 02:43:44 grant Exp $
#
DISTNAME= mpg123-0.59r
PKGNAME= mpg123-nas-0.59.18
CATEGORIES= audio
MASTER_SITES= http://www.mpg123.de/mpg123/ \
http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/
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
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.mpg123.de/
COMMENT= Command-line player for mpeg layer 1, 2 and 3 audio with NAS output
BUILD_DEFS+= USE_INET6
DIST_SUBDIR= mpg123
FILESDIR= ${.CURDIR}/../mpg123/files
CONFLICTS+= mpg123-[0-9]*
USE_X11BASE= # defined
USE_BUILDLINK_ONLY= # defined
# for OBJECT_FMT
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386"
.if ${OBJECT_FMT} == "ELF"
ALL_TARGET= netbsd-i386-elf
.else
ALL_TARGET= netbsd-i386
.endif
.elif ${MACHINE_ARCH} == "arm32"
ALL_TARGET= netbsd-arm32
.elif ${MACHINE_ARCH} == "m68k"
ALL_TARGET= netbsd-m68k
.else
ALL_TARGET= ${LOWER_OPSYS}
.endif
.if ${OPSYS} == "SunOS"
ALL_TARGET= solaris-gcc
.endif
.if defined(USE_INET6) && ${USE_INET6} == "YES"
CPPFLAGS+= -DINET6
.endif
MAKE_FLAGS+= PREFIX="${PREFIX}"
pre-patch:
${LN} -s . ${WRKSRC}/mpg123
post-patch:
${RM} -f ${WRKSRC}/mpg123
${CP} ${FILESDIR}/decode_i586_.s ${WRKSRC}/
cd ${WRKSRC} ; ${MV} decode_i586.s decode_i586.s.orig ;\
${SED} \
-e 's@^/@#/@g' \
<decode_i586.s.orig >decode_i586.s
.include "../../audio/nas/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
|