[PATCH]: x11-toolkits/linux-gtk2: distfile unfetchable
Frank Laszlo
laszlof at vonostingroup.com
Tue Jan 17 09:01:17 PST 2006
>Submitter-Id: current-users
>Originator: Frank Laszlo
>Organization:
>Confidential: no
>Synopsis: [PATCH]: x11-toolkits/linux-gtk2: distfile unfetchable
>Severity:
>Priority:
>Category: ports
>Class:
>Release: FreeBSD 6.0-STABLE i386
>Environment:
System: FreeBSD ritamari.vonostingroup.com 6.0-STABLE FreeBSD 6.0-STABLE #0: Mon Nov 7 12:06:15 EST 2005 laszlof at ritamari.vonostingroup.com:/usr/obj/usr/src/sys/RITAMARI i386
>Description:
The distfile for this port is unfetchable if ARCH=amd64. The reason for this is that the rpm packager decided to
ARCH=x86_64 instead of amd64 in their naming convention. This patch will fix the issue.
>How-To-Repeat:
cd ${PORTSDIR}/x11-toolkits/linux-gtk2 && make ARCH=amd64 fetch
>Fix:
--- linux-gtk2-amd64.diff begins here ---
diff -NrU3 linux-gtk2.orig/Makefile linux-gtk2/Makefile
--- linux-gtk2.orig/Makefile Tue Jan 17 11:53:16 2006
+++ linux-gtk2/Makefile Tue Jan 17 11:58:10 2006
@@ -30,8 +30,16 @@
PLIST= ${PKGDIR}/pkg-plist
USE_XLIB= yes
RESTRICTED= "binaries under GNU LGPL without accompanying source"
-RPM_SET= gtk2-${PORTVERSION}-4.fc3.3.${ARCH}.rpm
+RPM_SET= gtk2-${PORTVERSION}-4.fc3.3.${ARCH_SUB}.rpm
PLIST_SUB= LIBVERSION="400.14" PORTVERSION="${PORTVERSION}"
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+ARCH_SUB=x86_64
+.else
+ARCH_SUB=${ARCH}
+.endif
post-install:
.for ii in gdk-pixbuf-query-loaders-32 gtk-demo gtk-query-immodules-2.0-32
--- linux-gtk2-amd64.diff ends here ---
More information about the freebsd-emulation
mailing list