aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/xanim/Makefile
blob: bfbd17263497b72a35963410e1e826cce3e7719d (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
60
61
# New ports collection makefile for:    xanim
# Date created:         Sat Nov 5 11:43:03 PST 1994
# Whom:                 piero
#
# $FreeBSD$
#

PORTNAME=   xanim
PORTVERSION=    2.92.0
CATEGORIES= multimedia graphics
MASTER_SITES=   http://www.go.dlr.de/fresh/unix/src/misc/:main \
        ftp://ftp.ayamura.org/pub/graphics/:main \
        ftp://ftp.ut.ee/pub/graphics/xanim/:main \
        ${MASTER_SITE_LOCAL} \
        ftp://ftp.ut.ee/pub/graphics/xanim/dlls/
MASTER_SITE_SUBDIR= dinoex
DISTNAME=   xanim2920
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}:main ${EXTRA_FILES}

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Play most popular animation formats and show pictures

USE_IMAKE=  yes
MAN1=       xanim.1
MAKE_ARGS+= -j 2 # safe and helps even the single-CPU machines
DLLDIR=     ${PREFIX}/lib/X11/xanim
PLIST_FILES+=   bin/xanim

post-extract:
    ${CP} ${WRKSRC}/docs/xanim.man ${WRKSRC}

.include <bsd.port.pre.mk>

.if (${ARCH} == "i386")
EXTRA_FILES=    vid_cvid_2.1_freebsdELFx86.tgz \
        vid_cyuv_1.0_freebsdELFx86.tgz \
        vid_h261_1.0_freebsdELFx86.tgz \
        vid_h263_1.0_freebsdELFx86.tgz \
        vid_iv32_2.1_freebsdELFx86.tgz \
        vid_iv41_1.1_freebsdELFx86.tgz \
        vid_iv50_1.0_freebsdELFx86.tgz
PLIST_FILES+=   lib/X11/xanim/cvid.readme lib/X11/xanim/cyuv.readme \
        lib/X11/xanim/h261.readme lib/X11/xanim/h263.readme \
        lib/X11/xanim/iv32.readme lib/X11/xanim/iv41.readme \
        lib/X11/xanim/iv50.readme \
        lib/X11/xanim/vid_cvid_2.1_freebsdELFx86.xa \
        lib/X11/xanim/vid_cyuv_1.0_freebsdELFx86.xa \
        lib/X11/xanim/vid_h261_1.0_freebsdELFx86.xa \
        lib/X11/xanim/vid_h263_1.0_freebsdELFx86.xa \
        lib/X11/xanim/vid_iv32_2.1_freebsdELFx86.xa \
        lib/X11/xanim/vid_iv41_1.1_freebsdELFx86.xa \
        lib/X11/xanim/vid_iv50_1.0_freebsdELFx86.xa
PLIST_DIRS+=    lib/X11/xanim

post-install:
    @${MKDIR} ${DLLDIR}
    ${INSTALL_DATA} ${WRKDIR}/*.readme ${DLLDIR}
    ${INSTALL_DATA} ${WRKDIR}/*.xa ${DLLDIR}
.endif

.include <bsd.port.post.mk>