Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2002 12:12:13 +0900 (KST)
From:      Hye-Shik Chang <perky@fallin.lv>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/37084: Fix port: graphics/py-gd
Message-ID:  <200204150312.g3F3CDlM012515@akaraka.yonsei.ac.kr>

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

>Number:         37084
>Category:       ports
>Synopsis:       Fix port: graphics/py-gd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 14 20:20:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hye-Shik Chang
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Yonsei University
>Environment:
System: FreeBSD akaraka.yonsei.ac.kr 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Mon Apr 15 01:05:17 KST 2002 root@akaraka.yonsei.ac.kr:/usr/src/sys/i386/compile/JOARRA i386

>Description:
Fix the problem occurs when LOCALBASE != /usr/local or X11BASE != /usr/X11R6

>How-To-Repeat:
>Fix:


diff -ruN py-gd.orig/Makefile py-gd/Makefile
--- py-gd.orig/Makefile	Thu Mar 14 17:59:38 2002
+++ py-gd/Makefile	Mon Apr 15 12:08:37 2002
@@ -16,7 +16,6 @@
 LIB_DEPENDS=	gd.2:${PORTSDIR}/graphics/gd
 
 USE_PYTHON=	yes
-EXCMD=		/usr/bin/ex
 PLIST_SUB=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
 		EXAMPLE_DIR=${EXAMPLE_DIR:S,^${PREFIX}/,,g}
 EXAMPLE_DIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
@@ -26,10 +25,10 @@
 .endif
 
 post-patch:
-	${EXCMD} -c 's,^\(gd.*\)$$,\1 -I${LOCALBASE}/include/gd,g|wq!' ${WRKSRC}/Setup
-	${EXCMD} -c 's,-lttf,,g|wq!' ${WRKSRC}/Setup
+	${PERL} -pi -e 's,^(gd.*)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g; s,-lttf,,g; s,/usr/X11R6,${X11BASE},g;' \
+		${WRKSRC}/Setup
 .if defined(WITHOUT_X11)
-	${EXCMD} -c 's,-lX11 -lXpm,,g|wq!' ${WRKSRC}/Setup
+	${PERL} -pi -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
 .endif
 
 pre-build:
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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