Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Oct 2005 01:20:22 +0300
From:      Andrey Slusar <anrays@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/87854: [MAINTAINER] graphics/ida: Fix non standart LOCALBASE
Message-ID:  <E1ETRiw-0007Rc-09@santinel.home.ua>
Resent-Message-ID: <200510222230.j9MMUCD0023281@freefall.freebsd.org>

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

>Number:         87854
>Category:       ports
>Synopsis:       [MAINTAINER] graphics/ida: Fix non standart LOCALBASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 22 22:30:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Slusar
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 5.4-STABLE FreeBSD 5.4-STABLE #0: Fri Sep 9 01:49:50 EEST 2005 anray@santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
>Description:
	Notified by kris@.

	Fix non standart LOCALBASE.
>How-To-Repeat:
	
>Fix:

--- ida.diff begins here ---
diff -ru /usr/ports/graphics/ida/files/patch-mk::Variables.mk ida/files/patch-mk::Variables.mk
--- /usr/ports/graphics/ida/files/patch-mk::Variables.mk	Fri Aug 20 19:56:29 2004
+++ ida/files/patch-mk::Variables.mk	Sat Oct 22 22:55:06 2005
@@ -1,5 +1,5 @@
 --- mk/Variables.mk.orig	Sun Feb 22 14:27:19 2004
-+++ mk/Variables.mk	Fri Aug 20 19:15:12 2004
++++ mk/Variables.mk	Sat Oct 22 22:54:34 2005
 @@ -4,10 +4,10 @@
  # directories
  DESTDIR	=
@@ -15,3 +15,16 @@
  
  # package + version
  empty	:=
+@@ -34,9 +34,9 @@
+ 	   -Wpointer-arith -Wunused
+ 
+ # add /usr/local to the search path if something is in there ...
+-ifneq ($(wildcard /usr/local/include/*.h),)
+-  CFLAGS  += -I/usr/local/include
+-  LDFLAGS += -L/usr/local/$(LIB)
++ifneq ($(wildcard $(LOCALBASE)/include/*.h),)
++  CFLAGS  += -I$(LOCALBASE)/include
++  LDFLAGS += -L$(LOCALBASE)/$(LIB)
+ endif
+ 
+ # fixup include path for $(srcdir) != "."
--- ida.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?E1ETRiw-0007Rc-09>