1999-06-26 00:14:30 +02:00
|
|
|
# New ports collection makefile for: plugger
|
|
|
|
# Date created: 11 Februrary 1999
|
|
|
|
# Whom: Jay Sachs <sachs@cs.williams.edu>
|
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
1999-06-26 00:14:30 +02:00
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= plugger
|
2002-04-08 17:46:48 +02:00
|
|
|
PORTVERSION= 4.0
|
2002-11-17 06:40:36 +01:00
|
|
|
PORTREVISION= 2
|
2001-09-04 18:32:21 +02:00
|
|
|
CATEGORIES= www audio graphics
|
2000-05-29 05:29:36 +02:00
|
|
|
MASTER_SITES= http://fredrik.hubbe.net/plugger/ \
|
2002-11-08 18:03:29 +01:00
|
|
|
${MASTER_SITE_NETSCAPE}
|
2002-11-09 18:14:30 +01:00
|
|
|
MASTER_SITE_SUBDIR= sdk/plugin/unix
|
1999-06-26 00:14:30 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} unix-sdk-3.0b5.tar.Z
|
|
|
|
|
2002-08-25 18:02:39 +02:00
|
|
|
MAINTAINER= coop9211@uidaho.edu
|
1999-06-26 00:14:30 +02:00
|
|
|
|
2002-11-17 06:40:36 +01:00
|
|
|
RUN_DEPENDS= ${X11BASE}/bin/xanim:${PORTSDIR}/graphics/xanim \
|
2001-09-04 18:32:21 +02:00
|
|
|
${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++ \
|
2002-04-08 17:46:48 +02:00
|
|
|
${LOCALBASE}/bin/mpg123:${PORTSDIR}/audio/mpg123 \
|
2001-09-04 18:32:21 +02:00
|
|
|
${LOCALBASE}/bin/wavplay:${PORTSDIR}/audio/wavplay \
|
2002-04-08 17:46:48 +02:00
|
|
|
${LOCALBASE}/bin/xmp:${PORTSDIR}/audio/xmp \
|
|
|
|
${LOCALBASE}/bin/sidplay:${PORTSDIR}/audio/sidplay \
|
|
|
|
${LOCALBASE}/bin/display:${PORTSDIR}/graphics/ImageMagick \
|
|
|
|
${X11BASE}/bin/gqview:${PORTSDIR}/graphics/gqview \
|
|
|
|
${X11BASE}/bin/gv:${PORTSDIR}/print/gv \
|
|
|
|
${X11BASE}/bin/abiword:${PORTSDIR}/editors/AbiWord \
|
2002-08-25 18:02:39 +02:00
|
|
|
${LOCALBASE}/bin/acroread5:${PORTSDIR}/print/acroread5
|
1999-06-26 00:14:30 +02:00
|
|
|
|
2001-09-04 18:32:21 +02:00
|
|
|
USE_X_PREFIX= yes
|
2002-08-25 18:02:39 +02:00
|
|
|
USE_REINPLACE= yes
|
2000-10-10 19:57:37 +02:00
|
|
|
|
1999-06-26 00:14:30 +02:00
|
|
|
MAN7= plugger.7
|
|
|
|
MANCOMPRESSED= no
|
2001-04-06 08:05:55 +02:00
|
|
|
ALL_TARGET= freebsd-elf
|
1999-06-26 00:14:30 +02:00
|
|
|
|
2002-04-08 17:46:48 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/bin/mplayer)
|
|
|
|
WITH_MPLAYER = yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/bin/mtvp)
|
|
|
|
WITH_MTV = yes
|
|
|
|
.endif
|
|
|
|
|
2002-11-17 06:40:36 +01:00
|
|
|
.if exists(${X11BASE}/lib/libgnomeprintui-2.so.0)
|
|
|
|
WITH_GNOME2 = yes
|
|
|
|
.endif
|
|
|
|
|
2002-04-08 17:46:48 +02:00
|
|
|
.if defined(WITH_MPLAYER)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/mplayer:${PORTSDIR}/graphics/mplayer
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MTV)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/mtvp:${PORTSDIR}/graphics/mtv
|
|
|
|
.endif
|
|
|
|
|
2002-11-17 06:40:36 +01:00
|
|
|
.if defined(WITH_GNOME2)
|
|
|
|
RUN_DEPENDS+= ${X11BASE}/bin/gnumeric:${PORTSDIR}/math/gnumeric2
|
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= ${X11BASE}/bin/gnumeric:${PORTSDIR}/math/gnumeric
|
|
|
|
.endif
|
|
|
|
|
2002-04-08 17:46:48 +02:00
|
|
|
pre-extract:
|
|
|
|
.if !defined(WITH_MPLAYER)
|
|
|
|
@${ECHO_MSG} "Enable mplayer for AVI video by defining WITH_MPLAYER."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_MTV)
|
|
|
|
@${ECHO_MSG} "Enable mtvp for MPEG video by defining WITH_MTV."
|
|
|
|
.endif
|
|
|
|
|
2002-11-17 06:40:36 +01:00
|
|
|
.if !defined(WITH_GNOME2)
|
|
|
|
@${ECHO_MSG} "Enable Gnome/2 AbiWord and Gnumeric by defining"
|
|
|
|
@${ECHO_MSG} "WITH_GNOME2."
|
|
|
|
.endif
|
|
|
|
|
1999-06-26 00:14:30 +02:00
|
|
|
post-patch:
|
2001-09-04 18:32:21 +02:00
|
|
|
@${MV} ${WRKSRC}/plugger.c ${WRKSRC}/plugger.c.orig
|
|
|
|
@${SED} \
|
1999-06-26 00:14:30 +02:00
|
|
|
-e 's#/usr/local/#${PREFIX}/#' \
|
2000-05-29 05:29:36 +02:00
|
|
|
${WRKSRC}/plugger.c.orig > ${WRKSRC}/plugger.c
|
2002-08-25 18:02:39 +02:00
|
|
|
# CC safeness
|
|
|
|
@${REINPLACE_CMD} -e 's|CC=gcc|CC=${CC}|' ${WRKSRC}/Makefile
|
2000-05-29 05:29:36 +02:00
|
|
|
|
|
|
|
do-install:
|
2002-04-08 17:46:48 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/plugger-${PORTVERSION} \
|
|
|
|
${PREFIX}/bin
|
2002-11-17 06:40:36 +01:00
|
|
|
@${MKDIR} ${PREFIX}/lib/browser_plugins
|
2001-12-15 15:29:57 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
|
2002-11-17 06:40:36 +01:00
|
|
|
${PREFIX}/lib/browser_plugins/npplugger.so
|
2001-09-04 18:32:21 +02:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/plugger.7 ${MANPREFIX}/man/man7
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/pluggerrc ${PREFIX}/etc/pluggerrc.sample
|
|
|
|
@${INSTALL_DATA} -b ${WRKSRC}/pluggerrc ${PREFIX}/etc
|
1999-06-26 00:14:30 +02:00
|
|
|
|
|
|
|
post-install:
|
2002-11-09 18:14:30 +01:00
|
|
|
@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g'
|
1999-06-26 00:14:30 +02:00
|
|
|
|
2002-04-08 17:46:48 +02:00
|
|
|
.include <bsd.port.post.mk>
|