2000-01-12 05:47:13 +00:00
|
|
|
# New ports collection makefile for: QuakeForge
|
|
|
|
# Date created: 4 January 2000
|
|
|
|
# Whom: darius@dons.net.au
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 12:28:40 +00:00
|
|
|
PORTNAME= QuakeForge
|
|
|
|
PORTVERSION= 0.10.0p
|
2000-01-12 05:47:13 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
# ${MASTER_SITES} is only for if CVS won't work, period.
|
|
|
|
MASTER_SITES= http://www.gsoft.com.au/~doconnor/
|
2000-04-14 12:28:40 +00:00
|
|
|
DISTNAME= quakeforge
|
2000-01-12 05:47:13 +00:00
|
|
|
|
|
|
|
MAINTAINER= darius@dons.net.au
|
|
|
|
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_GLX)
|
2000-01-12 05:47:13 +00:00
|
|
|
LIB_DEPENDS= GL.1:${PORTSDIR}/graphics/glx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-opengl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
CAT?= /bin/cat
|
|
|
|
DISTFILES!= ${CAT} ${FILESDIR}/distfiles
|
|
|
|
|
|
|
|
CVS_CMD?= cvs -z3
|
|
|
|
CVS_DATE= Tue Jan 4 03:20:17 GMT 2000
|
|
|
|
SED?= /usr/bin/sed
|
|
|
|
CVS_DATE_!= ${ECHO} -n "${CVS_DATE}" | ${SED} 's/[ \t:]/_/g'
|
|
|
|
CVS_SITES= :pserver:anonymous@cvs.quake.sourceforge.net:/cvsroot/quake
|
2000-04-16 23:33:39 +00:00
|
|
|
DIRNAME= ${PORTNAME}-0.10.0pre
|
|
|
|
STAMPFILE= ${DISTDIR}/${DIRNAME}/.stamp
|
2000-01-12 05:47:13 +00:00
|
|
|
WRKSRC= ${WRKDIR}/quakeforge
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_AUTOCONF= yes
|
|
|
|
USE_XLIB= yes
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
|
|
|
|
pre-fetch:
|
2000-04-17 00:18:05 +00:00
|
|
|
.if !defined(WITH_GLX)
|
|
|
|
@${ECHO_MSG} "Define WITH_GLX to use GLX (otherwise it is explicitly disabled!)"
|
2000-01-12 05:47:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(BATCH)
|
|
|
|
do-fetch: fetchsrctarball
|
|
|
|
.else
|
|
|
|
do-fetch:
|
|
|
|
@if [ ! -e ${STAMPFILE} ] || \
|
|
|
|
[ "X${CVS_DATE}" != "X$$(${CAT} ${STAMPFILE})" ]; then \
|
|
|
|
${ECHO_MSG} "No stamp file (or out of date)"; \
|
2000-04-16 23:33:39 +00:00
|
|
|
if [ -e ${DISTDIR}/${DIRNAME}.${CVS_DATE_}.tar.gz ]; then \
|
2000-01-12 05:47:13 +00:00
|
|
|
cd ${DISTDIR}; \
|
2000-04-16 23:33:39 +00:00
|
|
|
${TAR} xfz ${DIRNAME}.${CVS_DATE_}.tar.gz \
|
2000-01-12 05:47:13 +00:00
|
|
|
${DISTFILES}; \
|
|
|
|
${ECHO} -n "${CVS_DATE}" > ${STAMPFILE}; \
|
|
|
|
exit; \
|
|
|
|
fi; \
|
|
|
|
unset CVS_RSH CVS_SERVER CVS_LOGIN || ${TRUE}; \
|
|
|
|
if [ -n "${PORTS_CVS_RSH}" ]; then \
|
|
|
|
export CVS_RSH="${PORTS_CVS_RSH}"; \
|
|
|
|
fi; \
|
2000-04-16 23:33:39 +00:00
|
|
|
${MKDIR} ${DISTDIR}/${DIRNAME} && \
|
|
|
|
cd ${DISTDIR}/${DIRNAME}; \
|
2000-01-12 05:47:13 +00:00
|
|
|
for CVS_SITE in ${CVS_SITES}; do \
|
|
|
|
${ECHO_MSG} ">> Attempting to CVS checkout from $${CVS_SITE}."; \
|
|
|
|
case "$${CVS_SITE}" in \
|
|
|
|
:pserver:*) \
|
|
|
|
CVS_LOGIN=yes; \
|
|
|
|
;; \
|
|
|
|
*) \
|
|
|
|
CVS_LOGIN=no; \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
if [ "X$${CVS_LOGIN}" = "Xyes" ]; then \
|
|
|
|
${ECHO_MSG} ">>** Please hit enter here for the password."; \
|
|
|
|
${CVS_CMD} -d $${CVS_SITE} login < /dev/null; \
|
|
|
|
fi; \
|
|
|
|
if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \
|
|
|
|
${DISTNAME}; then \
|
|
|
|
if [ "X$${CVS_LOGIN}" = "Xyes" ]; then \
|
|
|
|
${CVS_CMD} -d $${CVS_SITE} logout < /dev/null; \
|
|
|
|
fi; \
|
|
|
|
${ECHO} -n ${CVS_DATE} > ${STAMPFILE}; \
|
|
|
|
exit; \
|
|
|
|
fi; \
|
|
|
|
if [ "X$${CVS_LOGIN}" = "Xyes" ]; then \
|
|
|
|
${CVS_CMD} -d $${CVS_SITE} logout < /dev/null; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
2000-04-16 23:33:39 +00:00
|
|
|
${ECHO_MSG} ">> Couldn't CVS checkout ${DIRNAME}. Please try to retrieve"; \
|
2000-01-12 05:47:13 +00:00
|
|
|
${ECHO_MSG} ">> a snapshot with \"make fetchsrctarball\" and try again."; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
.endif
|
|
|
|
|
|
|
|
makesrctarball: fetch
|
|
|
|
@cd ${DISTDIR}; \
|
|
|
|
${ECHO_MSG} ">> Creating source tarball in ${DISTDIR}"; \
|
2000-04-16 23:33:39 +00:00
|
|
|
${ECHO_MSG} ">> \"${DIRNAME}.${CVS_DATE_}.tar.gz\"."; \
|
|
|
|
${TAR} cfz ${DIRNAME}.${CVS_DATE_}.tar.gz ${DIRNAME}
|
2000-01-12 05:47:13 +00:00
|
|
|
|
|
|
|
fetchsrctarball:
|
|
|
|
@cd ${DISTDIR}; \
|
2000-04-16 23:33:39 +00:00
|
|
|
file=${DIRNAME}.${CVS_DATE_}.tar.gz; \
|
2000-01-12 05:47:13 +00:00
|
|
|
if [ -e $$file ]; then \
|
|
|
|
exit; \
|
|
|
|
fi; \
|
|
|
|
${ECHO_MSG} ">> $$file doesn't seem to exist on this system."; \
|
|
|
|
for site in ${MASTER_SITES}; do \
|
|
|
|
${ECHO_MSG} ">> Attempting to fetch from $${site}."; \
|
|
|
|
if ${SETENV} ${FETCH_ENV} ${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
|
|
|
|
$${site}$${file}; then \
|
|
|
|
exit; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
${ECHO_MSG} ">> Couldn't fetch $$file."; \
|
|
|
|
${ECHO_MSG} ">> Please try to retrieve this file manually into"; \
|
|
|
|
${ECHO_MSG" ">> ${_DISTDIR} and try again."; \
|
|
|
|
exit 1 ;
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKDIR}
|
2000-04-16 23:33:39 +00:00
|
|
|
@${CP} -r ${DISTDIR}/${DIRNAME}/${DISTNAME} ${WRKDIR}
|
2000-01-12 05:47:13 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${CP} ${PKGDIR}/PLIST ${PLIST}
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_GLX)
|
2000-01-12 05:47:13 +00:00
|
|
|
${CAT} ${PKGDIR}/PLIST.glx >>${PLIST}
|
|
|
|
.endif
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
autoheader;
|
|
|
|
|
|
|
|
BINARIES= quake-x11 qw-client-x11 qw-server
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_GLX)
|
2000-01-12 05:47:13 +00:00
|
|
|
BINARIES+= quake-gl qw-client-gl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for binary in ${BINARIES}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/targets/${binary} ${PREFIX}/bin/
|
|
|
|
.endfor
|
|
|
|
|
2000-01-17 12:05:19 +00:00
|
|
|
.include <bsd.port.post.mk>
|