mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
15b6544926
plugins support one of web browsers and can take care of plist (depend on how you use it) at the same time. I have written a complete document and even show how it works in the www/firefox/Makefile.webplugins so be sure to read in there. If there is anything that isn't clear in the document, please feel free to ask and I will try my best to improvement it. FYI: GNOME 2.24 depends on this, so it's coming. BTW: It's based on www/linux-mplayer-plugin/Makefile.npapi with heavy modified. Approved by: portmgr
79 lines
2.2 KiB
Makefile
79 lines
2.2 KiB
Makefile
# New ports collection makefile for: opera-devel
|
|
# Date created: April 24th 2008
|
|
# Whom: Arjan van Leeuwen
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= opera
|
|
PORTVERSION= ${OPERA_VER}
|
|
PORTREVISION= 1
|
|
CATEGORIES= www ipv6
|
|
MASTER_SITES= http://snapshot.opera.com/${MASTER_SITES_VER_PATH}/ \
|
|
http://T32.TecNik93.com/FreeBSD/others_ports/${PORTNAME}${PKGNAMESUFFIX}/sources/
|
|
PKGNAMESUFFIX= -devel
|
|
DISTNAME= ${PORTNAME}-${OPERA_VER}0-${OPERA_BUILD}.freebsd${OPERA_TYPE}-shared-qt3.${ARCH}
|
|
|
|
MAINTAINER= freebsd-maintainer@opera.com
|
|
COMMENT= Blazingly fast, full-featured, standards-compliant browser, devel version
|
|
|
|
OPERA_VER= 10.0
|
|
OPERA_MINVER= Alpha-1
|
|
OPERA_REL= final
|
|
#OPERA_DATE= 20080422
|
|
OPERA_BUILD= 4102
|
|
MASTER_SITES_VER_PATH= unix/${OPERA_VER}-${OPERA_MINVER}/${OPERA_ARCH}-freebsd
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
USE_BZIP2= yes
|
|
USE_QT_VER= 3
|
|
|
|
NO_BUILD= yes
|
|
|
|
OPTIONS= ASPELL "Use the aspell library for spell checking" on
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
OPERA_ARCH= ${ARCH:S,i386,intel,}
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
.if ${OSVERSION} >= 700000
|
|
OPERA_TYPE= 7
|
|
.else
|
|
OPERA_TYPE= 6
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_ASPELL)
|
|
LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6/lib/browser_plugins|${LOCALBASE}/lib/browser_plugins/symlinks/opera-devel|g' \
|
|
${WRKSRC}/usr/local/share/opera/ini/pluginpath.ini
|
|
|
|
do-install:
|
|
@(cd ${WRKSRC} && ./install.sh --prefix=${PREFIX} --docdir=${DOCSDIR} --sharedir=${DATADIR} --exec_prefix=${DATADIR}/bin --plugindir=${DATADIR}/plugins)
|
|
@${CP} ${DATADIR}/bin/operapluginwrapper ${DATADIR}/bin/operapluginwrapper.freebsd
|
|
@${INSTALL_SCRIPT} ${PATCHDIR}/operapluginwrapper ${DATADIR}/bin
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
# maintainer
|
|
make-distinfo:
|
|
@(for _arch in ${ONLY_FOR_ARCHS}; do \
|
|
for _osver in 600000 700000; do \
|
|
echo "generating distinfo for $${_arch} $${_osver}"; \
|
|
cd ${.CURDIR} && \
|
|
make ARCH=$${_arch} OSVERSION=$${_osver} makesum && \
|
|
${MV} distinfo distinfo.$${_arch}.$${_osver}; \
|
|
done \
|
|
done && \
|
|
${CAT} distinfo.* > distinfo && ${RM} distinfo.*)
|
|
|
|
.include <bsd.port.post.mk>
|