AMD64 patch for 'ports/x11-toolkits/linux-gtk'
David O'Brien
obrien at freebsd.org
Wed Feb 16 00:12:38 PST 2005
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 at 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>
More information about the freebsd-emulation
mailing list