aboutsummaryrefslogtreecommitdiffstats
path: root/audio/yell/Makefile
blob: 50a63b4be1a47e4155896dfcc3b0f6c9926de646 (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
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   yell
PORTVERSION=    1.1
CATEGORIES= audio
MASTER_SITES=   CRITICAL

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Command-line pc speaker bell

MAKE_JOBS_SAFE= yes

PLIST_FILES=    bin/yell

ONLY_FOR_ARCHS= i386 amd64

OPTIONS_DEFINE= SUID
SUID_DESC=  Use suid to allow execution as non root

.include <bsd.port.options.mk>

do-build:
    ${CC} ${WRKSRC}/yell.c ${CFLAGS} -o ${WRKSRC}/${PORTNAME}

do-install:
.if ${PORT_OPTIONS:MSUID}
    ${INSTALL_PROGRAM} -m 4110 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.else
    ${INSTALL_PROGRAM} -m 0100 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.endif

.include <bsd.port.mk>