2000-02-13 02:06:53 +00:00
|
|
|
# New ports collection makefile for: xmovie
|
|
|
|
# Date created: 20 December 1998
|
|
|
|
# Whom: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 10:48:02 +00:00
|
|
|
PORTNAME= xmovie
|
|
|
|
PORTVERSION= 1.3.1
|
2000-02-28 08:34:04 +00:00
|
|
|
CATEGORIES= graphics linux
|
2000-06-29 07:03:02 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= imura
|
2000-02-13 02:06:53 +00:00
|
|
|
# Distfile has no version info. The original site is below.
|
|
|
|
# MASTER_SITES= http://heroine.linuxbox.com/
|
2000-04-14 10:48:02 +00:00
|
|
|
DISTNAME= ${PORTNAME}-i586-${PORTVERSION}
|
2000-02-13 02:06:53 +00:00
|
|
|
|
|
|
|
PATCH_SITES= ${RPM_MIRRORS:S/__DIR__/${STDDIR}/g}
|
2000-04-22 20:40:17 +00:00
|
|
|
PATCHFILES= ${RPM_LIBPNG}
|
2000-02-13 02:06:53 +00:00
|
|
|
|
|
|
|
MAINTAINER= sanpei@sanpei.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= rpm:${PORTSDIR}/misc/rpm
|
2000-04-22 20:40:17 +00:00
|
|
|
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
|
2000-02-13 02:06:53 +00:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
DOC_DIR= ${PREFIX}/share/doc/xmovie
|
2000-04-22 20:40:17 +00:00
|
|
|
LINUX_BASE= /compat/linux
|
2000-02-13 02:06:53 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
USE_X_PREFIX= yes
|
2000-02-16 15:40:24 +00:00
|
|
|
WRKSRC= ${WRKDIR}/xmovie-i586
|
2000-02-13 02:06:53 +00:00
|
|
|
|
2000-05-29 03:51:37 +00:00
|
|
|
# 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=
|
|
|
|
|
2000-02-13 02:06:53 +00:00
|
|
|
RPM_MIRRORS= \
|
2000-05-14 05:40:52 +00:00
|
|
|
ftp://ftp.freesoftware.com/pub/linux/redhat/__DIR__/ \
|
2000-02-13 02:06:53 +00:00
|
|
|
ftp://ftp.redhat.com/redhat/__DIR__/ \
|
|
|
|
ftp://ftp.infomagic.com/pub/mirrors/linux/RedHat/__DIR__/ \
|
|
|
|
ftp://ftp.crc.ca/mirrors/by-site/ftp.redhat.com/redhat/__DIR__/ \
|
|
|
|
ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ \
|
|
|
|
ftp://mirror.nucba.ac.jp/mirror/redhat/__DIR__/ \
|
|
|
|
ftp://ftp.is.co.za/linux/distributions/redhat/__DIR__/ \
|
|
|
|
ftp://mirror.aarnet.edu.au/pub/linux/redhat/__DIR__/
|
|
|
|
STDDIR= redhat-6.1/${MACHINE_ARCH}/RedHat/RPMS
|
|
|
|
RPM_LIBPNG= libpng-1.0.3-4.i386.rpm
|
|
|
|
DBPATH= /var/lib/rpm
|
|
|
|
LINUX_PREFIX= /compat/linux
|
|
|
|
RPMFLAGS= --ignoreos --root ${LINUX_PREFIX} --dbpath ${DBPATH} \
|
|
|
|
--nodeps --replacepkgs
|
|
|
|
RPMDIR= ${DISTDIR}
|
|
|
|
|
|
|
|
do-patch:
|
|
|
|
@${DO_NADA}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
#
|
|
|
|
# Install Linux libraries
|
|
|
|
#
|
|
|
|
@for R in ${PATCHFILES}; do \
|
|
|
|
${ECHO} $$R; \
|
|
|
|
rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \
|
|
|
|
done
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/xmovie ${PREFIX}/bin
|
|
|
|
@brandelf -t Linux ${PREFIX}/bin/xmovie
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mpeg2toc ${PREFIX}/bin
|
|
|
|
@brandelf -t Linux ${PREFIX}/bin/mpeg2toc
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOC_DIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOC_DIR}/README
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/index.html ${DOC_DIR}/index.html
|
|
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|