Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2013 02:48:55 +0000 (UTC)
From:      Beech Rintoul <beech@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r314244 - head/graphics/synaesthesia
Message-ID:  <201303150248.r2F2mtfk027871@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: beech
Date: Fri Mar 15 02:48:55 2013
New Revision: 314244
URL: http://svnweb.freebsd.org/changeset/ports/314244

Log:
  - Add OptionsNG
  - Add license
  
  PR:		ports/176934
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/graphics/synaesthesia/Makefile   (contents, props changed)

Modified: head/graphics/synaesthesia/Makefile
==============================================================================
--- head/graphics/synaesthesia/Makefile	Fri Mar 15 02:48:45 2013	(r314243)
+++ head/graphics/synaesthesia/Makefile	Fri Mar 15 02:48:55 2013	(r314244)
@@ -1,19 +1,17 @@
-# New ports collection makefile for:	synaesthesia
-# Date created:				25 May 2001
-# Whom:					petef@FreeBSD.org
-#
+# Created by: petef@FreeBSD.org
 # $FreeBSD$
-#
 
 PORTNAME=	synaesthesia
 PORTVERSION=	2.4
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	graphics audio
-MASTER_SITES=	http://www.logarithmic.net/pfh-files/synaesthesia/ CENKES
+MASTER_SITES=	http://www.logarithmic.net/pfh-files/synaesthesia/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Graphically represents sound in real time
 
+LICENSE=	GPLv2
+
 USE_SDL=	sdl
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
@@ -21,15 +19,22 @@ CONFIGURE_ARGS=	--with-sdl-prefix=${LOCA
 PORTDOCS=	README
 PLIST_FILES=	bin/${PORTNAME}
 
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,stdint.h,inttypes.h,' ${WRKSRC}/*.c?
 	@${REINPLACE_CMD} -e 's,int16_t,u_int16_t,' ${WRKSRC}/sound.cc
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/synaesthesia ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
-	@${INSTALL} -d ${DOCSDIR}/
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+PLIST_FILES+=	%%DOCSDIR%%/README
+PLIST_DIRS+=	%%DOCSDIR%%
 .endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303150248.r2F2mtfk027871>