aboutsummaryrefslogtreecommitdiff
path: root/www/linux-opera/Makefile
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-07-09 10:22:22 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-07-09 10:22:22 +0000
commit9a8624f6dcb55c7ceb1b3a1ecc5066daa0fbf82c (patch)
tree6d00f2fe746d95c7a597d6248197d5dc6c848487 /www/linux-opera/Makefile
parent7ca211ab244fb22908ae220b5976bc4427ce9151 (diff)
Notes
Diffstat (limited to 'www/linux-opera/Makefile')
-rw-r--r--www/linux-opera/Makefile56
1 files changed, 48 insertions, 8 deletions
diff --git a/www/linux-opera/Makefile b/www/linux-opera/Makefile
index 124db94f05ce..9755ded6687d 100644
--- a/www/linux-opera/Makefile
+++ b/www/linux-opera/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: linux-opera4
+# New ports collection makefile for: linux-opera
# Date created: December 6th 2000
# Whom: des
#
@@ -6,13 +6,12 @@
#
PORTNAME= opera
-PORTVERSION= 6.12.20030305
-PORTREVISION= 1
+PORTVERSION= 7.11.20030515
+PORTREVISION= 2
CATEGORIES= www linux
-MASTER_SITES= http://opera.online.no/linux/612/final/en/i386/static/ \
- ftp://ftp.opera.com/pub/opera/linux/612/final/en/i386/static/
+MASTER_SITES= ftp://ftp.opera.com/pub/opera/linux/711/final/en/i386/static/
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/12./12-/}.1-static-qt.i386
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.2/-2/}.1-static-qt.i386
MAINTAINER= mezz7@cox.net
COMMENT= A blazingly fast, full-featured, standards-compliant browser
@@ -21,12 +20,53 @@ RUN_DEPENDS= ${LINUXBASE}/usr/X11R6/lib/libXm.so.2:${PORTSDIR}/x11-toolkits/linu
USE_BZIP2= yes
USE_LINUX= yes
+USE_X_PREFIX= yes
+USE_REINPLACE= yes
ONLY_FOR_ARCHS= i386
NO_BUILD= yes
NO_FILTER_SHLIBS=yes
+.include <bsd.port.pre.mk>
+
+.if exists(/etc/X11/applnk)
+PLIST_SUB+= APPLNK:=""
+.else
+PLIST_SUB+= APPLNK:="@comment "
+.endif
+
+.if exists(${X11BASE}/share/gnome)
+PLIST_SUB+= GNOME:=""
+.else
+PLIST_SUB+= GNOME:="@comment "
+.endif
+
+.if exists(${X11BASE}/share/applnk/Internet)
+PLIST_SUB+= KDE:=""
+.else
+PLIST_SUB+= KDE:="@comment "
+.endif
+
+.if exists(${X11BASE}/share/applnk/Networking)
+PLIST_SUB+= KDE2:=""
+.else
+PLIST_SUB+= KDE2:="@comment "
+.endif
+
+.if exists(${X11BASE}/share/gnome/apps)
+PLIST_SUB+= GNOMELNK:=""
+.else
+PLIST_SUB+= GNOMELNK:="@comment "
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%X11PREFIX%%|${X11BASE}|g ; \
+ s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/install.sh
+
do-install:
- (cd ${WRKSRC} && ./install.sh --prefix="${PREFIX}")
+ (cd ${WRKSRC} && ./install.sh --prefix=${PREFIX})
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>