2005-11-25 04:39:30 +01:00
|
|
|
# New ports collection makefile for: construo
|
|
|
|
# Date created: 24 Nov 2005
|
2006-12-21 21:41:33 +01:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2005-11-25 04:39:30 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= construo
|
|
|
|
PORTVERSION= 0.2.2
|
2009-01-23 17:28:36 +01:00
|
|
|
PORTREVISION= 4
|
2005-11-25 04:39:30 +01:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
|
|
|
MASTER_SITE_SUBDIR= construo
|
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2005-11-25 04:39:30 +01:00
|
|
|
COMMENT= A fun construction toy
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2008-03-17 17:39:14 +01:00
|
|
|
USE_XORG= sm ice x11 xext xxf86vm
|
2005-11-25 04:39:30 +01:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include"
|
2005-11-25 04:39:30 +01:00
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/bin --datadir=${DATADIR}
|
|
|
|
|
|
|
|
OPTIONS= GLUT "Use glut" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GLUT)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_GL= glut
|
2005-11-25 04:39:30 +01:00
|
|
|
PLIST_SUB+= GLUTBIN:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GLUTBIN:="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|bindir = .*|bindir = @bindir@|' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} 's|pkgdatadir = .*|pkgdatadir = @datadir@/examples|' ${WRKSRC}/examples/Makefile.in
|
|
|
|
@${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)
|
|
|
|
@${REINPLACE_CMD} 's|.*glut_glutMainLoop = yes.*|if false; then|' ${WRKSRC}/configure
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if defined(WITH_GLUT)
|
|
|
|
cd ${PREFIX}/bin && ${LN} -s ${PORTNAME}.glut ${PORTNAME}
|
|
|
|
.else
|
|
|
|
cd ${PREFIX}/bin && ${LN} -s ${PORTNAME}.x11 ${PORTNAME}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|