openbsd-ports/www/chromium/Makefile

136 lines
3.8 KiB
Makefile
Raw Normal View History

2011-12-14 11:58:19 -05:00
# $OpenBSD: Makefile,v 1.76 2011/12/14 16:58:19 robert Exp $
ONLY_FOR_ARCHS= i386 amd64
COMMENT= Chromium browser
2011-12-14 11:58:19 -05:00
V= 16.0.912.63
DISTNAME= chromium-${V}
CATEGORIES= www
2011-08-23 05:33:03 -04:00
HOMEPAGE= http://code.google.com/chromium/
MAINTAINER= Robert Nagy <robert@openbsd.org>
EXTRACT_SUFX= .tar.bz2
# BSD-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://blade2k.humppa.hu/distfiles/ \
2011-11-11 17:54:53 -05:00
http://commondatastorage.googleapis.com/chromium-browser-official/
2011-12-14 11:58:19 -05:00
MODULES= lang/python
2011-12-14 11:58:19 -05:00
WANTLIB += X11 Xext Xrender Xss bz2 c cairo cups dbus-1 event
WANTLIB += execinfo expat fontconfig freetype gconf-2 gcrypt gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 glib-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0
WANTLIB += jpeg m nspr4 nss3 nssutil3 pango-1.0 pangocairo-1.0
WANTLIB += plc4 png pthread pthread-stubs smime3 speex stdc++
2011-12-14 11:58:19 -05:00
WANTLIB += xml2 xslt
MODPY_RUNDEP= No
RUN_DEPENDS= sysutils/gamin,-server \
devel/xdg-utils \
devel/desktop-file-utils \
x11/gtk+2,-cups \
2011-12-03 18:20:52 -05:00
x11/gnome/icon-theme \
x11/gtk+2,-guic
BUILD_DEPENDS= archivers/bzip2 \
devel/gperf \
2010-11-22 03:36:47 -05:00
devel/bison \
devel/flex \
shells/bash \
sysutils/flock
LIB_DEPENDS= devel/libexecinfo \
2010-11-22 03:36:47 -05:00
archivers/bzip2 \
security/nss \
devel/gconf2 \
x11/gnome/libgnome-keyring \
textproc/libxslt \
x11/gtk+2 \
audio/speex \
2011-09-08 06:34:25 -04:00
print/cups>=1.5.0
.include <bsd.own.mk>
2009-12-19 11:56:07 -05:00
# Set BUILDTYPE to Debug (or omit it) for a debug build
BUILDTYPE= Release
MAKE_ENV= BUILDTYPE=${BUILDTYPE} V=1
USE_GMAKE= Yes
REGRESS_TARGET= base_unittests
CONFIGURE_STYLE=none # prevent python MODULE from overriding do-build
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
ALL_TARGET= chrome
BUILDDIR= ${WRKSRC}/out/${BUILDTYPE}
GYP_DEFS= -Duse_system_bzip2=1 \
-Duse_system_libevent=1 \
-Duse_system_libjpeg=1 \
-Duse_system_libpng=1 \
-Duse_system_libxml=1 \
-Duse_system_speex=1 \
-Duse_system_sqlite=0 \
2011-09-19 04:55:26 -04:00
-Duse_system_vpx=0 \
-Duse_system_yasm=0 \
-Duse_system_zlib=0 \
-Ddisable_nacl=1 \
-Ddisable_sse2=1 \
2011-09-19 04:55:26 -04:00
-Dlinux_use_tcmalloc=0 \
-Dlinux_strip_binary=1 \
-Denable_webrtc=0 \
-Duse_kerberos=0 \
-DOS=openbsd
pre-configure:
@ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
@cp -R ${WRKSRC}/third_party/libvpx/source/config/linux \
${WRKSRC}/third_party/libvpx/source/config/openbsd
${SUBST_CMD} ${WRKSRC}/build/common.gypi
# gyp_chromium generates all the Makefiles from gyp
do-configure:
@cd ${WRKSRC} && \
env -i ${CONFIGURE_ENV} ${MODPY_BIN} build/gyp_chromium -fmake --ignore-environment \
${GYP_DEFS} \
"--depth=${WRKSRC}"
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/chrome
${INSTALL_PROGRAM} ${BUILDDIR}/chrome ${PREFIX}/chrome
${INSTALL_SCRIPT} ${FILESDIR}/chrome ${PREFIX}/bin
@perl -pi -e "s,TRUEPREFIX,${TRUEPREFIX},g" ${PREFIX}/bin/chrome
${INSTALL_MAN} ${BUILDDIR}/chrome.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${BUILDDIR}/chrome.pak ${PREFIX}/chrome
${INSTALL_DATA} ${BUILDDIR}/resources.pak ${PREFIX}/chrome
${INSTALL_DATA_DIR} ${PREFIX}/chrome/locales
${INSTALL_DATA} ${BUILDDIR}/locales/* ${PREFIX}/chrome/locales
${INSTALL_DATA} ${BUILDDIR}/*.png ${PREFIX}/chrome
${INSTALL_DATA_DIR} ${PREFIX}/chrome/resources
@cp -Rp ${BUILDDIR}/resources/* ${PREFIX}/chrome/resources
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/chrome/resources
.for f in libffmpegsumo.so mksnapshot protoc
${INSTALL_DATA} ${BUILDDIR}/${f} ${PREFIX}/chrome
.endfor
.for s in 16 22 24 32 48 64 128 256
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/${s}x${s}/apps
${INSTALL_DATA} ${WRKSRC}/chrome/app/theme/chromium/product_logo_${s}.png \
${PREFIX}/share/icons/hicolor/${s}x${s}/apps/chrome.png
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${FILESDIR}/chrome.desktop \
${PREFIX}/share/applications/chrome.desktop
.include <bsd.port.mk>