freebsd-ports/www/linux-flashplayer/Makefile
2019-10-10 18:51:10 +00:00

40 lines
1.2 KiB
Makefile

# Created by: Artyom Mirgorodskiy <artyom.mirgorodsky@gmail.com>
# $FreeBSD$
PORTNAME= flashplayer
PORTVERSION= 32.0.0.270
CATEGORIES= www multimedia linux
MASTER_SITES= https://fpdownload.macromedia.com/get/flashplayer/pdc/${PORTVERSION}/
PKGNAMEPREFIX= linux-
DISTFILES= flash_player_npapi_linux.i386.tar.gz
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= emulation@FreeBSD.org
COMMENT= Adobe Flash Player NPAPI Plugin
ONLY_FOR_ARCHS= amd64 i386
USES= cpe linux webplugin:linux
CPE_VENDOR= adobe
CPE_PRODUCT= flash_player
USE_LINUX= alsalib alsa-plugins-oss curl dri gtk2 nspr nss
WEBPLUGIN_FILES=libflashplayer.so
RESTRICTED= Redistribution not allowed
NO_BUILD= yes
NO_WRKSUBDIR= yes
STRIP=
post-patch:
@${REINPLACE_CMD} '/^NotShowIn=KDE/d' \
${WRKSRC}/usr/share/applications/flash-player-properties.desktop
do-install:
${MKDIR} ${STAGEDIR}${WEBPLUGIN_DIR}
${INSTALL_LIB} ${WRKSRC}/libflashplayer.so ${STAGEDIR}${WEBPLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/usr/bin/flash-player-properties ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/usr/share/applications/flash-player-properties.desktop ${STAGEDIR}${DESKTOPDIR}
(cd ${WRKSRC}/usr/share/icons && ${COPYTREE_SHARE} hicolor ${STAGEDIR}${PREFIX}/share/icons)
.include <bsd.port.mk>