From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 28 12:40:04 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E6C2B586 for ; Wed, 28 Aug 2013 12:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C64042441 for ; Wed, 28 Aug 2013 12:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7SCe3rE095639 for ; Wed, 28 Aug 2013 12:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7SCe3w8095638; Wed, 28 Aug 2013 12:40:03 GMT (envelope-from gnats) Resent-Date: Wed, 28 Aug 2013 12:40:03 GMT Resent-Message-Id: <201308281240.r7SCe3w8095638@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Guido Falsi Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0B3C5318 for ; Wed, 28 Aug 2013 12:32:15 +0000 (UTC) (envelope-from mad@micro.madpilot.net) Received: from micro.madpilot.net (micro.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id AA53223EA for ; Wed, 28 Aug 2013 12:32:14 +0000 (UTC) Received: from micro.madpilot.net (localhost [127.0.0.1]) by micro.madpilot.net (Postfix) with ESMTP id 3cQ5tb0SGjz2pr; Wed, 28 Aug 2013 14:32:07 +0200 (CEST) Received: from micro.madpilot.net ([127.0.0.1]) by micro.madpilot.net (micro.madpilot.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iBgr-V_SXBiA; Wed, 28 Aug 2013 14:32:03 +0200 (CEST) Received: by micro.madpilot.net (Postfix, from userid 1000) id 3cQ5tW5Jkwz2pq; Wed, 28 Aug 2013 14:32:03 +0200 (CEST) Message-Id: <3cQ5tW5Jkwz2pq@micro.madpilot.net> Date: Wed, 28 Aug 2013 14:32:03 +0200 (CEST) From: Guido Falsi To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/181615: [PATCH] audio/wavegain: Fix build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Guido Falsi List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2013 12:40:04 -0000 >Number: 181615 >Category: ports >Synopsis: [PATCH] audio/wavegain: Fix build with clang >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 28 12:40:03 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: - Fix build with clang (Respect CC) - Make it respect LOCALBASE - Trim Makefile headers - Convert LIB_DEPENDS to new format and remove ABI version number - USES=gmake >How-To-Repeat: >Fix: Index: Makefile =================================================================== --- Makefile (revision 325515) +++ Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: wavegain -# Date created: 24 May 2008 -# Whom: Denise H. G. -# +# Created by: Denise H. G. # $FreeBSD$ -# PORTNAME= wavegain PORTVERSION= 1.2.8 @@ -14,10 +10,10 @@ MAINTAINER= darcsis@gmail.com COMMENT= A program that applies ReplayGain to wave files -LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile +LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile USE_ZIP= yes -USE_GMAKE= yes +USES= gmake USE_DOS2UNIX= audio.c wavegain.c PLIST_FILES= bin/wavegain @@ -30,6 +26,9 @@ BROKEN= Does not compile on ia64, powerpc, or sparc64 .endif +post-patch: + @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/Makefile.linux + do-configure: @cd ${WRKSRC} && ${CP} Makefile.linux Makefile Index: files/patch-Makefile.linux =================================================================== --- files/patch-Makefile.linux (revision 325515) +++ files/patch-Makefile.linux (working copy) @@ -1,9 +1,11 @@ ---- Makefile.linux 2005-11-30 11:17:14.000000000 +0800 -+++ Makefile.linux 2008-05-24 22:14:34.000000000 +0800 -@@ -1,5 +1,5 @@ +--- Makefile.linux.orig 2005-11-30 12:17:14.000000000 +0100 ++++ Makefile.linux 2013-08-28 13:02:43.817494398 +0200 +@@ -1,5 +1,7 @@ ++CC ?= cc ++ all: - gcc *.c -o wavegain -DHAVE_CONFIG_H -lm -lsndfile -+ gcc *.c -o wavegain -DHAVE_CONFIG_H -lm -lsndfile -L/usr/local/lib ++ ${CC} *.c -o wavegain -DHAVE_CONFIG_H -lm -lsndfile -L%%LOCALBASE%%/lib install: install -d /usr/bin/ >Release-Note: >Audit-Trail: >Unformatted: