summaryrefslogblamecommitdiff
path: root/games/wolfpack/Makefile
blob: d0fa1bb550ad09caa49a1340f6a1eb051f3a160f (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                





                                                                            
                        
                     
                     


                                                                 

                                                                             
                                     
 
                               
                                                   
 





                                                              
 
                        
                           

                                            
                                     
 

                          
           

                                                                       
 
            
                                         
                                                           
 
             



                                                               
                                                            
                                     
 
                           
# New ports collection makefile for:    wolfpack
# Date created:                         26 October 1999
# Whom:                                 Daniel O'Connor <darius@dons.net.au>
#
# $FreeBSD$
#

PORTNAME=	wolfpack
PORTVERSION=	4.3.8
CATEGORIES=	games
MASTER_SITES=	http://rc.wolfpackempire.com/Downloads/server/ \
		http://empire-rc.gletsjer.net/Downloads/server/ \
		http://www.wolfpackempire.com/Downloads/server/ \
		http://www.wolfpackempire.com/Downloads/server/oldversions/ \
		http://empire.gletsjer.net/Downloads/server/oldversions/
DISTNAME=	empire-${PORTVERSION}

MAINTAINER=	johans@stack.nl
COMMENT=	Long term multiplayer strategy game

MAKEFILE=	GNUmakefile
USE_GMAKE=	yes
USE_PERL5_BUILD=	yes
GNU_CONFIGURE=	yes
BINDIR=		${PREFIX}/lib/${PORTNAME}
CONFIGURE_ARGS+=	--bindir=${BINDIR} --sbindir=${BINDIR}

USE_RC_SUBR=	wolfpack
SUB_FILES+=	pkg-message

MAN1=		fairland.1 files.1 pconfig.1
MAN6=		empire.6 emp_server.6

.include <bsd.port.pre.mk>

post-patch:
	${REINPLACE_CMD} -e '/^econfig/,/^$$/s|/empire|/${PORTNAME}|' \
		${WRKSRC}/Make.mk

pre-install:
	@${SETENV} PKG_PREFIX=${PREFIX} \
		${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL

post-install:
	@${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
	@${LN} -s ${BINDIR}/emp_server ${PREFIX}/bin/emp_server
	@${LN} -s ${BINDIR}/empire ${PREFIX}/bin/emp_client
	@${SETENV} PKG_PREFIX=${PREFIX} \
		${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
	@${CAT} ${WRKDIR}/pkg-message

.include <bsd.port.post.mk>