summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2003-12-07 05:30:35 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2003-12-07 05:30:35 +0000
commit390f3adbe8febdb397204b37ad01a68f37d820eb (patch)
treeed4d9910f3d633cc23bd985f5a5c27314a9a7bd5
parentDon't falsely tell the kernel that this driver supports the nForce onboard (diff)
If a GTK2 mozilla is specified in WITH_MOZILLA, build the headers in the
appropriate mozilla-*-gtk2 directory. While the end package is the same, this has implications at build time. On a clean system, this obviates the introduction of gtk12 and orbit-1 libraries, and allows the GNOME2 desktop to be installed from ports without ever needing GTK+-1.2 libraries.
Notes
Notes: svn path=/head/; revision=95245
-rw-r--r--www/mozilla-headers-devel/Makefile14
-rw-r--r--www/mozilla-headers/Makefile14
2 files changed, 24 insertions, 4 deletions
diff --git a/www/mozilla-headers-devel/Makefile b/www/mozilla-headers-devel/Makefile
index 523a1f263aa4..f7dc6e5f75e5 100644
--- a/www/mozilla-headers-devel/Makefile
+++ b/www/mozilla-headers-devel/Makefile
@@ -15,13 +15,23 @@ DISTFILES=
MAINTAINER= gnome@FreeBSD.org
COMMENT= Header files for mozilla communicator web-surfboard
-BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/www/mozilla-devel:configure
+.if !defined(WITH_MOZILLA)
+MOZILLA= mozilla-devel
+.else
+.if ${WITH_MOZILLA}=="mozilla-devel-gtk2"
+MOZILLA= mozilla-devel-gtk2
+.else
+MOZILLA= mozilla-devel
+.endif
+.endif
+
+BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/www/${MOZILLA}:configure
USE_X_PREFIX= yes
LATEST_LINK= mozilla-headers-devel
PLIST= ${WRKSRC}/pkg-plist
-MAINDIR= ${.CURDIR}/../mozilla-devel
+MAINDIR= ${.CURDIR}/../${MOZILLA}
MKFILE!= /usr/bin/basename ${MAKEFILE}
PORTVERSION!= ${PORTVERSION}
PORTREVISION!= ${PORTREVISION}
diff --git a/www/mozilla-headers/Makefile b/www/mozilla-headers/Makefile
index cf4a05da748e..11c565af074c 100644
--- a/www/mozilla-headers/Makefile
+++ b/www/mozilla-headers/Makefile
@@ -15,12 +15,22 @@ DISTFILES=
MAINTAINER= gnome@FreeBSD.org
COMMENT= Header files for mozilla communicator web-surfboard
-BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/www/mozilla:configure
+.if !defined(WITH_MOZILLA)
+MOZILLA= mozilla
+.else
+.if ${WITH_MOZILLA}=="mozilla-gtk2"
+MOZILLA= mozilla-gtk2
+.else
+MOZILLA= mozilla
+.endif
+.endif
+
+BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/www/${MOZILLA}:configure
USE_X_PREFIX= yes
PLIST= ${WRKSRC}/pkg-plist
-MAINDIR= ${.CURDIR}/../mozilla
+MAINDIR= ${.CURDIR}/../${MOZILLA}
MKFILE!= /usr/bin/basename ${MAKEFILE}
PORTVERSION!= ${PORTVERSION}
PORTREVISION!= ${PORTREVISION}