5cb978edde
if he comes back. In the mean time, fix build of chromium by adding the required -I/usr/local/includes to gyp glue where needed.
108 lines
3.0 KiB
Makefile
108 lines
3.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.18 2010/12/13 09:51:45 espie Exp $
|
|
|
|
ONLY_FOR_ARCHS = i386 amd64
|
|
|
|
COMMENT = Chromium browser
|
|
|
|
DISTNAME= chromium-5.0.359.1
|
|
REVISION= 3
|
|
|
|
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
|
|
|
|
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
|
|
WANTLIB += expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
|
|
WANTLIB += gio-2.0 glib-2.0 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 execinfo bz2 nss3 nssutil3 ssl3 smime3 softokn3 gconf-2
|
|
WANTLIB += GL Xxf86vm drm stdc++ xcb-render xcb-shm
|
|
|
|
MASTER_SITES= ${MASTER_SITE_BACKUP} \
|
|
${HOMEPAGE}
|
|
|
|
MODULES = devel/gettext \
|
|
lang/python
|
|
|
|
MODPY_RUNDEP = No
|
|
|
|
RUN_DEPENDS = sysutils/gamin,-server
|
|
BUILD_DEPENDS = devel/gperf \
|
|
devel/bison \
|
|
shells/bash
|
|
LIB_DEPENDS = devel/libexecinfo \
|
|
archivers/bzip2 \
|
|
security/nss \
|
|
devel/gconf2
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
# Set BUILDTYPE to Debug (or omit it) for a debug build
|
|
BUILDTYPE= Release
|
|
.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++
|
|
|
|
MAKE_ENV = BUILDTYPE=${BUILDTYPE} V=1 \
|
|
CXX=${LOCALBASE}/bin/eg++ \
|
|
CXX.host=${LOCALBASE}/bin/eg++ \
|
|
LINK.host=${LOCALBASE}/bin/eg++ \
|
|
CC=${LOCALBASE}/bin/egcc
|
|
.endif
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
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}
|
|
|
|
pre-configure:
|
|
@ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
|
|
|
|
# gyp_chromium generates all the Makefiles from gyp
|
|
do-configure:
|
|
@cd ${WRKSRC} && \
|
|
env -i ${CONFIGURE_ENV} ${MODPY_BIN} build/gyp_chromium -fmake --ignore-environment \
|
|
-Ibuild/common.gypi -Ibuild/features_override.gypi "--depth=${WRKSRC}" \
|
|
-DOS=openbsd -Duse_system_libxml=1 -Duse_system_libjpeg=1 \
|
|
build/all.gyp
|
|
|
|
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>
|