blob: 37aa0e588ec610069cf771807963265840111c5d (
plain) (
blame)
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
59
|
# Created by: Naoki Tsurutani
# $FreeBSD$
PORTNAME= flashplugin
PORTVERSION= 11.2r202.297
CATEGORIES= www multimedia linux
MASTER_SITES= http://fpdownload.macromedia.com/get/flashplayer/pdc/${PORTVERSION:C/r/\./}/:plugin \
LOCAL/nox:suplib
PKGNAMEPREFIX= linux-f10-
DISTFILES= install_flash_player_11_linux.i386.tar.gz:plugin \
linux-f10-flashsupport-9.0.1.i386.tar.gz:suplib
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= eadler@FreeBSD.org
COMMENT= Adobe Flash Player NPAPI Plugin
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}11
ONLY_FOR_ARCHS= amd64 i386
USE_LINUX= yes
USE_LINUX_APPS= openssl curl cyrus-sasl2 libssh2 nspr nss openldap gtk2
WANT_GNOME= yes
RESTRICTED= Redistribution not allowed
RESTRICTED_FILES= ${DISTFILES:Nlinux-f10-flashsupport*:C/:[^:]+$//}
NO_BUILD= yes
WRKSRC= ${WRKDIR}
USE_NPAPI= linux-*
NPAPI_FILES= libflashplayer.so
CONFLICTS= linux-flashplugin-9* linux-f8-flashplugin10* linux-f10-flashplugin10*
OPTIONS_DEFINE= GNOME
GNOME_DESC= include gnome support for .desktop file
OPTIONS_SUB= yes
GNOME_USES= desktop-file-utils
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNOME}
INSTALLS_ICONS= yes
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' -e '/^NotShowIn=KDE/d' ${WRKDIR}/usr/share/applications/flash-player-properties.desktop
post-install:
@${INSTALL_PROGRAM} ${WRKDIR}/libflashsupport.so ${LINUXBASE}/usr/lib
@${INSTALL_PROGRAM} ${WRKDIR}/usr/bin/flash-player-properties ${PREFIX}/bin
@${MKDIR} ${PREFIX}/share/applications/
@${INSTALL_DATA} ${WRKDIR}/usr/share/applications/flash-player-properties.desktop ${DESKTOPDIR}
@(cd ${WRKDIR}/usr/share/icons && ${COPYTREE_SHARE} hicolor ${PREFIX}/share/icons)
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/linux-mplayer-plugin/Makefile.npapi"
.include <bsd.port.post.mk>
|