1999-09-26 17:26:45 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.5 1999/09/26 21:26:45 espie Exp $
|
1998-12-01 21:27:02 -05:00
|
|
|
|
|
|
|
CDROM= "NOFEE: can not sell"
|
|
|
|
|
1999-09-26 17:26:45 -04:00
|
|
|
NEED_VERSION=1.121
|
1999-03-22 12:34:45 -05:00
|
|
|
DISTNAME=xanim-2.80.1
|
|
|
|
WRKSRC=${WRKDIR}/xanim2801
|
1998-12-01 21:27:02 -05:00
|
|
|
CATEGORIES= graphics x11
|
|
|
|
|
|
|
|
MAINTAINER=espie@openbsd.org
|
|
|
|
|
|
|
|
|
1999-09-26 17:26:45 -04:00
|
|
|
DIST_SUBDIR=xanim
|
1998-12-01 21:27:02 -05:00
|
|
|
MASTER_SITES=ftp://xanim.va.pubnix.com/
|
1999-09-26 17:26:45 -04:00
|
|
|
MASTER_SITES0=ftp://xanim.va.pubnix.com/modules/
|
1998-12-01 21:27:02 -05:00
|
|
|
|
1999-03-22 12:34:45 -05:00
|
|
|
BASEDISTFILE=xanim2801.tar.gz
|
1998-12-01 21:27:02 -05:00
|
|
|
DISTFILES=${BASEDISTFILE}
|
|
|
|
PATCH_LIST=patch-*
|
|
|
|
|
1999-09-26 17:26:45 -04:00
|
|
|
SUP_i386 = xa1.0_cyuv_netbsd386.o.Z:0 \
|
|
|
|
xa2.0_cvid_netbsd386.o.Z:0 \
|
|
|
|
xa2.0_iv32_netbsd386.o.Z:0
|
1999-04-18 17:01:45 -04:00
|
|
|
|
1999-09-26 17:26:45 -04:00
|
|
|
SUP_m68k = xa1.0_cyuv_netbsd68k.o.Z:0 \
|
|
|
|
xa2.0_cvid_netbsd68k.o.Z:0 \
|
|
|
|
xa2.0_iv32_netbsd68k.o.Z:0
|
1999-04-18 17:01:45 -04:00
|
|
|
|
1999-09-26 17:26:45 -04:00
|
|
|
SUP_sparc= xa1.0_cyuv_sparcAOUT.o.Z:0 \
|
|
|
|
xa2.0_cvid_sparcCOFF.o.Z:0 \
|
|
|
|
xa2.0_iv32_sparcCOFF.o.Z:0
|
1999-04-18 17:01:45 -04:00
|
|
|
|
|
|
|
# some architectures support more codecs
|
|
|
|
.if (${MACHINE_ARCH} == i386)
|
|
|
|
SUPFILES= ${SUP_i386}
|
1998-12-01 21:27:02 -05:00
|
|
|
PATCH_LIST+=i386-patch
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == m68k)
|
1999-04-18 17:01:45 -04:00
|
|
|
SUPFILES= ${SUP_m68k}
|
1998-12-01 21:27:02 -05:00
|
|
|
PATCH_LIST+=m68k-patch
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == sparc)
|
1999-04-18 17:01:45 -04:00
|
|
|
SUPFILES=${SUP_sparc}
|
1998-12-01 21:27:02 -05:00
|
|
|
PATCH_LIST+=sparc-patch
|
|
|
|
.endif
|
|
|
|
|
1999-04-18 17:01:45 -04:00
|
|
|
SUPDISTFILES=${SUP_i386} ${SUP_m68k} ${SUP_sparc}
|
|
|
|
|
1998-12-01 21:27:02 -05:00
|
|
|
.if defined(SUPFILES)
|
|
|
|
DISTFILES += ${SUPFILES}
|
|
|
|
EXTRACT_ONLY=${BASEDISTFILE}
|
|
|
|
post-extract:
|
|
|
|
@${ECHO_MSG} "===> Adding ${MACHINE_ARCH} specific object files"
|
|
|
|
@for i in ${SUPFILES}; do \
|
|
|
|
j=`basename $$i`; \
|
|
|
|
cp ${DISTDIR}/$$i ${WRKSRC} && uncompress ${WRKSRC}/$$j; \
|
|
|
|
done
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
1999-03-22 12:34:45 -05:00
|
|
|
ln ${WRKSRC}/docs/xanim.man ${WRKSRC}
|
1998-12-01 21:27:02 -05:00
|
|
|
|
|
|
|
DOCDIR=${PREFIX}/share/doc/xanim
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
1999-03-18 20:28:40 -05:00
|
|
|
for file in ${WRKSRC}/docs/*; \
|
|
|
|
do \
|
1999-03-22 12:34:45 -05:00
|
|
|
[ $$file == ${WRKSRC}/docs/xanim.man ] || ${INSTALL_DATA} $$file ${DOCDIR}; \
|
1999-03-18 20:28:40 -05:00
|
|
|
done
|
1998-12-01 21:27:02 -05:00
|
|
|
|
|
|
|
USE_IMAKE=yes
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|