summaryrefslogtreecommitdiff
path: root/www/ns-plugger-common/Makefile
blob: 05d8b4485d2d5ff73a36e40938d71d0b4eeb1b06 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $NetBSD: Makefile,v 1.5 2000/12/17 14:32:33 tron Exp $
#

DISTNAME=		plugger-3.2-linux-x86-glibc
PKGNAME=		ns-${PLUGGERNAME}-${BINNAME}-${PLUGGERVERS}
WRKSRC=			${WRKDIR}/${PLUGGERFULL}
CATEGORIES=		www
MASTER_SITES=		http://fredrik.hubbe.net/plugger/

MAINTAINER=		rh@netbsd.org
HOMEPAGE=		http://fredrik.hubbe.net/plugger.html

BINNAME?=		common

.if ${BINNAME} != common
DEPENDS+=		${BINNAME}-*:../../www/${BINNAME}

MOZILLA_HOME=		${PREFIX}/lib/netscape/${NSNAME}
NS_VERS=		${NSNAME:C/.*-//}

PLIST_SUBST+=		NS_VERS=${NS_VERS} BINNAME=${BINNAME}
.else
DEPENDS+=		suse_base>=6.3:../../emulators/suse_base
.endif

CONFLICTS+=		plugger-*	# obsolete all-in-one plugger package

ONLY_FOR_PLATFORM=	NetBSD-*-i386

NO_CONFIGURE=		YES
NO_BUILD=		YES

PLUGGERFULL=		${DISTNAME:C/-linux-x86-glibc//}
PLUGGERVERS=		${PLUGGERFULL:C/.*-//}
PLUGGERNAME=		${PLUGGERFULL:C/-.*//}
NS_PLUGINS_DIR=		${PREFIX}/lib/netscape/plugins

CHECK_SHLIBS=		no

do-install:
.if ${BINNAME} != common
		cd ${WRKSRC} && \
		${INSTALL_DATA} pluggerrc ${MOZILLA_HOME}
.else
		cd ${WRKSRC} && \
		${INSTALL_DATA_DIR} ${NS_PLUGINS_DIR} && \
		${INSTALL_PROGRAM} plugger.so ${NS_PLUGINS_DIR} && \
		${INSTALL_DATA} plugger.7 ${PREFIX}/man/man7 && \
		${INSTALL_DATA_DIR} ${PREFIX}/share/doc/plugger && \
		${INSTALL_DATA} README ${PREFIX}/share/doc/plugger && \
		${INSTALL_DATA} COPYING ${PREFIX}/share/doc/plugger
.endif

.include "../../mk/bsd.pkg.mk"

.if ${BINNAME} != common
NSNAME!=	( ${PKG_INFO} 2>/dev/null -e ${BINNAME} || ${ECHO} "" )
.endif