blob: 792f3eee98442baaadbf2c30e4718b2e4a72bf7a (
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
|
# New ports collection Makefile for: dcd
# Date created: 20 June 2008
# Whom: gahr
#
# $FreeBSD$
#
PORTNAME= dcd
PORTVERSION= 0.99.2
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SF/dcdplayer
MAINTAINER= gahr@FreeBSD.org
COMMENT= A simple, programmable, intelligent CD player
LIB_DEPENDS= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz \
cdaudio.1:${PORTSDIR}/audio/libcdaudio
USE_GMAKE= yes
MAN1= dcd.1
PLIST_FILES= bin/dcd
LATEST_LINK= audio_dcd
post-patch:
# Handle namespace collision with libcdaudio
${REINPLACE_CMD} -e 's|cd_stop|dcd_stop|g; s|cd_eject|dcd_eject|g; \
s|cd_pause|dcd_pause|g; s|cd_play_track|dcd_play_track|g' \
${WRKSRC}/dcd.c ${WRKSRC}/infinite.c
# Linux? Bugger off!
${REINPLACE_CMD} -e 's|linux/||' ${WRKSRC}/process.c
${REINPLACE_CMD} -e 's|<endian|<sys/endian|; s|__BYTE_ORDER|_BYTE_ORDER|' \
${WRKSRC}/endian.h
.include <bsd.port.mk>
|