freebsd-ports/graphics/linux-divxplayer/Makefile
Mario Sergio Fujikawa Ferreira 389d318e31 After update of linux_base to 7.1 in rev 1.60, correct detection
of strip tool since it is not part of 7.1
2002-05-28 16:33:27 +00:00

58 lines
1.2 KiB
Makefile

# New ports collection makefile for: divx.com player
# Date created: Sun May 19 22:17:41 BRT 2002
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= divxplayer
PORTVERSION= 0.2.0
CATEGORIES= graphics linux
MASTER_SITES= http://download.divx.com/player/
PKGNAMEPREFIX= linux-
DISTNAME= divx-player-installer
MAINTAINER= lioux@FreeBSD.org
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
USE_X_PREFIX= yes
NO_BUILD= yes
STRIP=
WRKSRC= ${WRKDIR}/divx-player-installer
STRIP_CMD= ${LINUXBASE}/usr/bin/strip
.if exists(/usr/bin/brandelf)
BRANDELF?= /usr/bin/brandelf
.else
BRANDELF?= brandelf
.endif
BINARY_NAME= divxPlayer.bin
post-patch:
@${SED} -e "s|%%DATADIR%%|${DATADIR}|" ${FILESDIR}/wrapper.sh \
> ${WRKDIR}/wrapper.sh
do-install:
# skin files
@${MKDIR} ${DATADIR}
@${MKDIR} ${DATADIR}/Skins
@${INSTALL_DATA} ${WRKSRC}/Skins/* ${DATADIR}/Skins
# player
@${INSTALL_PROGRAM} ${WRKSRC}/${BINARY_NAME} ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \
${PREFIX}/bin/${BINARY_NAME:S/.bin$//}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
pre-install:
.if exists(${STRIP_CMD})
@${STRIP_CMD} ${WRKSRC}/${BINARY_NAME}
.endif
@${BRANDELF} -t Linux ${WRKSRC}/${BINARY_NAME}
.include <bsd.port.post.mk>