1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- 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
This commit is contained in:
Alexey Dokuchaev 2013-03-04 06:43:04 +00:00
parent 0818b1cf32
commit dd3d4300e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313395
2 changed files with 15 additions and 25 deletions

View File

@ -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

View File

@ -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%%