1999-05-01 02:19:08 +00:00
|
|
|
# New ports collection makefile for: tetrinet-x-1.13.16
|
|
|
|
# Version required: 1.13.16
|
|
|
|
# Date created: 11 Apr 1999
|
1999-11-12 21:04:56 +00:00
|
|
|
# Whom: gmarco@giovannelli.it
|
1999-05-01 02:19:08 +00:00
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1999-05-01 02:19:08 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= tetrinet-x.1.13.16
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.giovannelli.it/~gmarco/files/ \
|
|
|
|
ftp://ftp.dementia.nu/tetrinet/servers/tetrix/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
1999-11-12 21:04:56 +00:00
|
|
|
MAINTAINER= gmarco@giovannelli.it
|
1999-05-01 02:19:08 +00:00
|
|
|
|
|
|
|
INSTALLDIR= ${PREFIX}/tetrinet-x
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
(cd ${WRKDIR}/tetrinetx-1.13.16/src && \
|
|
|
|
gcc -O2 -fno-strength-reduce -Wall main.c -o ../bin/tetrix.freebsd)
|
|
|
|
(cd ${WRKDIR}/tetrinetx-1.13.16/contrib/query/src && \
|
|
|
|
gcc -O2 -fno-strength-reduce -Wall query.c -o ../../../bin/server-query)
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${INSTALLDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/tetrinetx-1.13.16/bin/tetrix.freebsd ${INSTALLDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/tetrinetx-1.13.16/bin/server-query ${INSTALLDIR}
|
|
|
|
${INSTALL_DATA} -m 644 ${WRKDIR}/tetrinetx-1.13.16/bin/game.conf ${INSTALLDIR}
|
|
|
|
${INSTALL_DATA} -m 644 ${WRKDIR}/tetrinetx-1.13.16/bin/game.log ${INSTALLDIR}
|
|
|
|
${INSTALL_DATA} -m 644 ${WRKDIR}/tetrinetx-1.13.16/bin/game.secure ${INSTALLDIR}
|
|
|
|
${INSTALL_DATA} -m 644 ${WRKDIR}/tetrinetx-1.13.16/bin/game.winlist ${INSTALLDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "Installing ${PREFIX}/etc/rc.d/tetrinet-x.sh startup file."
|
|
|
|
@${INSTALL_SCRIPT} -m 751 ${FILESDIR}/tetrinet-x.sh ${PREFIX}/etc/rc.d
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "Please modify configuration files located in ${INSTALLDIR}"
|
|
|
|
@${ECHO} "before attempting to run Tetrinet server"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} ""
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|