2010-08-01 15:15:18 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.12 2010/08/01 19:15:18 naddy Exp $
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS = i386 amd64
|
|
|
|
|
2009-12-18 18:26:34 -05:00
|
|
|
COMMENT = Chromium browser
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
|
2010-05-17 15:01:34 -04:00
|
|
|
DISTNAME= chromium-5.0.359.1
|
2010-08-01 15:15:18 -04:00
|
|
|
REVISION= 0
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
|
|
|
|
CATEGORIES = www
|
|
|
|
|
|
|
|
HOMEPAGE = http://sightly.net/peter/openbsd/chromium/
|
|
|
|
|
|
|
|
MAINTAINER = Peter Valchev <pvalchev@openbsd.org>
|
|
|
|
|
|
|
|
# BSD-like
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
2010-04-01 17:14:14 -04:00
|
|
|
WANTLIB += ORBit-2 X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xss
|
|
|
|
WANTLIB += Xfixes Xi Xinerama Xrandr Xrender atk-1.0 c cairo dbus-1 dbus-glib-1
|
2009-12-20 12:27:34 -05:00
|
|
|
WANTLIB += expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
|
|
|
|
WANTLIB += gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0 gthread-2.0
|
|
|
|
WANTLIB += gtk-x11-2.0 jpeg m nspr4 pango-1.0 pangocairo-1.0 pangoft2-1.0
|
|
|
|
WANTLIB += pixman-1 plc4 plds4 png pthread pthread-stubs xcb xml2
|
|
|
|
WANTLIB += z
|
|
|
|
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BACKUP} \
|
|
|
|
http://sightly.net/peter/openbsd/chromium/
|
|
|
|
|
2010-05-10 11:26:31 -04:00
|
|
|
MODULES = devel/gettext
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
PYTHON_VER= 2.6
|
2010-02-03 07:32:54 -05:00
|
|
|
RUN_DEPENDS = :gamin-*:sysutils/gamin,-server
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
BUILD_DEPENDS = :python->=${PYTHON_VER}:lang/python/${PYTHON_VER} \
|
|
|
|
::devel/gperf \
|
|
|
|
::devel/bison \
|
|
|
|
::shells/bash
|
|
|
|
LIB_DEPENDS = execinfo::devel/libexecinfo \
|
2010-04-01 17:14:14 -04:00
|
|
|
bz2::archivers/bzip2 \
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
nss3,nssutil3,ssl3,smime3,softokn3::security/nss \
|
2009-12-31 07:06:35 -05:00
|
|
|
gconf-2::devel/gconf2
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
|
2010-05-10 11:26:31 -04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2009-12-19 11:56:07 -05:00
|
|
|
# Set BUILDTYPE to Debug (or omit it) for a debug build
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
BUILDTYPE= Release
|
2010-05-10 11:26:31 -04:00
|
|
|
.if ${COMPILER_VERSION:L:Mgcc4*}
|
|
|
|
MAKE_ENV = BUILDTYPE=${BUILDTYPE} V=1 \
|
|
|
|
CXX=/usr/bin/g++ \
|
|
|
|
CXX.host=/usr/bin/g++ \
|
|
|
|
LINK.host=/usr/bin/g++ \
|
|
|
|
CC=/usr/bin/gcc
|
|
|
|
.else
|
|
|
|
|
|
|
|
MODULES += gcc4
|
|
|
|
MODGCC4_ARCHES = *
|
|
|
|
MODGCC4_LANGS = c c++
|
|
|
|
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
MAKE_ENV = BUILDTYPE=${BUILDTYPE} V=1 \
|
|
|
|
CXX=${LOCALBASE}/bin/eg++ \
|
|
|
|
CXX.host=${LOCALBASE}/bin/eg++ \
|
|
|
|
LINK.host=${LOCALBASE}/bin/eg++ \
|
|
|
|
CC=${LOCALBASE}/bin/egcc
|
2010-05-10 11:26:31 -04:00
|
|
|
.endif
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
|
|
|
|
USE_X11 = Yes
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
|
|
|
|
|
|
|
|
ALL_TARGET = chrome
|
|
|
|
|
|
|
|
BUILDDIR= ${WRKSRC}/out/${BUILDTYPE}
|
|
|
|
|
|
|
|
pre-configure:
|
2009-12-19 11:56:07 -05:00
|
|
|
@ln -sf ${LOCALBASE}/bin/python${PYTHON_VER} ${WRKDIR}/bin/python
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
|
|
|
|
# gyp_chromium generates all the Makefiles from gyp
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && \
|
2009-12-19 11:56:07 -05:00
|
|
|
env -i ${CONFIGURE_ENV} python build/gyp_chromium -fmake --ignore-environment \
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
-Ibuild/common.gypi -Ibuild/features_override.gypi "--depth=${WRKSRC}" \
|
|
|
|
-DOS=openbsd -Duse_system_libxml=1 -Duse_system_libjpeg=1 \
|
2010-04-01 17:14:14 -04:00
|
|
|
build/all.gyp
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
|
|
|
|
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_DATA} ${BUILDDIR}/chrome.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
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|