diff options
author | adamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-06-11 09:10:40 +0800 |
---|---|---|
committer | adamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-06-11 09:10:40 +0800 |
commit | c2fc60fe5fcfdcbeeab26614f2c0981b5751dbde (patch) | |
tree | 1ca62206f5921d1352621982da2012c927b460e9 /Mk/bsd.mozilla.mk | |
parent | ec3ba3227fd2288b97230d66b84bc8132b29fcd9 (diff) | |
download | marcuscom-ports-c2fc60fe5fcfdcbeeab26614f2c0981b5751dbde.tar marcuscom-ports-c2fc60fe5fcfdcbeeab26614f2c0981b5751dbde.tar.gz marcuscom-ports-c2fc60fe5fcfdcbeeab26614f2c0981b5751dbde.tar.bz2 marcuscom-ports-c2fc60fe5fcfdcbeeab26614f2c0981b5751dbde.tar.lz marcuscom-ports-c2fc60fe5fcfdcbeeab26614f2c0981b5751dbde.tar.xz marcuscom-ports-c2fc60fe5fcfdcbeeab26614f2c0981b5751dbde.tar.zst marcuscom-ports-c2fc60fe5fcfdcbeeab26614f2c0981b5751dbde.zip |
Import a beginning for a bsd.mozilla.mk. It is by no means complete,
nor is it functional. However, we need something like this badly,
and it needs work from others to make it happen. I'm not even sure
that the API, as it were, is optimal.
Let's make this work.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2390 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'Mk/bsd.mozilla.mk')
-rw-r--r-- | Mk/bsd.mozilla.mk | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/Mk/bsd.mozilla.mk b/Mk/bsd.mozilla.mk new file mode 100644 index 000000000..268462fef --- /dev/null +++ b/Mk/bsd.mozilla.mk @@ -0,0 +1,78 @@ +#-*- mode: Fundamental; tab-width: 4; -*- +# ex:ts=4 +# +# $FreeBSD$ +# $NetBSD: $ +# +# MarcusCOM: $Id: bsd.mozilla.mk,v 1.1 2004-06-11 01:10:40 adamw Exp $ +# +# 4 column tabs prevent hair loss and tooth decay! + +.if !defined(_POSTMKINCLUDED) && !defined(Mozilla_Pre_Include) + +# Please make sure all changes to this file are passed through the maintainer. +# Do not commit them yourself (unless of course you're the Port's Wraith ;). +Mozilla_Include_MAINTAINER= gnome@FreeBSD.org +Mozilla_Pre_Include= bsd.mozilla.mk + +# Ports can use this as follows: +# +# USE_MOZILLA= yes +# (use USE_MOZILLA_GTK1 for GTK1 ports) +# +# The following variables are exported: +# MOZILLA_SNAPSHOT_VER: for use in --with-mozilla-snapshot="${MOZILLA_SNAPSHOT_VER}" +# MOZILLA_INCLUDE_DIR: for use in --with-mozilla-includes="${MOZILLA_INCLUDE_DIR}" +# MOZILLA_LIB_DIR: for use in --with-mozilla-libs="${MOZILLA_LIB_DIR}" + +MOZ_DEVEL_SNAPSHOT_VER= 1.7rc2 +MOZ_STABLE_SNAPSHOT_VER= 1.6 +MOZ_GTK1_DEVEL_SNAPSHOT_VER=trunk +MOZ_GTK1_STABLE_SNAPSHOT_VER=trunk + +.if defined(USE_MOZILLA_GTK1) + +.if ${WITH_MOZILLA}=="mozilla-devel" || ${WITH_MOZILLA}=="mozilla-devel-gtk1" || \ + exists(${X11BASE}/bin/mozilla-devel) +BUILD_DEPENDS+= ${X11BASE}/lib/mozilla-devel-gtk1/components/libgtkembedmoz.so:${PORTSDIR}/www/mozilla-devel-gtk1 +RUN_DEPENDS+= ${X11BASE}/lib/mozilla-devel-gtk1/components/libgtkembedmoz.so:${PORTSDIR}/www/mozilla-devel-gtk1 +MOZILLA_SNAPSHOT_VER= ${MOZ_GTK1_DEVEL_SNAPSHOT_VER} +MOZILLA_INCLUDE_DIR= ${X11BASE}/include/mozilla-devel-gtk1 +MOZILLA_LIB_DIR= ${X11BASE}/lib/mozilla-devel-gtk1 +.else +BUILD_DEPENDS+= ${X11BASE}/lib/mozilla-gtk1/components/libgtkembedmoz.so:${PORTSDIR}/www/mozilla-devel-gtk1 +RUN_DEPENDS+= ${X11BASE}/lib/mozilla-gtk1/components/libgtkembedmoz.so:${PORTSDIR}/www/mozilla-devel-gtk1 +MOZILLA_SNAPSHOT_VER= ${MOZ_GTK1_STABLE_SNAPSHOT_VER} +MOZILLA_INCLUDE_DIR= ${X11BASE}/include/mozilla-gtk1 +MOZILLA_LIB_DIR= ${X11BASE}/lib/mozilla-gtk1 +.endif + +.else # if defined(USE_MOZILLA_GTK1) + +.if ${WITH_MOZILLA}=="mozilla-devel" || ${WITH_MOZILLA}=="mozilla-devel-gtk2" || \ + exists(${X11BASE}/bin/mozilla-devel) +BUILD_DEPENDS+= ${X11BASE}/lib/mozilla-devel/components/libwidget_gtk2.so:${PORTSDIR}/www/mozilla-devel +RUN_DEPENDS+= ${X11BASE}/lib/mozilla-devel/components/libwidget_gtk2.so:${PORTSDIR}/www/mozilla-devel +MOZILLA_SNAPSHOT_VER= ${MOZ_DEVEL_SNAPSHOT_VER} +MOZILLA_INCLUDE_DIR= ${X11BASE}/include/mozilla-devel +MOZILLA_LIB_DIR= ${X11BASE}/lib/mozilla-devel +pre-patch: + @${REINPLACE_CMD} -e "s|mozilla-gtkmozembed|mozilla-gtkmozembed-devel|g; \ + s|mozilla-xpcom|mozilla-xpcom-devel|g; \ + s|mozilla-nspr|mozilla-nspr-devel|g; \ + s|mozilla-nss|mozilla-nss-devel|g; \ + s|mozilla-plugin|mozilla-plugin-devel|g" ${WRKSRC}/configure +.else +BUILD_DEPENDS+= ${X11BASE}/lib/mozilla/components/libwidget_gtk2.so:${PORTSDIR}/www/mozilla +RUN_DEPENDS+= ${X11BASE}/lib/mozilla/components/libwidget_gtk2.so:${PORTSDIR}/www/mozilla +MOZILLA_SNAPSHOT_VER= ${MOZ_STABLE_SNAPSHOT_VER} +MOZILLA_INCLUDE_DIR= ${X11BASE}/include/mozilla +MOZILLA_LIB_DIR= ${X11BASE}/lib/mozilla +.endif + +.endif # if defined(USE_MOZILLA_GTK1) + + +.endif + +# here there be tacos |