ports/181295: [PATCH] audio/icegenerator : Add MySQL and PostgreSQL options

Guido Falsi madpilot at FreeBSD.org
Wed Aug 14 15:00:01 UTC 2013


>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 at 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 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 @@
 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
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list