2004-08-13 20:41:51 +02:00
|
|
|
# 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
|
2006-06-01 14:13:54 +02:00
|
|
|
MASTER_SITES= http://critical.ch/distfiles/ \
|
|
|
|
http://energy.critical.ch/distfiles/
|
2004-08-13 20:41:51 +02:00
|
|
|
|
2005-10-06 13:57:11 +02:00
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
2006-08-15 16:25:38 +02:00
|
|
|
COMMENT= A command line pc speaker bell
|
2004-08-13 20:41:51 +02:00
|
|
|
|
|
|
|
PLIST_FILES= bin/yell
|
|
|
|
|
2004-10-05 01:10:00 +02:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2006-08-15 16:25:38 +02:00
|
|
|
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
|
2004-08-13 20:41:51 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${CC} ${WRKSRC}/yell.c ${CFLAGS} -o ${WRKSRC}/${PORTNAME}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.if defined(WITH_SUID)
|
2007-08-04 13:41:30 +02:00
|
|
|
${INSTALL_PROGRAM} -m 4110 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
2004-08-13 20:41:51 +02:00
|
|
|
.else
|
2007-08-04 13:41:30 +02:00
|
|
|
${INSTALL_PROGRAM} -m 0100 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
2004-08-13 20:41:51 +02:00
|
|
|
.endif
|
|
|
|
|
2006-08-15 16:25:38 +02:00
|
|
|
.include <bsd.port.post.mk>
|