summaryrefslogtreecommitdiff
path: root/audio/sbagen
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2013-03-04 06:43:04 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2013-03-04 06:43:04 +0000
commitdd3d4300e71b929e49417bb5f5269af7c9fcf450 (patch)
treef4d0a568edc947efce039c19dbe2edbda9e4508e /audio/sbagen
parentUpdate to 3.0-RC1 release. (diff)
- Trim Makefile header per new style rules
- Drop indefinite article from the COMMENT - Define LICENSE (GPLv2), utilize PORTDOCS - Convert to OptionsNG and clean up Makefile
Notes
Notes: svn path=/head/; revision=313395
Diffstat (limited to 'audio/sbagen')
-rw-r--r--audio/sbagen/Makefile29
-rw-r--r--audio/sbagen/pkg-plist11
2 files changed, 15 insertions, 25 deletions
diff --git a/audio/sbagen/Makefile b/audio/sbagen/Makefile
index 4acbda6d7123..a6fd02e65e92 100644
--- a/audio/sbagen/Makefile
+++ b/audio/sbagen/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: sbagen
-# Date created: 08 June 2001
-# Whom: greid
-#
+# Created by: George Reid <greid@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= sbagen
PORTVERSION= 1.4.5
@@ -12,27 +8,32 @@ MASTER_SITES= SF
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
-COMMENT= A sequenced binaural wave generator
+COMMENT= Sequenced binaural wave generator
-DOC_FILES= ChangeLog.txt README.txt SBAGEN.txt TODO.txt focus.txt \
+LICENSE= GPLv2
+
+PORTDOCS= ChangeLog.txt README.txt SBAGEN.txt TODO.txt focus.txt \
focus2.txt holosync.txt theory.txt theory2.txt wave.txt
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
+
post-patch:
- @${REINPLACE_CMD} -e 's,linux/soundcard.h,sys/soundcard.h,g' \
+ @${REINPLACE_CMD} -e 's,linux/soundcard\.h,sys/soundcard.h,g' \
${WRKSRC}/sbagen.c
do-build:
- (cd ${WRKSRC} && ${CC} ${CFLAGS} -DT_LINUX ${PTHREAD_LIBS} -lm sbagen.c -o sbagen)
+ (cd ${WRKSRC} && ${CC} ${CFLAGS} -DT_LINUX ${PTHREAD_LIBS} -lm \
+ sbagen.c -o sbagen)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sbagen ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for file in ${DOC_FILES}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
diff --git a/audio/sbagen/pkg-plist b/audio/sbagen/pkg-plist
index 5a49683e707b..3314098b0783 100644
--- a/audio/sbagen/pkg-plist
+++ b/audio/sbagen/pkg-plist
@@ -1,14 +1,4 @@
bin/sbagen
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.txt
-%%PORTDOCS%%%%DOCSDIR%%/README.txt
-%%PORTDOCS%%%%DOCSDIR%%/SBAGEN.txt
-%%PORTDOCS%%%%DOCSDIR%%/TODO.txt
-%%PORTDOCS%%%%DOCSDIR%%/focus.txt
-%%PORTDOCS%%%%DOCSDIR%%/focus2.txt
-%%PORTDOCS%%%%DOCSDIR%%/holosync.txt
-%%PORTDOCS%%%%DOCSDIR%%/theory.txt
-%%PORTDOCS%%%%DOCSDIR%%/theory2.txt
-%%PORTDOCS%%%%DOCSDIR%%/wave.txt
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basics/prog-chakras-1.sbg
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basics/prog-drop-00d.sbg
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basics/prog-drop-old-demo.sbg
@@ -145,4 +135,3 @@ bin/sbagen
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/contrib
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/basics
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%