Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Sep 2012 14:04:56 -0700 (PDT)
From:      Christian Mangin <christian.mangin@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/171295: [PATCH] print/splix: Remove hardcoded gcc/g++ in Makefile
Message-ID:  <50451b78.c4bb320a.616d.51a5@mx.google.com>
Resent-Message-ID: <201209032110.q83LAAbj046539@freefall.freebsd.org>

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

>Number:         171295
>Category:       ports
>Synopsis:       [PATCH] print/splix: Remove hardcoded gcc/g++ in Makefile
>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:   Mon Sep 03 21:10:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Christian Mangin
>Release:        FreeBSD 9.1-RC1 amd64
>Organization:
>Environment:
System: FreeBSD 9.1-RC1 amd64


>Description:
This port has a hardcoded dependency on gcc/g++ in its Makefile and won't
honor $CC and $CXX.

>How-To-Repeat:
>Fix:
Patch attached:

--- splix.diff begins here ---
diff -ruN splix.orig/Makefile splix/Makefile
--- splix.orig/Makefile	2012-06-10 14:42:13.000000000 -0400
+++ splix/Makefile	2012-09-03 16:38:17.772759186 -0400
@@ -53,6 +53,9 @@
 
 .include "bsd.port.pre.mk"
 
+post-patch:
+	@${TOUCH} ${WRKSRC}/.defs.mk
+
 post-configure:
 
 .if !defined(WITHOUT_JBIG)
diff -ruN splix.orig/files/patch-Makefile splix/files/patch-Makefile
--- splix.orig/files/patch-Makefile	1969-12-31 19:00:00.000000000 -0500
+++ splix/files/patch-Makefile	2012-09-03 15:38:58.235760824 -0400
@@ -0,0 +1,11 @@
+--- Makefile.orig	2012-09-03 15:38:14.697756578 -0400
++++ Makefile	2012-09-03 15:38:24.448760166 -0400
+@@ -55,8 +55,6 @@
+ # +--------------------------------------------------------------------------+
+ LANGUAGES	:= cpp c
+ 
+-CC		:= gcc
+-CXX		:= g++
+ RM		:= rm -f
+ AR		:= ar crs
+ LEX		:= flex
diff -ruN splix.orig/files/patch-rules.mk splix/files/patch-rules.mk
--- splix.orig/files/patch-rules.mk	1969-12-31 19:00:00.000000000 -0500
+++ splix/files/patch-rules.mk	2012-09-03 14:51:33.678759641 -0400
@@ -0,0 +1,17 @@
+--- rules.mk.orig	2012-09-03 14:49:22.619758499 -0400
++++ rules.mk	2012-09-03 14:50:05.905758950 -0400
+@@ -6,12 +6,12 @@
+ 
+ $(rastertoqpdl_TARGET): $(rastertoqpdl_OBJ)
+ 	$(call printCmd, $(cmd_link))
+-	$(Q)g++ -o $@ $^ $(rastertoqpdl_CXXFLAGS) $(rastertoqpdl_LDFLAGS) \
++	$(Q)$(CXX) -o $@ $^ $(rastertoqpdl_CXXFLAGS) $(rastertoqpdl_LDFLAGS) \
+ 		$(rastertoqpdl_LIBS)
+ 
+ $(pstoqpdl_TARGET): $(pstoqpdl_OBJ)
+ 	$(call printCmd, $(cmd_link))
+-	$(Q)g++ -o $@ $^ $(pstoqpdl_CXXFLAGS) $(pstoqpdl_LDFLAGS) \
++	$(Q)$(CXX) -o $@ $^ $(pstoqpdl_CXXFLAGS) $(pstoqpdl_LDFLAGS) \
+ 		$(pstoqpdl_LIBS)
+ 
+ .PHONY: install installcms
--- splix.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50451b78.c4bb320a.616d.51a5>