summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-12-31 10:55:42 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-12-31 10:55:42 +0000
commitc1bb79ab6be9ca8ba3876459d03f969adf6b0563 (patch)
tree6b9142c056b5169c06f7a3a5e23ee7b21890d01f /share
parentf4cccbc831f03f6348495f15ac15a4abff570275 (diff)
- don't include bsd.own.mk twice
- don't define X11BASE and X11ETC twice - remove --enable-maintainer-mode from configure args and factorize the config.status rule
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.xorg.mk21
1 files changed, 4 insertions, 17 deletions
diff --git a/share/mk/bsd.xorg.mk b/share/mk/bsd.xorg.mk
index e95413df3..21cdd1d84 100644
--- a/share/mk/bsd.xorg.mk
+++ b/share/mk/bsd.xorg.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.xorg.mk,v 1.9 2006/12/17 20:41:36 matthieu Exp $ -*- makefile -*-
+# $OpenBSD: bsd.xorg.mk,v 1.10 2006/12/31 10:55:41 matthieu Exp $ -*- makefile -*-
#
# Copyright © 2006 Matthieu Herrb
#
@@ -15,8 +15,6 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
-.include <bsd.own.mk>
-
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
@@ -31,9 +29,6 @@ XENOCARA_TOP?= /usr/xenocara
XENOCARA_OBJDIR?= /usr/obj/xenocara
# Where to install
-X11BASE?= /usr/X11R6
-X11ETC?= /etc/X11
-
BINDIR?= ${X11BASE}/bin
LIBDIR= ${X11BASE}/lib
INCSDIR= ${X11BASE}/include
@@ -41,6 +36,7 @@ MANDIR= ${X11BASE}/man/cat
PKG_CONFIG_PATH= ${X11BASE}/lib/pkgconfig
+# Autoconf cache
_cache= --cache-file=${XENOCARA_OBJDIR}/xorg-config.cache.${MACHINE}
MAKE_ENV+= AUTOMAKE_VERSION="$(AUTOMAKE_VERSION)" \
@@ -69,18 +65,10 @@ all: config.status
.endif
.if !target(config.status)
+config.status:
.if defined(XENOCARA_RERUN_AUTOCONF) && ${XENOCARA_RERUN_AUTOCONF:L} == "yes"
-config.status: _xenocara_obj
cd ${.CURDIR}; ${MAKE_ENV} autoreconf -v --install --force
- PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" \
- ${CONFIGURE_ENV} ${.CURDIR}/configure \
- --enable-maintainer-mode --prefix=${X11BASE} \
- --sysconfdir=/etc \
- --mandir=${X11BASE}/man \
- ${_cache} \
- ${CONFIGURE_ARGS}
-.else
-config.status: _xenocara_obj
+.endif
PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" \
${CONFIGURE_ENV} ${.CURDIR}/configure --prefix=${X11BASE} \
--sysconfdir=/etc \
@@ -88,7 +76,6 @@ config.status: _xenocara_obj
${_cache} \
${CONFIGURE_ARGS}
.endif
-.endif
.if !target(depend)
depend: