Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 17:58:41 GMT
From:      Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/88149: [manteiner updater] port does not respect non-standard LOCALBASE/X11BASE settings
Message-ID:  <200510281758.j9SHwfJS064773@www.freebsd.org>
Resent-Message-ID: <200510281800.j9SI0Tv3066674@freefall.freebsd.org>

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

>Number:         88149
>Category:       ports
>Synopsis:       [manteiner updater] port does not respect non-standard LOCALBASE/X11BASE settings
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 28 18:00:28 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jose Alonso Cardenas Marquez
>Release:        FreeBSD 6.0-RC1 i386
>Organization:
BSDPeru (http://www.bsd.org.pe)
>Environment:
FreeBSD HellFire.BSD.org.pe 6.0-RC1 FreeBSD 6.0-RC1 #0: Wed Oct 19 14:46:10 PET 2005 acardenas@HellFire.BSD.org.pe:/usr/obj/usr/src/sys/HellFire i386    
>Description:
This port does not respect non-standard LOCALBASE/X11BASE settings, which is a requirement that all FreeBSD ports should satisfy, patch solved problem.   
>How-To-Repeat:

>Fix:
--- patch-py-sdl_mixer begins here ---
diff -ruN Makefile Makefile
--- Makefile	Sat Oct  8 12:57:45 2005
+++ Makefile	Fri Oct 28 00:45:16 2005
@@ -30,6 +30,10 @@
 post-patch:
 	@${REINPLACE_CMD} -e 's,"SDL","SDL-1.1",g' ${WRKSRC}/setup.py
 	@${REINPLACE_CMD} -e 's,SDL/SDL,SDL11/SDL,g' ${WRKSRC}/sdl_mixer.c
+	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+		${WRKSRC}/setup.py
+	@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
+		${WRKSRC}/setup.py
 
 post-install:
 .if !defined(NOPORTDOCS)
diff -ruN files/patch-setup.py files/patch-setup.py
--- files/patch-setup.py	Wed Dec 31 19:00:00 1969
+++ files/patch-setup.py	Fri Oct 28 00:38:17 2005
@@ -0,0 +1,19 @@
+--- setup.py.orig	Fri Oct 28 00:13:10 2005
++++ setup.py	Fri Oct 28 00:14:18 2005
+@@ -17,12 +17,14 @@
+ 
+ INCDIR = [
+   "/usr/include",
+-  "/usr/local/include",
++  "%%LOCALBASE%%/include",
++  "%%X11BASE%%/include",
+   "/sw/include", # For Mac OS X
+   ]
+ LIBDIR = [
+   "/usr/lib",
+-  "/usr/local/lib",
++  "%%LOCALBASE%%/lib",
++  "%%X11BASE%%/lib",
+   "/sw/lib/", # For Mac OS X
+   ]
+ 
--- patch-py-sdl_mixer ends here ---     
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510281758.j9SHwfJS064773>