aboutsummaryrefslogtreecommitdiffstats
path: root/audio/discid/Makefile
blob: b86569a07e1947e2737499a55ae5b007913997cd (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
# Created by: Oliver Breuninger <ob@breuninger.org>
# $FreeBSD$

PORTNAME=   discid
PORTVERSION=    1.3
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   http://jeremy.zawodny.com/c/discid/
DISTNAME=   ${PORTNAME}-freebsd-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Identify audio cd in your drive

WRKSRC=     ${WRKDIR}/freebsd

PLIST_FILES=    bin/discid

post-patch:
    @${REINPLACE_CMD} -e 's|^void main|int main|' ${WRKSRC}/${PORTNAME}.c

do-build:
    cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c

do-install:
    cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>