2004-01-23 09:55:33 +00:00
|
|
|
# New ports collection makefile for: glbsp
|
|
|
|
# Date created: 22 Jan 2004
|
|
|
|
# Whom: Igor Pokrovsky <tiamat@comset.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= glbsp
|
2004-12-18 18:33:12 +00:00
|
|
|
PORTVERSION= 2.10c
|
2004-01-23 09:55:33 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/.//}
|
|
|
|
|
2004-07-21 17:47:52 +00:00
|
|
|
MAINTAINER= ip@doom.homeunix.org
|
2004-01-23 09:55:33 +00:00
|
|
|
COMMENT= BSP node builder for OpenGL ports of the DOOM game engine
|
|
|
|
|
|
|
|
.ifdef (WITH_GUI_VERSION)
|
|
|
|
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
|
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2004-12-18 18:33:12 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/[[:alpha:]]//}
|
2004-01-23 09:55:33 +00:00
|
|
|
|
|
|
|
.if !defined (WITH_GUI_VERSION)
|
|
|
|
PLIST_SUB= GUI_VERSION="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB= GUI_VERSION=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifndef (WITH_GUI_VERSION)
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_CMD} "***********************************************************"
|
|
|
|
@${ECHO_CMD} "Define WITH_GUI_VERSION=yes to build FLTK based GUI version"
|
|
|
|
@${ECHO_CMD} "***********************************************************"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef (WITH_GUI_VERSION)
|
2004-12-18 18:33:12 +00:00
|
|
|
post-build:
|
|
|
|
${SETENV} CC=${CC} \
|
|
|
|
CXX=${CXX} \
|
|
|
|
CFLAGS="${CFLAGS}" \
|
|
|
|
CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
X11BASE=${X11BASE} \
|
|
|
|
LOCALBASE=${LOCALBASE} \
|
|
|
|
${GMAKE} -C ${WRKSRC} -f GUI.mak all
|
2004-01-23 09:55:33 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2004-12-18 18:33:12 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/glbsp ${PREFIX}/bin
|
2004-01-23 09:55:33 +00:00
|
|
|
.ifdef (WITH_GUI_VERSION)
|
2004-12-18 18:33:12 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/glBSPX ${PREFIX}/bin
|
2004-01-23 09:55:33 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifndef (NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/USAGE.txt ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|