build on amd64

Emanuel Haupt ehaupt at FreeBSD.org
Wed Oct 19 13:32:19 PDT 2005


Hi,

Could someone with an amd64 machine confirm that the following patch
wont break ports/japanese/xdtp.

--- ports-japanese-xdtp.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/japanese/xdtp/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	19 Oct 2005 19:12:52 -0000	1.3
+++ Makefile	19 Oct 2005 20:16:12 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	xdtp
 PORTVERSION=	1.0.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	japanese
 MASTER_SITES+=	http://www.ongs.co.jp/projects/xdtp/
 DISTNAME=	xdtp-${PORTVERSION}
@@ -18,6 +18,7 @@
 
 LIB_DEPENDS=	glibmm-2.4:${PORTSDIR}/devel/glibmm
 
+USE_REINPLACE=	yes
 INSTALLS_SHLIB=	yes
 USE_GCC=	3.4
 USE_GNOME=	libxml2 libxslt pkgconfig
@@ -27,8 +28,6 @@
 		DEBUG	"Build with debug option" off \
 		INCLUDE	"Install with XDTP include files" on
 
-CFLAGS+=	-fPIC
-
 .include <bsd.port.pre.mk>
 
 .if defined(WITH_GDK)
@@ -49,4 +48,8 @@
 PLIST_SUB+=	XDTP_INC="@comment "
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|\(CXXFLAGS}\)\(.*LIBTARGET\)|\1 -fPIC\2|' \
+		${WRKSRC}/src/Makefile
+
 .include <bsd.port.post.mk>
--- ports-japanese-xdtp.patch ends here ---

Thanks,
Emanuel

-- 
GnuPG key id: 0x55E67774         Download: http://pgp.mit.edu:11371
Key fingerprint: 17B3 FD8F BA68 4AB4 10FD  A9D1 AD52 6588 55E6 7774
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20051019/4ef7e0ac/attachment.bin


More information about the freebsd-amd64 mailing list