2001-08-25 07:23:46 -04:00
|
|
|
#-*- mode: Fundamental; tab-width: 4; -*-
|
|
|
|
# ex:ts=4 sw=4 filetype=make:
|
2002-06-27 08:47:23 -04:00
|
|
|
# $OpenBSD: imake.port.mk,v 1.2 2002/06/27 12:47:23 mpech Exp $
|
2001-08-25 07:23:46 -04:00
|
|
|
# Based on bsd.port.mk, originally by Jordan K. Hubbard.
|
|
|
|
# This file is in the public domain.
|
|
|
|
|
|
|
|
.if empty(CONFIGURE_STYLE:L:Mnoman)
|
|
|
|
INSTALL_TARGET+= install.man
|
|
|
|
.endif
|
|
|
|
|
|
|
|
XMKMF?= xmkmf -a
|
|
|
|
XMKMF+= -DPorts
|
|
|
|
|
|
|
|
.if !exists(${X11BASE})
|
|
|
|
IGNORE="uses imake, but ${X11BASE} not found"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MODIMAKE_configure= \
|
|
|
|
if [ -e ${X11BASE}/lib/X11/config/ports.cf ] || \
|
|
|
|
fgrep >/dev/null 2>/dev/null Ports \
|
|
|
|
${X11BASE}/lib/X11/config/OpenBSD.cf; then \
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF}; \
|
|
|
|
else \
|
|
|
|
echo >&2 "Error: your X installation is not recent enough"; \
|
|
|
|
echo >&2 "Update to a more recent version, or use a ports tree"; \
|
|
|
|
echo >&2 "that predates March 18, 2000"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
# Kludge
|
|
|
|
. if ${CONFIGURE_STYLE:Mimake}
|
|
|
|
MODIMAKE_pre_install= \
|
|
|
|
${SUDO} mkdir -p /usr/local/lib/X11; \
|
|
|
|
if [ ! -e /usr/local/lib/X11/app-defaults ]; then \
|
2002-06-27 08:47:23 -04:00
|
|
|
${SUDO} ln -sf /etc/X11/app-defaults /usr/local/lib/X11/app-defaults; \
|
2001-08-25 07:23:46 -04:00
|
|
|
fi
|
|
|
|
. endif
|