Bug 102092

Summary: Fixed build problem of myth2_demo
Product: Ports & Packages Reporter: Jesse Scott <mathemajikian>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Makefile
none
distinfo
none
pkg-descr none

Description Jesse Scott 2006-08-15 13:00:38 UTC
Myth2_demo can be installed and can be fully installed if user has Myth2 CDROM. 

# New ports collection makefile for:    myth2_demo
# Date created:                         2006-09-15
# Whom:                                 Jesse Scott     
#
# $FreeBSD: ports/games/myth2_demo/Makefile,v 1.1 2006/09/15 09:14:22 Jesse Scott Exp $
#

PORTNAME=       myth2_demo
PORTVERSION=    1.3e
CATEGORIES=     games linux
MASTER_SITES=   ftp://sunsite.dk/mirrors/lokigames/updates/loki_demos/          
PKGNAMEPREFIX=  linux-
DISTNAME=       myth2-demo
EXTRACT_SUFX=   .run
EXTRACT_ONLY=

MAINTAINER=     Mathemajikian@gmail.com 
COMMENT=        Myth2_Demo
NO_WRKSUBDIR=   yes
NO_BUILD=       yes
ONLY_FOR_ARCHS= i386
PLIST=          ${WRKDIR}/plist
RESTRICTED=     "no license"
NO_CDROM=       ${RESTRICTED}
NO_FTP=         ${RESTRICTED}
USE_LINUX=      yes
USE_X_PREFIX=   yes
mathemajikian# more Makefile
# New ports collection makefile for:    myth2_demo
# Date created:                         2006-09-15
# Whom:                                 Jesse Scott     
#
# $FreeBSD: ports/games/myth2_demo/Makefile,v 1.1 2006/09/15 09:14:22 Jesse Scott Exp $
#

PORTNAME=       myth2_demo
PORTVERSION=    1.3e
CATEGORIES=     games linux
MASTER_SITES=   ftp://sunsite.dk/mirrors/lokigames/updates/loki_demos/          
PKGNAMEPREFIX=  linux-
DISTNAME=       myth2-demo
EXTRACT_SUFX=   .run
EXTRACT_ONLY=

MAINTAINER=     Mathemajikian@gmail.com 
COMMENT=        Myth2_Demo
NO_WRKSUBDIR=   yes
NO_BUILD=       yes
ONLY_FOR_ARCHS= i386
PLIST=          ${WRKDIR}/plist
RESTRICTED=     "no license"
NO_CDROM=       ${RESTRICTED}

NO_FTP=         ${RESTRICTED}
USE_LINUX=      yes
USE_X_PREFIX=   yes
WRKSRC=         ${WRKDIR}/update/demos/myth2_demo/

do-extract:
        ${MKDIR} ${WRKDIR}
        ${SED} -e 1,174d < ${DISTDIR}/${DISTFILES} | ${TAR} -C ${WRKDIR} -xzvf -

do-patch:
        ${MKDIR} ${WRKSRC}
        cd ${WRKDIR} && bin/Linux/x86/loki_patch patch.dat ${WRKDIR}/update
        ${RM} -f ${WRKSRC}/myth2_demo.ppc
        - ${MV} ${WRKSRC}/README ${WRKDIR}

pre-install:
        ${ECHO_CMD} bin/myth2_demo.x86 > ${PLIST}
.ifndef(NOPORTDOCS)
        ${ECHO_CMD} share/doc/myth2_demo/README >> ${PLIST}
.endif
        ${FIND} ${WRKSRC}/ -type f | \
                ${PERL} -pi -e "s:^${WRKSRC}/:lib/myth2_demo/:g" >> ${PLIST}
        ${FIND} -d ${WRKSRC}/ -type d | \
                ${PERL} -pi -e "s:^${WRKSRC}/:\@dirrm lib/myth2_demo/:g" >> \
                        ${PLIST}

do-install:
        ${MKDIR} ${PREFIX}/lib/myth2_demo
.ifndef(NOPORTDOCS)
        ${MKDIR} ${DOCSDIR}
        ${INSTALL_DATA} ${WRKDIR}/README ${DOCSDIR}
.endif
        cd ${WRKSRC} && pax -r -w * ${PREFIX}/lib/myth2_demo
        cd ${PREFIX}/bin && ${LN} -s ../lib/myth2_demo/myth2_demo.x86

.include <bsd.port.mk>

Fix: 

Update ports
How-To-Repeat: N/A
Comment 1 Jesse Scott 2006-08-15 13:25:30 UTC
I have attached the corrected Makefile, distinfo, and pkg-descr to this 
e-mail.

Thanks
Jesse Scott

P.S This is the first time I have done this so I'm not sure if this is 
the correct method to use when updating/submitting changes to the ports.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-08-20 23:03:32 UTC
State Changed
From-To: open->closed

Obsoleted by 102093.