aboutsummaryrefslogtreecommitdiffstats
path: root/www/opera-devel/Makefile
diff options
context:
space:
mode:
authorsf <sf@FreeBSD.org>2004-11-04 04:39:18 +0800
committersf <sf@FreeBSD.org>2004-11-04 04:39:18 +0800
commit4ea233afe8a7b13116948205f5be09e691f5bc25 (patch)
tree2d765b9c4f22537670c0660a61b45596e6bd13c9 /www/opera-devel/Makefile
parentd1e4d16f50046e7251f17a71e7255594df286fef (diff)
downloadfreebsd-ports-gnome-4ea233afe8a7b13116948205f5be09e691f5bc25.tar.gz
freebsd-ports-gnome-4ea233afe8a7b13116948205f5be09e691f5bc25.tar.zst
freebsd-ports-gnome-4ea233afe8a7b13116948205f5be09e691f5bc25.zip
re-add opera-devel, develop version of www/opera.
o update to 7.60 Preview-2 based on opera-devel port of 6 months ago, which was just before removal. o sync with www/opera as far as possible. o pre-patch hack to minimize patch-search.ini. o copy search.ini to locale/en/search.ini after patch, as they are identical. Approved by: Arjan van Leeuwen (who also maintains www/opera)
Diffstat (limited to 'www/opera-devel/Makefile')
-rw-r--r--www/opera-devel/Makefile87
1 files changed, 87 insertions, 0 deletions
diff --git a/www/opera-devel/Makefile b/www/opera-devel/Makefile
new file mode 100644
index 000000000000..037de736a9ec
--- /dev/null
+++ b/www/opera-devel/Makefile
@@ -0,0 +1,87 @@
+# New ports collection makefile for: opera
+# Date created: November 5th 2000
+# Whom: des
+#
+# $FreeBSD$
+#
+
+PORTNAME= opera
+PORTVERSION= ${OPERA_VER}.${OPERA_DATE}
+CATEGORIES= www
+MASTER_SITES= http://snapshot.opera.com/unix/${OPERA_VER}-${OPERA_REL}/intel-freebsd/en/
+PKGNAMESUFFIX= -devel
+DISTNAME= ${PORTNAME}-${OPERA_VER}-${OPERA_DATE}.1-static-qt.i386.freebsd-en
+
+MAINTAINER= avleeuwen@piwebs.com
+COMMENT= A blazingly fast, full-featured, standards-compliant browser
+
+OPERA_VER= 7.60
+OPERA_REL= Preview-2
+OPERA_DATE= 20041026
+
+DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
+
+USE_BZIP2= yes
+WANT_GNOME= yes
+USE_X_PREFIX= yes
+USE_REINPLACE= yes
+ONLY_FOR_ARCHS= i386
+
+NO_BUILD= yes
+NO_FILTER_SHLIBS=yes
+
+.ifndef(WITHOUT_ASPELL)
+LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500000
+LIB_DEPENDS+= c_r.4:${PORTSDIR}/misc/compat4x
+.endif
+
+.if ${HAVE_GNOME:Mgnomehier}!=""
+PLIST_SUB+= GNOME=""
+.else
+PLIST_SUB+= GNOME="@comment "
+.endif
+
+.if exists(${LOCALBASE}/bin/kde-config)
+PLIST_SUB+= KDE=""
+.else
+PLIST_SUB+= KDE="@comment "
+.endif
+
+pre-everything::
+.if !defined(WITHOUT_ASPELL)
+ @${ECHO_CMD} '===> The following options are available for this port:'
+ @${ECHO_CMD} '===>'
+ @${ECHO_CMD} '===> Define WITHOUT_ASPELL to not install aspell.'
+.endif
+
+pre-patch:
+ @${AWK} '{if (/^\[Search/) { \
+ num=$$3; sub(/\]$$/, "", num); \
+ if (num+0 < 4) {print; next} \
+ num+=2; \
+ print $$1, $$2, num"]"} else {print} \
+ }' ${WRKSRC}/search.ini > ${WRKSRC}/search.ini.new
+ @${MV} ${WRKSRC}/search.ini.new ${WRKSRC}/search.ini
+
+post-patch:
+ @${CP} ${WRKSRC}/search.ini ${WRKSRC}/locale/en
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
+ s|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%X11BASE%%|${X11BASE}|g' \
+ ${WRKSRC}/install.sh ${WRKSRC}/ini/pluginpath.ini \
+ ${WRKSRC}/ini/spellcheck.ini ${WRKSRC}/config/opera6rc
+ @${FIND} ${WRKSRC} -name '*.orig' -delete
+ @${FIND} ${WRKSRC} -name '*.bak' -delete
+
+do-install:
+ @(cd ${WRKSRC} && ./install.sh --prefix=${PREFIX})
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>