freebsd-ports/games/linux-hdb-demo/Makefile
Boris Samorodov 0263b9d868 Welcome to the new linux ports infrastructure which allows using
both current (fc4) and future linux (f8) distributions at one
ports tree.

The patch contains full changes to ports/Mk files and all ports involved.
But only infrastructure is changed. The resulting packages are the same as
before. Hence no need to bump PORTREVISIONs.

The idea was taken from bsd.gnome.mk and others.

More than 130 ports are switched to follow a new linux infrastructure
introduced by changes to bsd.port.mk, bsd.linux-rpm.mk and a new
bsd.linux-apps.mk.

Thanks for all who was involved and helped me with this work.
And help from Alexander Leidinger was incredible.

Other changes are coming. Stay tuned!

PR:		ports/132510
Submitted by:	bsam (me)
Exp-run by:	portmgr (pav)
2009-03-19 17:28:51 +00:00

53 lines
1.4 KiB
Makefile

# New ports collection makefile for: linux-hdb-demo
# Date created: 2009-02-01
# Whom: Marcus von Appen <mva@sysfault.org>
#
# $FreeBSD$
#
PORTNAME= hdb-demo
PORTVERSION= 1.0
CATEGORIES= games linux
MASTER_SITES= http://demofiles.linuxgamepublishing.com/hdb/
PKGNAMEPREFIX= linux-
DISTNAME= hdb_demo
EXTRACT_SUFX= .run
MAINTAINER= mva@FreeBSD.org
COMMENT= Hyperspace Delivery Boy Demo - deliver mail and packages
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
USE_LINUX_APPS= sdl12 sdlmixer mikmod libogg libvorbis xorglibs
NO_CDROM= Redistribution is limited, see license
NO_BUILD= yes
DATADIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
SUB_FILES= hdb
PORTDOCS= README README.licenses README.unixthanks license.txt
.include <bsd.port.pre.mk>
do-extract:
@${MKDIR} ${WRKSRC}
@cd ${WRKSRC} && ${TAIL} +377 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
${TAR} jxf -
do-build:
${BRANDELF} -t Linux ${WRKSRC}/bin/Linux/x86/hdb_demo
${BRANDELF} -t Linux ${WRKSRC}/bin/Linux/x86/hdb_demo.dynamic
do-install:
@${MKDIR} ${DATADIR}
@cd ${WRKSRC}/bin/Linux/x86 && \
${INSTALL_PROGRAM} hdb_demo hdb_demo.dynamic ${DATADIR}
@${INSTALL_PROGRAM} ${WRKDIR}/hdb ${PREFIX}/bin/${PKGNAMEPREFIX}hdb
@${CP} -R ${WRKSRC}/Resources ${DATADIR}
@${CP} -R ${WRKSRC}/music ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/hyperdemo.mpc ${DATADIR}
.if !defined (NOPORTDOCS)
@${INSTALL} -d ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>