Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 2015 14:00:57 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r404569 - head/audio/gramofile
Message-ID:  <201512271400.tBRE0vT8065150@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Dec 27 14:00:57 2015
New Revision: 404569
URL: https://svnweb.freebsd.org/changeset/ports/404569

Log:
  - Switch to options helpers

Modified:
  head/audio/gramofile/Makefile
  head/audio/gramofile/pkg-plist

Modified: head/audio/gramofile/Makefile
==============================================================================
--- head/audio/gramofile/Makefile	Sun Dec 27 13:52:32 2015	(r404568)
+++ head/audio/gramofile/Makefile	Sun Dec 27 14:00:57 2015	(r404569)
@@ -19,11 +19,13 @@ LIB_DEPENDS=	libfftw.so:${PORTSDIR}/math
 ALL_TARGET=	gramofile
 USES=		gmake perl5
 USE_CSTD=	gnu89
-MAKE_ARGS+=	CC="${CC}"
-MAKE_ARGS+=	CXX="${CXX}"
+MAKE_ARGS=	CC="${CC}" \
+		CXX="${CXX}" \
+		PERLCOREDIR=${PERLCOREDIR}
 
 PERLCOREDIR=	${LOCALBASE}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE
-MAKE_ARGS+=	PERLCOREDIR=${PERLCOREDIR}
+
+OPTIONS_DEFINE=	DOCS
 
 post-patch:
 	${RM} ${WRKSRC}/debian/20-warning-fixes.dpatch
@@ -42,8 +44,10 @@ post-patch:
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/gramofile ${WRKSRC}/bplay_gramo \
 		${STAGEDIR}${PREFIX}/bin
+	${LN} -s bplay_gramo ${STAGEDIR}${PREFIX}/bin/brec_gramo
+
+do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
-	${LN} -s bplay_gramo ${STAGEDIR}${PREFIX}/bin/brec_gramo
 
 .include <bsd.port.mk>

Modified: head/audio/gramofile/pkg-plist
==============================================================================
--- head/audio/gramofile/pkg-plist	Sun Dec 27 13:52:32 2015	(r404568)
+++ head/audio/gramofile/pkg-plist	Sun Dec 27 14:00:57 2015	(r404569)
@@ -1,4 +1,4 @@
 bin/gramofile
 bin/bplay_gramo
 bin/brec_gramo
-%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README



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