Date: Tue, 2 Jul 2013 16:39:14 GMT From: nemysis <nemysis@gmx.ch> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/180207: [PATCH] audio/dumb: Add ALLEGRO_DEVEL, trim ALLEGRO Option Message-ID: <201307021639.r62GdEX8015893@oldred.freebsd.org> Resent-Message-ID: <201307021640.r62Ge0AA061298@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 180207 >Category: ports >Synopsis: [PATCH] audio/dumb: Add ALLEGRO_DEVEL, trim ALLEGRO Option >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: Tue Jul 02 16:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: nemysis >Release: FreeBSD 9.1-RELEASE-p8 amd64 >Organization: >Environment: FreeBSD FreeBSD_Ports 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18 15:25:28 UTC 2013 >Description: - Add ALLEGRO_DEVEL Option - Trim ALLEGRO Option - Add audio/dumb-allegro-devel as a slave port for audio/dumb >How-To-Repeat: Build log https://redports.org/buildarchive/20130702160900-10599/ >Fix: Shar is also on https://github.com/nemysis/FreeBSD_Ports/blob/master/patch/audio/dumb.diff Patch attached with submission follows: diff -ruN /usr/ports/audio/dumb/Makefile ./Makefile --- /usr/ports/audio/dumb/Makefile 2013-06-15 21:02:29.000000000 +0200 +++ ./Makefile 2013-07-02 17:56:03.000000000 +0200 @@ -12,12 +12,13 @@ USE_GMAKE= yes -OPTIONS_DEFINE= ALLEGRO +OPTIONS_DEFINE= ALLEGRO ALLEGRO_DEVEL ALLEGRO_DESC= Enable allegro support +ALLEGRO_DEVEL_DESC= Enable allegro development version .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MALLEGRO} +.if ${PORT_OPTIONS:MALLEGRO} && ! ${PORT_OPTIONS:MALLEGRO_DEVEL} LIB_DEPENDS+= alleg.42:${PORTSDIR}/devel/allegro PLIST_SUB+= ALLEGRO="" MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`" @@ -29,6 +30,18 @@ CONFLICTS= dumb-allegro-[0-9]* .endif +.if ${PORT_OPTIONS:MALLEGRO} && ${PORT_OPTIONS:MALLEGRO_DEVEL} +LIB_DEPENDS+= alleg.4:${PORTSDIR}/devel/allegro-devel +PLIST_SUB+= ALLEGRO="" +MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`" +PKGNAMESUFFIX= -allegro-devel +CONFLICTS= dumb-[0-9]* +.else +PLIST_SUB+= ALLEGRO="@comment " +MAKE_ARGS= _PORT_ALLEGRO_CFLAGS= +CONFLICTS= dumb-allegro-devel[0-9]* +.endif + .if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64" CFLAGS+= -fPIC .endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307021639.r62GdEX8015893>