aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/linux-xmovie/Makefile
blob: 07f3de09d8c28ab1ba9373c31a15a02df248fb62 (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
# New ports collection makefile for:    xmovie
# Date created:     20 December 1998
# Whom:         MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
#
# $FreeBSD$
#

PORTNAME=   xmovie
PORTVERSION=    1.9.8.1
PORTREVISION=   1
CATEGORIES= multimedia linux
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= heroines
PKGNAMEPREFIX=  linux-
DISTNAME=   ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}.i386.rpm
EXTRACT_SUFX=

MAINTAINER= lioux@FreeBSD.org
COMMENT=    A movie player for AVI, MPEG-2/4 and MOV movies

BUILD_DEPENDS=  rpm2cpio:${PORTSDIR}/archivers/rpm

ONLY_FOR_ARCHS= i386
USE_LINUX=  yes
EXTRACT_CMD=    rpm2cpio
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= | ${CPIO} -id --quiet
NO_BUILD=   yes
PLIST_FILES=    bin/xmovie
USE_X_PREFIX=   yes
WRKSRC=     ${WRKDIR}/usr/bin

BRANDELF?=  /usr/bin/brandelf

# Linux binary should not be stripped by INSTALL_PROGRAM as it uses
# /usr/bin/strip which then brands the binary as a FreeBSD ELF one.
STRIP=

pre-install:
    @${BRANDELF} -t Linux ${WRKSRC}/${PORTNAME}

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>