aboutsummaryrefslogtreecommitdiff
path: root/games/construo
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2012-12-01 09:40:37 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2012-12-01 09:40:37 +0000
commit2023a73d291a8604e0ac377b590467d98bf8628f (patch)
tree209a61fc901dc9cd09f52f5f54112c92cc9fe300 /games/construo
parentd302efa0867ad16664c363f99e415c3240727079 (diff)
downloadports-2023a73d291a8604e0ac377b590467d98bf8628f.tar.gz
ports-2023a73d291a8604e0ac377b590467d98bf8628f.zip
Notes
Diffstat (limited to 'games/construo')
-rw-r--r--games/construo/Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/games/construo/Makefile b/games/construo/Makefile
index 3c51b12c75eb..787013da4a60 100644
--- a/games/construo/Makefile
+++ b/games/construo/Makefile
@@ -1,16 +1,11 @@
-# New ports collection makefile for: construo
-# Date created: 24 Nov 2005
-# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
-#
+# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
-#
PORTNAME= construo
PORTVERSION= 0.2.2
PORTREVISION= 5
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SAVANNAH}
-MASTER_SITE_SUBDIR= construo
+MASTER_SITES= SAVANNAH/construo
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= A fun construction toy
@@ -18,17 +13,20 @@ COMMENT= A fun construction toy
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_XORG= sm ice x11 xext xxf86vm
+USE_GL= gl glu
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lGLU
CONFIGURE_ARGS= --bindir=${PREFIX}/bin --datadir=${DATADIR}
-OPTIONS= GLUT "Use glut" on
+OPTIONS_DEFINE= GLUT
+OPTIONS_DEFAULT=GLUT
+GLUT_DESC= Use glut
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_GLUT)
-USE_GL= glut
+.if ${PORT_OPTIONS:MGLUT}
+USE_GL+= glut
PLIST_SUB+= GLUTBIN:=""
.else
PLIST_SUB+= GLUTBIN:="@comment "
@@ -40,15 +38,15 @@ post-patch:
@${REINPLACE_CMD} '/stream/!s/std:://' ${WRKSRC}/vector.cxx
@${REINPLACE_CMD} 's|^\(#define CONSTRUO_DATADIR DATADIR\).*|\1|' ${WRKSRC}/construo.hxx
@${REINPLACE_CMD} 's|.*glut_1_3_glutMainLoop = yes.*|if false; then|' ${WRKSRC}/configure
-.if defined(WITHOUT_GLUT)
+.if ! ${PORT_OPTIONS:MGLUT}
@${REINPLACE_CMD} 's|.*glut_glutMainLoop = yes.*|if false; then|' ${WRKSRC}/configure
.endif
post-install:
-.if defined(WITH_GLUT)
+.if ${PORT_OPTIONS:MGLUT}
cd ${PREFIX}/bin && ${LN} -s ${PORTNAME}.glut ${PORTNAME}
.else
cd ${PREFIX}/bin && ${LN} -s ${PORTNAME}.x11 ${PORTNAME}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>