aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ifp-line/Makefile
blob: 80dcae8a91fbfe99df7d945afa80f00b8fb0bfca (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
# Created by: riggs
# $FreeBSD$

PORTNAME=   ifp-line
PORTVERSION=    0.3
CATEGORIES= audio
MASTER_SITES=   SF/ifp-driver/${PORTNAME}/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Command line interface to iRiver music players

LICENSE=    GPLv2

USE_ICONV=  yes
USE_AUTOTOOLS=  aclocal autoheader automake autoconf
ACLOCAL_ARGS=   -I m4
MAKE_JOBS_UNSAFE=   yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAN1=       ifp.1
PORTDOCS=   NEWS README TIPS nonroot.sh
PLIST_FILES+=   bin/ifp

.include <bsd.port.pre.mk>

LDFLAGS+=   -lusb

post-patch:
    @${REINPLACE_CMD} -e \
        '/LIBUSB/s|ERROR|WARN|' ${WRKSRC}/configure.ac

do-install:
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} ifp ${PREFIX}/bin)
    (cd ${WRKSRC} && ${INSTALL_MAN} ifp.1 ${MANPREFIX}/man/man1)
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>