Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 2013 16:58:59 +0200 (CEST)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        funkblaster@mail.ru
Subject:   ports/181295: [PATCH] audio/icegenerator : Add MySQL and PostgreSQL options
Message-ID:  <3cFYpX06d9z2jq@micro.madpilot.net>
Resent-Message-ID: <201308141500.r7EF00Ds025989@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         181295
>Category:       ports
>Synopsis:       [PATCH] audio/icegenerator : Add MySQL and PostgreSQL options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 14 15:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Guido Falsi
>Release:        FreeBSD 9.1-STABLE amd64
>Organization:
none
>Environment:
System: FreeBSD micro.madpilot.net 9.1-STABLE FreeBSD 9.1-STABLE #21 r252026: Thu Jun 20 16:27:06 CEST 2013 root@micro.madpilot.net:/usr/obj/usr/src/sys/MICRO amd64

>Description:

- Add OPTIONS support, with options to enable MySQL and PostgreSQL backends

While here:

- Trim makefile headers
- Convert to new LIB_DEPENDS format
- Use USES=gmake

Maintainer is CCed.

>How-To-Repeat:
>Fix:

Index: Makefile
===================================================================
--- Makefile	(revision 324713)
+++ Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	icegenerator
-# Date created:				18 August 2004
-# Whom:				Nadelyaev Stanislav <funkblaster@n11.bmstu.ru>
-#
+# Created by: Nadelyaev Stanislav <funkblaster@n11.bmstu.ru>
 # $FreeBSD$
-#
 
 PORTNAME=		icegenerator
 DISTVERSION=		0.5.5-pre2
@@ -13,14 +9,28 @@
 MAINTAINER=		funkblaster@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
>Release-Note:
>Audit-Trail:
>Unformatted:



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