1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/www/flashplugin-mozilla/Makefile
Jeremy Messenger 15b6544926 Add a new framework for browser plugins, USE_WEBPLUGINS. It is for which foo
plugins support one of web browsers and can take care of plist (depend on how
you use it) at the same time. I have written a complete document and even show
how it works in the www/firefox/Makefile.webplugins so be sure to read in
there. If there is anything that isn't clear in the document, please feel free
to ask and I will try my best to improvement it.

FYI: GNOME 2.24 depends on this, so it's coming.

BTW: It's based on www/linux-mplayer-plugin/Makefile.npapi with heavy modified.

Approved by:	portmgr
2009-01-10 02:45:46 +00:00

44 lines
1.2 KiB
Makefile

# New ports collection makefile for: flashplugin-mozilla
# Date created: 25 October 2001
# Whom: Leland Wang <llwang@infor.org>
#
# $FreeBSD$
#
PORTNAME?= flashplugin-mozilla
PORTVERSION= 0.4.13
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= SF/gplflash
DISTNAME= gplflash-${PORTVERSION}
MAINTAINER= llwang@infor.org
COMMENT= A GPL standalone Flash (TM) plugin for Mozilla web browser
LIB_DEPENDS= flash.0:${PORTSDIR}/graphics/libflash
WRKSRC= ${WRKDIR}/${DISTNAME}/plugin
USE_XORG= xt x11 xext
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-plugin-dir="${WEBPLUGINS_DIR}"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lXt"
CONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME}
USE_WEBPLUGINS= native
WEBPLUGINS_FILES=libnpflash.so
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
post-patch:
@${REINPLACE_CMD} -e "s,-L../lib/.libs,-L${LOCALBASE}/lib," \
-e "s/libnpflash.so.0.0.0/libnpflash.so.0/" \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' ${WRKSRC}/npapi.h
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${CONFIGURE_WRKSRC}/configure ${CONFIGURE_WRKSRC}/ltconfig
.include <bsd.port.post.mk>