2020-01-26 18:30:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.25 2020/01/26 17:32:22 rillig Exp $
|
2000-08-22 13:02:12 +02:00
|
|
|
|
2003-01-05 05:27:10 +01:00
|
|
|
DISTNAME= plugger-4.0-linux-x86-glibc
|
2000-08-22 13:02:12 +02:00
|
|
|
PKGNAME= ns-${PLUGGERNAME}-${BINNAME}-${PLUGGERVERS}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 1
|
2000-08-22 13:02:12 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://fredrik.hubbe.net/plugger/
|
|
|
|
|
2013-12-23 12:57:02 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://fredrik.hubbe.net/plugger.html
|
2003-07-22 06:14:17 +02:00
|
|
|
COMMENT= Streaming multimedia plugin for Netscape
|
2000-08-22 13:02:12 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
CONFLICTS+= plugger-[0-9]* # obsolete all-in-one plugger package
|
|
|
|
|
2000-08-22 13:02:12 +02:00
|
|
|
BINNAME?= common
|
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
EMUL_PLATFORMS= linux-i386
|
|
|
|
EMUL_MODULES.linux= base
|
2000-08-22 13:02:12 +02:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PLUGGERFULL}
|
2007-07-29 07:18:36 +02:00
|
|
|
BUILD_DIRS= # empty
|
2000-08-22 13:02:12 +02:00
|
|
|
|
|
|
|
PLUGGERFULL= ${DISTNAME:C/-linux-x86-glibc//}
|
|
|
|
PLUGGERVERS= ${PLUGGERFULL:C/.*-//}
|
|
|
|
PLUGGERNAME= ${PLUGGERFULL:C/-.*//}
|
|
|
|
NS_PLUGINS_DIR= ${PREFIX}/lib/netscape/plugins
|
2001-03-06 11:17:43 +01:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/plugger
|
|
|
|
|
|
|
|
PLIST_SUBST+= NS_PLUGINS_DIR=${NS_PLUGINS_DIR:S/${PREFIX}\///}
|
2000-08-22 13:02:12 +02:00
|
|
|
|
2009-12-17 20:18:35 +01:00
|
|
|
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man7
|
|
|
|
INSTALLATION_DIRS+= lib/netscape/plugins share/doc/plugger
|
2000-08-25 02:20:21 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
.PHONY: do-install-common do-install-pluggerrc
|
|
|
|
do-install-common:
|
2009-12-17 20:18:35 +01:00
|
|
|
cd ${WRKSRC}; ${INSTALL_PROGRAM} plugger.so ${DESTDIR}${NS_PLUGINS_DIR}
|
|
|
|
cd ${WRKSRC}; ${INSTALL_PROGRAM} plugger-4.0 ${DESTDIR}${PREFIX}/bin
|
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} plugger.7 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7
|
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} README COPYING ${DESTDIR}${DOCDIR}
|
2000-08-22 13:02:12 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
do-install-pluggerrc:
|
2009-12-17 20:18:35 +01:00
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} pluggerrc ${DESTDIR}${MOZILLA_HOME}/pluggerrc
|
2000-08-22 13:02:12 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
.if ${BINNAME} == "common"
|
|
|
|
do-install: do-install-common
|
|
|
|
.else
|
|
|
|
do-install: do-install-common
|
2000-08-22 13:02:12 +02:00
|
|
|
.endif
|
2003-03-26 05:05:37 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
2007-10-10 17:27:15 +02:00
|
|
|
|
|
|
|
.if ${BINNAME} != common
|
|
|
|
DEPENDS+= ${BINNAME}-[0-9]*:../../www/${BINNAME}
|
|
|
|
NSNAME!= ${PKG_INFO} -e ${BINNAME} || ${ECHO}
|
|
|
|
MOZILLA_HOME= ${PREFIX}/lib/netscape/${NSNAME:C/nb[0-9]+$//:S/4.80/4.8/}
|
|
|
|
PLIST_SUBST+= MOZILLA_HOME=${MOZILLA_HOME:S/${PREFIX}\///}
|
|
|
|
.endif
|