Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2006 16:47:51 +0800 (CST)
From:      Gea-Suan Lin <gslin@gslin.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gslin@gslin.org, rafan@FreeBSD.org
Subject:   ports/101884: [PATCH] chinese/oxim: Respect DESTDIR
Message-ID:  <20060812084751.CD3ED372@netnews.NCTU.edu.tw>
Resent-Message-ID: <200608120850.k7C8oG8s089279@freefall.freebsd.org>

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

>Number:         101884
>Category:       ports
>Synopsis:       [PATCH] chinese/oxim: Respect DESTDIR
>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:   Sat Aug 12 08:50:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006
>Description:
- Respect DESTDIR
- Use USE_LDCONFIG

Port maintainer (rafan@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- oxim-1.0.3_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/chinese/oxim/Makefile /home/staff/gslin/work/ports/oxim/Makefile
--- /usr/ports/chinese/oxim/Makefile	Tue Jun 27 11:58:53 2006
+++ /home/staff/gslin/work/ports/oxim/Makefile	Sat Aug 12 16:47:20 2006
@@ -29,14 +29,14 @@
 USE_GNOME=
 
 GNU_CONFIGURE=	yes
-INSTALLS_SHLIB=	yes
+USE_LDCONFIG=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include -I${X11BASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib -liconv
 CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" \
 		LDFLAGS="${LDFLAGS}"
 CONFIGURE_ARGS+=--disable-bimsphone-module \
 		--disable-static \
-		--with-conf-dir=${PREFIX}/etc/${PORTNAME}
+		--with-conf-dir=${TARGETDIR}/etc/${PORTNAME}
 
 .include <bsd.port.pre.mk>
 
@@ -81,12 +81,12 @@
 #.endif
 
 post-patch:
-	${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' \
+	${REINPLACE_CMD} 's|%%PREFIX%%|${TARGETDIR}|' \
 			${WRKSRC}/src/gtk-immodule/gtkintl.h
 
 post-install:
 .if !defined(WITHOUT_GTK2)
-	@gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules
+	@gtk-query-immodules-2.0 > ${TARGETDIR}/etc/gtk-2.0/gtk.immodules
 .endif
 	@${CAT} ${PKGMESSAGE}
 	@${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
--- oxim-1.0.3_1.patch ends here ---

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



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