openbsd-ports/www/opera/Makefile

60 lines
1.6 KiB
Makefile
Raw Normal View History

2012-12-19 03:05:09 -05:00
# $OpenBSD: Makefile,v 1.77 2012/12/19 08:05:09 ajacoutot Exp $
ONLY_FOR_ARCHS= i386
SHARED_ONLY= Yes
COMMENT= fast and customizable WWW browser
2012-12-19 03:05:09 -05:00
V= 12.12
OPERA_BUILD= 1707
2012-10-11 06:47:41 -04:00
DISTNAME= opera-${V}-${OPERA_BUILD}.i386.linux
2010-06-26 02:18:08 -04:00
PKGNAME= opera-${V}
2012-10-11 06:47:41 -04:00
EXTRACT_SUFX= .tar.xz
CATEGORIES= www
2004-05-15 08:56:46 -04:00
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
HOMEPAGE= http://www.opera.com/
PERMIT_PACKAGE_CDROM= Commercial software
PERMIT_PACKAGE_FTP= Commercial software
PERMIT_DISTFILES_CDROM= Commercial software
PERMIT_DISTFILES_FTP= Commercial software
2012-10-11 06:47:41 -04:00
MASTER_SITES= ftp://ftp.opera.com/pub/opera/linux/${V:S/.//}/
2010-11-22 03:36:47 -05:00
RUN_DEPENDS= devel/desktop-file-utils \
2012-10-11 06:47:41 -04:00
emulators/fedora/base>=10.0 \
emulators/fedora/cups>=10.0 \
misc/shared-mime-info \
2011-12-03 18:20:52 -05:00
x11/gtk+2,-guic
2001-10-25 12:14:51 -04:00
NO_BUILD= Yes
NO_REGRESS= Yes
2012-10-11 06:47:41 -04:00
post-extract:
mv ${WRKSRC}/share/man ${WRKSRC}/man
cd ${WRKSRC}/man/man1 && gunzip *.gz
do-install:
2012-10-11 06:47:41 -04:00
.for i in lib man share
${INSTALL_DATA_DIR} ${PREFIX}/${i}
cd ${WRKSRC}/${i} && \
tar cf - * | tar xf - -C ${PREFIX}/${i}
.endfor
${SUBST_CMD} ${WRKSRC}/opera
${INSTALL_DATA_DIR} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/opera ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/opera
${INSTALL_DATA} ${FILESDIR}/operaprefs_default.ini \
${PREFIX}/share/examples/opera/operaprefs_default.ini
${INSTALL_DATA} ${FILESDIR}/operaprefs_fixed.ini \
${PREFIX}/share/examples/opera/operaprefs_fixed.ini
2012-10-11 06:47:41 -04:00
perl -pi -e 's,\@\@{PREFIX},${TRUEPREFIX},g;' \
-e 's,\@\@{_SUFFIX},,g;' \
-e 's,\@\@{SUFFIX},,g' \
${PREFIX}/share/applications/opera-browser.desktop
.include <bsd.port.mk>