summaryrefslogtreecommitdiff
path: root/graphics/xanim/Makefile
blob: b56a74e42f9aabfe7f9c90c42a1538e695f74364 (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
# New ports collection makefile for:	xanim
# Version required:     2.70.6.4
# Date created:         Sat Nov 5 11:43:03 PST 1994
# Whom:                 piero
#
# $Id: Makefile,v 1.17 1998/11/21 07:27:36 steve Exp $
#

DISTNAME=       xanim2801
PKGNAME=        xanim-2.80.1
CATEGORIES=	graphics
MASTER_SITES=	ftp://xanim.va.pubnix.com/ \
		ftp://xanim.va.pubnix.com/modules/
DISTFILES=	${EXTRACT_ONLY} ${EXTRA_FILES}

MAINTAINER=	ports@FreeBSD.ORG

EXTRACT_ONLY=   ${DISTNAME}.tar.gz
USE_IMAKE=	yes
MAN1=		xanim.1
MAKE_ENV=	XA_IV32_DEF=-DXA_INDEO \
		XA_CVID_DEF=-DXA_CINEPAK \
		XA_CYUV_DEF=-DXA_CYUV

.include <bsd.port.pre.mk>

.if ${PORTOBJFORMAT} == "aout"
EXTRA_FILES=    xa2.0_cvid_netbsd386.o.Z xa2.0_iv32_netbsd386.o.Z \
		xa1.0_cyuv_netbsd386.o.Z
MAKE_ENV+=	XA_IV32_LIB=xa2.0_cvid_netbsd386.o \
		XA_CVID_LIB=xa2.0_iv32_netbsd386.o \
		XA_CYUV_LIB=xa1.0_cyuv_netbsd386.o
.else
EXTRA_FILES=    xa2.0_cvid_linuxELF.o.Z xa2.0_iv32_linuxELF.o.Z \
		xa1.0_cyuv_linuxELF.o.Z
MAKE_ENV+=	XA_IV32_LIB=xa2.0_cvid_linuxELF.o \
		XA_CVID_LIB=xa2.0_iv32_linuxELF.o \
		XA_CYUV_LIB=xa1.0_cyuv_linuxELF.o
.endif

post-extract:
	@for file in ${EXTRA_FILES}; do \
	  ${CP} ${DISTDIR}/$$file ${WRKSRC}; \
	  uncompress ${WRKSRC}/$$file; \
	done
	${CP} ${WRKSRC}/docs/xanim.man ${WRKSRC}

.include <bsd.port.post.mk>