mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
afa52eec84
${OSVERSION} >= 601000 - Use OPTIONS - Reformat pkg-descr (fmt -w 80) - Remove pkg-message, contents is bluntly obvious
42 lines
902 B
Makefile
42 lines
902 B
Makefile
# New ports collection makefile for: yell
|
|
# Date created: 10 August 2004
|
|
# Whom: Emanuel Haupt <ehaupt@critical.ch>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= yell
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://critical.ch/distfiles/ \
|
|
http://energy.critical.ch/distfiles/
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= A command line pc speaker bell
|
|
|
|
PLIST_FILES= bin/yell
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
OPTIONS= SUID "Set the setuid bit on the yell program" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
.if ${OSVERSION} >= 601000
|
|
@${REINPLACE_CMD} -e 's|machine/speaker.h|dev/speaker/speaker.h|' \
|
|
${WRKSRC}/${PORTNAME}.c
|
|
.endif
|
|
|
|
do-build:
|
|
${CC} ${WRKSRC}/yell.c ${CFLAGS} -o ${WRKSRC}/${PORTNAME}
|
|
|
|
do-install:
|
|
.if defined(WITH_SUID)
|
|
${INSTALL_PROGRAM} -m 4110 ${WRKSRC}/${PORTNAME} ${TARGETDIR}/bin
|
|
.else
|
|
${INSTALL_PROGRAM} -m 0100 ${WRKSRC}/${PORTNAME} ${TARGETDIR}/bin
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|