summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authortron <tron>2001-03-23 08:42:56 +0000
committertron <tron>2001-03-23 08:42:56 +0000
commitdcc1f276f0daeffd191da9ce3793c6fca63eed09 (patch)
tree06ae9696aede59a8a8b01c85ac1f7045c7d12470 /www
parent788a6b411c8067bcca8c25610491a0cd66a9e694 (diff)
downloadpkgsrc-dcc1f276f0daeffd191da9ce3793c6fca63eed09.tar.gz
Prepare this package for "powerpc" support.
Diffstat (limited to 'www')
-rw-r--r--www/opera/Makefile24
1 files changed, 17 insertions, 7 deletions
diff --git a/www/opera/Makefile b/www/opera/Makefile
index 9e8229306d7..97b603c04f6 100644
--- a/www/opera/Makefile
+++ b/www/opera/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2001/03/23 08:38:06 tron Exp $
+# $NetBSD: Makefile,v 1.16 2001/03/23 08:42:56 tron Exp $
DISTNAME= opera-5.0b7
CATEGORIES= www
@@ -13,11 +13,6 @@ MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.opera.com/
COMMENT= Small, fast and customizable WWW client
-DEPENDS+= suse_compat>=6.4:../../emulators/suse_compat
-DEPENDS+= suse_libjpeg>=6.4:../../emulators/suse_libjpeg
-DEPENDS+= suse_libpng>=6.4:../../emulators/suse_libpng
-DEPENDS+= suse_x11>=6.4:../../emulators/suse_x11
-
ONLY_FOR_PLATFORM= NetBSD-*-i386
LICENSE= opera-license
@@ -27,7 +22,22 @@ EXTRACT_ONLY= # empty
NO_BUILD= YES
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
-RPMFILES= opera-static-5.0b7-20010320.018.1.${MACHINE_ARCH}.rpm
+.include "../../mk/bsd.prefs.mk"
+
+.if (${MACHINE_ARCH} == i386)
+DEPENDS+= suse_compat>=6.4:../../emulators/suse_compat
+DEPENDS+= suse_libjpeg>=6.4:../../emulators/suse_libjpeg
+DEPENDS+= suse_libpng>=6.4:../../emulators/suse_libpng
+DEPENDS+= suse_x11>=6.4:../../emulators/suse_x11
+
+OPERA_ARCH= ${MACHINE_ARCH}
+.elif (${MACHINE_ARCH} == powerpc)
+DEPENDS+= linuxppc_lib>=2000.q4.2:../../emulators/linuxppc_lib
+
+OPERA_ARCH= ppc
+.endif
+
+RPMFILES= opera-static-5.0b7-20010320.018.1.${OPERA_ARCH}.rpm
post-install:
${LN} -fs ../${EMULSUBDIR}/usr/bin/opera ${PREFIX}/bin