svn commit: r325719 - head/audio/icegenerator

Guido Falsi madpilot at FreeBSD.org
Fri Aug 30 20:14:03 UTC 2013


Author: madpilot
Date: Fri Aug 30 20:14:02 2013
New Revision: 325719
URL: http://svnweb.freebsd.org/changeset/ports/325719

Log:
  - Add OPTIONS support, with options to enable MySQL and PostgreSQL backends
  
  While here:
  
  - Trim makefile headers
  - Convert to new LIB_DEPENDS format and remove ABI version number
  - Use USES=gmake
  
  PR:		ports/181295
  Submitted by:	Me
  Approved by:	Maintainer timeout

Modified:
  head/audio/icegenerator/Makefile   (contents, props changed)

Modified: head/audio/icegenerator/Makefile
==============================================================================
--- head/audio/icegenerator/Makefile	Fri Aug 30 20:00:42 2013	(r325718)
+++ head/audio/icegenerator/Makefile	Fri Aug 30 20:14:02 2013	(r325719)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	icegenerator
-# Date created:				18 August 2004
-# Whom:				Nadelyaev Stanislav <funkblaster at n11.bmstu.ru>
-#
+# Created by: Nadelyaev Stanislav <funkblaster at n11.bmstu.ru>
 # $FreeBSD$
-#
 
 PORTNAME=		icegenerator
 DISTVERSION=		0.5.5-pre2
@@ -13,14 +9,28 @@ MASTER_SITES=		SF/${PORTNAME}/${PORTNAME
 MAINTAINER=		funkblaster at mail.ru
 COMMENT=		Direct streaming generator for Icecast/Shoutcast
 
-LIB_DEPENDS=		shout.5:${PORTSDIR}/audio/libshout2
+LIB_DEPENDS=		libshout.so:${PORTSDIR}/audio/libshout2
 
 GNU_CONFIGURE=		yes
-USE_GMAKE=		yes
+USES=			gmake
 CONFIGURE_ARGS=		--exec-prefix=${PREFIX}
 
+OPTIONS_DEFINE=		DOCS MYSQL PGSQL
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMYSQL}
+USE_MYSQL=	YES
+CONFIGURE_ARGS+=	--with-mysql
+.endif
+
+.if ${PORT_OPTIONS:MPGSQL}
+USE_PGSQL=	YES
+CONFIGURE_ARGS+=	--with-pgsql
+.endif
+
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
 .endif


More information about the svn-ports-head mailing list