2008-09-26 15:04:26 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.48 2008/09/26 19:04:26 martynas Exp $
|
2006-01-10 12:58:47 -05:00
|
|
|
|
2006-12-04 04:47:54 -05:00
|
|
|
ONLY_FOR_ARCHS= alpha amd64 arm i386 powerpc sparc64
|
2005-11-08 02:19:07 -05:00
|
|
|
SHARED_ONLY= Yes
|
2005-05-25 02:59:10 -04:00
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= small, simple, and powerful web browser for mobile devices
|
2008-09-26 15:04:26 -04:00
|
|
|
DISTNAME= minimo-1.8.1.17
|
|
|
|
PKGNAME= ${DISTNAME}v0
|
2006-01-10 12:58:47 -05:00
|
|
|
|
|
|
|
CATEGORIES= www
|
2008-07-08 16:37:30 -04:00
|
|
|
MASTER_SITES= http://mirrors.protection.cx/~martynas/mozilla/minimo/
|
2005-05-25 02:59:10 -04:00
|
|
|
|
2008-08-23 18:12:21 -04:00
|
|
|
HOMEPAGE= http://www-archive.mozilla.org/projects/minimo/
|
2005-05-25 02:59:10 -04:00
|
|
|
|
|
|
|
# MPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2006-10-01 18:23:47 -04:00
|
|
|
MODULES= devel/gettext
|
2005-05-25 02:59:10 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS= :zip->=2.3:archivers/zip \
|
|
|
|
:unzip-*:archivers/unzip \
|
2006-12-16 07:22:32 -05:00
|
|
|
:libIDL-*:devel/libIDL
|
2006-08-03 20:10:42 -04:00
|
|
|
LIB_DEPENDS= jpeg.>=62::graphics/jpeg \
|
|
|
|
png.>=3::graphics/png \
|
2006-11-17 14:03:14 -05:00
|
|
|
gdk-x11-2.0.>=600.0,gdk_pixbuf-2.0.>=600.0,gtk-x11-2.0.>=600.0::x11/gtk+2 \
|
2007-04-01 05:36:15 -04:00
|
|
|
nspr4.>=17,plc4.>=17,plds4.>=17:nspr->=4.6.4p1:devel/nspr \
|
2008-08-23 18:12:21 -04:00
|
|
|
nss3.>=19,nssutil3.>=22,smime3.>=19,softokn3.>=19,ssl3.>=19:nss->=3.11.4p1:security/nss
|
2007-11-13 16:24:47 -05:00
|
|
|
WANTLIB= X11 Xcomposite Xcursor Xdamage Xext Xfixes Xft Xi Xinerama \
|
|
|
|
Xrandr Xrender Xt Xau Xdmcp expat c fontconfig freetype m \
|
|
|
|
pthread z \
|
2006-08-03 20:10:42 -04:00
|
|
|
atk-1.0.>=1011.0 glib-2.0.>=600.0 gmodule-2.0.>=600.0 \
|
2006-09-18 07:59:59 -04:00
|
|
|
gobject-2.0.>=600.0 pango-1.0.>=800.0 pangocairo-1.0 \
|
2008-07-08 16:37:30 -04:00
|
|
|
pangoft2-1.0 pixman-1 cairo glitz stdc++
|
2005-05-25 02:59:10 -04:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_X11= Yes
|
|
|
|
VMEM_WARNING= Yes
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/mozilla
|
|
|
|
|
2006-12-04 04:47:54 -05:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/build/autoconf
|
|
|
|
|
|
|
|
AUTOCONF_VERSION=2.13
|
|
|
|
CONFIGURE_STYLE=autoconf no-autoheader
|
|
|
|
# use system libs
|
|
|
|
CONFIGURE_ARGS= --with-system-jpeg=${LOCALBASE} \
|
|
|
|
--with-system-png=${LOCALBASE} \
|
|
|
|
--with-system-zlib=/usr/lib \
|
|
|
|
--with-system-nspr \
|
2007-04-01 05:36:15 -04:00
|
|
|
--with-system-nss \
|
2006-12-04 04:47:54 -05:00
|
|
|
--with-pthreads \
|
|
|
|
--disable-native-uconv
|
|
|
|
|
|
|
|
# minimo mozconfig
|
|
|
|
CONFIGURE_ARGS+=--enable-application=minimo \
|
|
|
|
--enable-default-toolkit=gtk2 \
|
|
|
|
--enable-xft \
|
|
|
|
--disable-freetype2 \
|
2007-04-01 05:36:15 -04:00
|
|
|
--disable-optimize \
|
2006-12-04 04:47:54 -05:00
|
|
|
--enable-strip \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-plugins
|
|
|
|
# things we dont want
|
|
|
|
CONFIGURE_ARGS+=--disable-installer \
|
|
|
|
--disable-updater \
|
|
|
|
--disable-gnomeui \
|
|
|
|
--disable-gnomevfs \
|
|
|
|
--disable-tests \
|
|
|
|
--disable-reorder
|
|
|
|
CONFIGURE_ARGS+=--enable-crypto
|
|
|
|
|
2006-12-26 21:55:24 -05:00
|
|
|
FLAVORS=debug
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mdebug}
|
|
|
|
CONFIGURE_ARGS+=--disable-strip --enable-debug --enable-optimize=-O0
|
|
|
|
INSTALL_STRIP=
|
|
|
|
.endif
|
|
|
|
|
2006-12-04 04:47:54 -05:00
|
|
|
MAKE_ENV= MOZ_CO_PROJECT=minimo \
|
|
|
|
LD_LIBRARY_PATH="${WRKSRC}/dist/bin" \
|
|
|
|
BUILD_OFFICIAL=1 \
|
2007-04-01 09:19:58 -04:00
|
|
|
MOZILLA_OFFICIAL=1
|
2006-12-04 04:47:54 -05:00
|
|
|
CONFIGURE_ENV= ${MAKE_ENV} \
|
2007-04-01 05:36:15 -04:00
|
|
|
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig" \
|
|
|
|
topsrcdir=${WRKSRC}
|
2006-12-04 04:47:54 -05:00
|
|
|
|
|
|
|
MOB= ${WRKSRC}/dist/bin
|
2007-04-01 09:19:58 -04:00
|
|
|
MOZ= ${PREFIX}/share/minimo
|
2005-05-25 02:59:10 -04:00
|
|
|
|
|
|
|
do-install:
|
2006-12-04 04:47:54 -05:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}
|
2007-04-01 09:19:58 -04:00
|
|
|
${INSTALL_PROGRAM} ${MOB}/minimo ${PREFIX}/bin/
|
2006-12-04 04:47:54 -05:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/chrome
|
|
|
|
${INSTALL_DATA} ${MOB}/chrome/classic.{jar,manifest} \
|
|
|
|
${MOB}/chrome/en-US.{jar,manifest} \
|
|
|
|
${MOB}/chrome/minimo.{jar,manifest} \
|
|
|
|
${MOB}/chrome/minimo-skin.{jar,manifest} \
|
|
|
|
${MOB}/chrome/minimo-skin-vga.{jar,manifest} \
|
|
|
|
${MOB}/chrome/toolkit.{jar,manifest} \
|
|
|
|
${MOB}/chrome/pippki.{jar,manifest} ${MOZ}/chrome/
|
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/components
|
|
|
|
${INSTALL_DATA} ${MOB}/components/nsHelperAppDlg.js \
|
|
|
|
${MOB}/components/nsProgressDialog.js \
|
|
|
|
${MOB}/extensions/spatial-navigation@extensions.mozilla.org/components/* \
|
|
|
|
${MOZ}/components/
|
2005-05-25 02:59:10 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/greprefs
|
2006-12-04 04:47:54 -05:00
|
|
|
${INSTALL_DATA} ${MOB}/greprefs/* ${MOZ}/greprefs/
|
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/res
|
|
|
|
@cp -fr ${MOB}/res/* ${MOZ}/res/
|
|
|
|
@rm -fr ${MOZ}/res/{samples,throbber,viewer.properties,viewsource.css,hiddenWindow.html,bloatcycle.html}
|
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/plugins
|
|
|
|
${MOB}/xpt_link ${MOZ}/components/all.xpt ${MOB}/components/*.xpt
|
|
|
|
@cd ${MOZ}/chrome && \
|
|
|
|
${UNZIP} classic.jar && \
|
|
|
|
rm -rf classic.jar && \
|
|
|
|
rm -rf skin/classic/communicator && \
|
|
|
|
rm -rf skin/classic/editor && \
|
|
|
|
rm -rf skin/classic/messenger && \
|
|
|
|
rm -rf skin/classic/navigator && \
|
|
|
|
zip -r classic.jar skin && \
|
|
|
|
rm -rf skin && \
|
|
|
|
${UNZIP} en-US.jar && \
|
|
|
|
rm -rf en-US.jar && \
|
|
|
|
rm -rf locale/en-US/communicator && \
|
|
|
|
rm -rf locale/en-US/navigator && \
|
|
|
|
zip -r en-US.jar locale && \
|
|
|
|
rm -rf locale
|
|
|
|
@cp -f ${WRKSRC}/minimo/customization/all.js ${MOZ}/greprefs/
|
|
|
|
@cat ${WRKSRC}/minimo/customization/ua.css.additions >> ${MOZ}/res/ua.css
|
2005-05-25 02:59:10 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|