aboutsummaryrefslogtreecommitdiffstats
path: root/audio/baudline/Makefile
blob: 32972edf7c3a1079bbbf222e099caf473eaddfbd (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:    baudline
# Date created:             19 Jan 2002
# Whom:                 David Yeske <dyeske@yahoo.com>
#
# $FreeBSD$
#

PORTNAME=   baudline
PORTVERSION=    0.99
CATEGORIES= audio linux
MASTER_SITES=   http://www.baudline.com/
PKGNAMEPREFIX=  linux-
DISTNAME=   baudline_${PORTVERSION:S/.p/pre/}_i686

MAINTAINER= ports@FreeBSD.org
COMMENT=    A real-time signal analysis tool and an offline time-frequency browser

RUN_DEPENDS=    mpg123:${PORTSDIR}/audio/mpg123

USE_X_PREFIX=   yes
ONLY_FOR_ARCHS= i386
USE_LINUX=  yes
NO_BUILD=   yes
STRIP=

# Linux binary should not be stripped by INSTALL_PROGRAM
# because as a side effect it brands the binary as FreeBSD.
STRIP=

RESTRICTED= "author requests no distribution except from their site"

PORTDOCS=   README mailcap.txt mime.types.txt
PLIST_FILES=    bin/baudline

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTFILES})
IGNORE=     may not be automatically fetched due to licensing\
        restrictions. You must manually fetch ${DISTFILES} from\
        http://www.baudline.com/download.html. Once ${DISTFILES}\
        has been downloaded, move it to ${DISTDIR} and then\
        restart this build
.endif

LINPROCFS!= /sbin/mount | ${GREP} linprocfs | ${AWK} '{print $1}'

pre-install:
.if !empty(LINPROCFS)
    @${ECHO_CMD} ""
    @${ECHO_CMD} "Check if linprocfs is running: YES"
.else
    @${ECHO_CMD} "-----------------------------------------------------------"
    @${ECHO_CMD} ""
    @${ECHO_CMD} "Baudline needs a running linprocfs, which is not"
    @${ECHO_CMD} "activated on your system. Please read the linprocfs\(5\)"
    @${ECHO_CMD} "manpage and add the following line to /etc/fstab:"
    @${ECHO_CMD} ""
    @${ECHO_CMD} "linproc /compat/linux/proc linprocfs rw 0 0"
    @${ECHO_CMD} ""
    @${ECHO_CMD} "-----------------------------------------------------------"
    @${FALSE}
.endif

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/baudline ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>