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

PORTNAME=	xmovie
PORTVERSION=	1.6.1
PORTREVISION=	1
CATEGORIES=	graphics linux
MASTER_SITES=	http://heroines.sourceforge.net/
DISTFILES=	${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}.i386.rpm

MAINTAINER=	ports@FreeBSD.org

BUILD_DEPENDS=	rpm2cpio:${PORTSDIR}/archivers/rpm
RUN_DEPENDS=	${LINUX_BASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \
		${LINUX_BASE}/usr/lib/libjpeg.so.62.0.0:${PORTSDIR}/graphics/linux-jpeg \
		${LINUX_BASE}/usr/lib/libpng.so.2.1.0.14:${PORTSDIR}/graphics/linux-png

ONLY_FOR_ARCHS=	i386
DOC_DIR=	${PREFIX}/share/doc/xmovie
EXTRACT_CMD=	rpm2cpio
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= | cpio -id --quiet
LINUX_BASE=	/compat/linux
NO_BUILD=	yes
USE_X_PREFIX=	yes
NO_WRKSUBDIR=	yes

# 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=

do-patch:
	@${DO_NADA}

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/usr/local/bin/xmovie ${PREFIX}/bin
	@brandelf -t Linux ${PREFIX}/bin/xmovie
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOC_DIR}
	@${INSTALL_DATA} ${WRKSRC}/usr/doc/xmovie-${PORTVERSION:R}/README ${DOC_DIR}/README
	@${INSTALL_DATA} ${WRKSRC}/usr/doc/xmovie-${PORTVERSION:R}/index.html ${DOC_DIR}/index.html
.endif
.include <bsd.port.mk>