aboutsummaryrefslogtreecommitdiffstats
path: root/audio/cdplay/Makefile
blob: f0200cbd8bf85b1cce0b1cb8263536177fda007e (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
# Created by: Antti Kaipila <anttik@iki.fi>
# $FreeBSD$

PORTNAME=   cdplay
PORTVERSION=    0.92
PORTREVISION=   2
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dannyboy

MAINTAINER= ports@FreeBSD.org
COMMENT=    CD-player with text-based user interface

MAKE_ARGS=  CFLAGS="${CFLAGS} -c -ansi" \
        BINPATH="${PREFIX}/bin/"    \
        MANPATH="${MANPREFIX}/man/man1/"
MAKE_JOBS_UNSAFE=   yes

NO_STAGE=   yes
MAN1=       cdplay.1
PLIST_FILES=    bin/cdplay

post-patch:
    ${REINPLACE_CMD}            \
        -e 's/^CC=/CC?=/'       \
        -e 's/^OPTIMISE=.*$$/OPTIMISE=/'\
        -e 's/^CFLAGS=/CFLAGS+=/'   \
        -e 's/^BINPATH=/BINPATH?=/' \
        -e 's/^MANPATH=/MANPATH?=/' \
        ${WRKSRC}/Makefile

pre-patch:
    @${GUNZIP_CMD} ${WRKSRC}/cdplay.1.gz

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/cdplay ${PREFIX}/bin
    ${INSTALL_MAN}  ${WRKSRC}/cdplay.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>