diff options
author | obrien <obrien@FreeBSD.org> | 2005-02-17 01:51:23 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2005-02-17 01:51:23 +0800 |
commit | 5f8468e0308d5a620310026568cfbe99692dc592 (patch) | |
tree | ff679c9c5480147a7aab039f816d56226b386920 /x11-toolkits/linux-gtk | |
parent | 3403800c1a84143a8c1919dd19ca041446478186 (diff) | |
download | freebsd-ports-gnome-5f8468e0308d5a620310026568cfbe99692dc592.tar.gz freebsd-ports-gnome-5f8468e0308d5a620310026568cfbe99692dc592.tar.zst freebsd-ports-gnome-5f8468e0308d5a620310026568cfbe99692dc592.zip |
1. uses "ARCH" instead of "MACHINE_ARCH"
2. allow "ARCH" to be over-ridable.
3. fix ordering to better follow Mk/bsd.port.mk guidelines
XXX, I don't like setting "--ignorearch", but some ports just would not
install on amd64 w/o it. Even with the 'ARCH' override, installing these
RPM's would complain about the system being the wrong architecture.
Diffstat (limited to 'x11-toolkits/linux-gtk')
-rw-r--r-- | x11-toolkits/linux-gtk/Makefile | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/x11-toolkits/linux-gtk/Makefile b/x11-toolkits/linux-gtk/Makefile index 05a20c29f376..dcb95294c560 100644 --- a/x11-toolkits/linux-gtk/Makefile +++ b/x11-toolkits/linux-gtk/Makefile @@ -21,16 +21,23 @@ COMMENT?= RPM of the Gtk lib 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 + USE_LINUX_PREFIX= yes -USE_LINUX= yes -ONLY_FOR_ARCHS?= i386 alpha +.include <bsd.port.pre.mk> + +.if (${ARCH} == "amd64") +ARCH= i386 +RPMFLAGS+= --ignorearch +.endif +USE_LINUX= yes DIST_SUBDIR?= rpm EXTRACT_ONLY= NO_BUILD= yes NO_FILTER_SHLIBS= yes -PLIST?= ${PKGDIR}/pkg-plist.${MACHINE_ARCH} -MD5_FILE?= ${MASTERDIR}/distinfo.${MACHINE_ARCH} +PLIST?= ${PKGDIR}/pkg-plist.${ARCH} +MD5_FILE?= ${MASTERDIR}/distinfo.${ARCH} # Let's avoid hardcoding 'en' as the language. LANG= en @@ -39,15 +46,15 @@ BASEVERSION?= 7.1 RPM_MIRRORS= \ ftp://ftp.redhat.com/pub/redhat/__DIR__/ \ ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ -STDDIR= linux/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH}/RedHat/RPMS -UPDDIR= linux/updates/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH} -.if (${MACHINE_ARCH} == "i386") -RPM_SET?= gtk+-1.2.9-4.${MACHINE_ARCH}.rpm -.elif (${MACHINE_ARCH} == "alpha") -RPM_SET?= gtk+-1.2.9-4.${MACHINE_ARCH}.rpm +STDDIR= linux/${BASEVERSION}/${LANG}/os/${ARCH}/RedHat/RPMS +UPDDIR= linux/updates/${BASEVERSION}/${LANG}/os/${ARCH} +.if (${ARCH} == "i386") +RPM_SET?= gtk+-1.2.9-4.${ARCH}.rpm +.elif (${ARCH} == "alpha") +RPM_SET?= gtk+-1.2.9-4.${ARCH}.rpm .endif DBPATH= /var/lib/rpm -RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \ +RPMFLAGS+= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \ --nodeps --replacepkgs RPMDIR= ${DISTDIR}/${DIST_SUBDIR} @@ -66,4 +73,4 @@ new-plist: ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' \ >> ${PLIST}.new -.include <bsd.port.mk> +.include <bsd.port.post.mk> |