Date: Wed, 16 Feb 2005 00:12:36 -0800 From: "David O'Brien" <obrien@freebsd.org> To: freebsd-emulation@freebsd.org Subject: AMD64 patch for 'ports/x11-toolkits/linux-gtk' Message-ID: <20050216081236.GA34471@dragon.nuxi.com>
next in thread | raw e-mail | index | archive | help
Any have a problem with this patch?
1. fix ordering to better follow Mk/bsd.port.mk guidelines
2. allow "ARCH" to be over-ridable.
--
-- David (obrien@FreeBSD.org)
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/x11-toolkits/linux-gtk/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- Makefile 31 Dec 2004 18:24:09 -0000 1.28
+++ Makefile 16 Feb 2005 08:09:19 -0000
@@ -21,10 +21,17 @@
BUILD_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm
RUN_DEPENDS?= ${LINUXBASE}/usr/X11R6/lib/libX11.so.6:${PORTSDIR}/x11/linux-XFree86-libs
+ONLY_FOR_ARCHS?= i386 alpha amd64
+
+.include <bsd.port.pre.mk>
+
+.if (${ARCH} == "amd64")
+ARCH= i386
+RPMFLAGS+= --ignorearch
+.endif
+
USE_LINUX_PREFIX= yes
USE_LINUX= yes
-
-ONLY_FOR_ARCHS?= i386 alpha
DIST_SUBDIR?= rpm
EXTRACT_ONLY=
NO_BUILD= yes
@@ -66,4 +73,4 @@
${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' \
>> ${PLIST}.new
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050216081236.GA34471>
