summaryrefslogtreecommitdiff
path: root/www/netscape7/Makefile.NetBSD.i386
blob: 02c28e4361d67adc3c897cd7ab1a2c14ffa9ceb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $NetBSD: Makefile.NetBSD.i386,v 1.7 2002/10/14 15:00:21 jschauma Exp $
#

DIST_DIR_NAME=		linux22

DEPENDS+=		suse_compat>=7.3:../../emulators/${SUSE_DIR_PREFIX}_compat
DEPENDS+=		suse_x11>=7.3:../../emulators/${SUSE_DIR_PREFIX}_x11
DEPENDS+=		suse_gtk>=7.3:../../emulators/${SUSE_DIR_PREFIX}_gtk

MESSAGE_SRC=		${PKGDIR}/MESSAGE.${OPSYS}
FIND_ARG=		-d .

# installing over emulation files doesn't work (huh?), so clean out any
# existing files first
post-extract:
	if [ "${INSTDIR}" != "${WRKSRC}/dest" ]; then		\
		${RM} -fr ${INSTDIR};				\
	fi

# try to keep emul root clean
pre-clean:
	if [ -d ${PREFIX}/emul/linux${WRKDIR} ]; then			\
		cd ${PREFIX}/emul/linux${WRKDIR}/.. && ${RM} -fr *;	\
	fi

.include "../../emulators/suse_linux/Makefile.application"

# The installer starts netscape - under linux emulation, nontheless!
# If the user running 'make' has permission to do so, the installer will
# create files in the emulation root.

.if exists(${WRKSRC}/dest/plugins)
INSTDIR=		${WRKSRC}/dest
.else
INSTDIR=		${PREFIX}/emul/linux${WRKSRC}/dest
.endif