From 0b15ccdbac0372d8283830115ab0bec8f64a6dc7 Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Wed, 16 Oct 2013 12:55:46 +0000 Subject: - Support staging - Convert USE_GMAKE to USES - Add DESKTOP_ENTRIES --- games/construo/Makefile | 21 +++++++---- games/construo/pkg-plist | 92 ------------------------------------------------ 2 files changed, 14 insertions(+), 99 deletions(-) delete mode 100644 games/construo/pkg-plist (limited to 'games/construo') diff --git a/games/construo/Makefile b/games/construo/Makefile index cdd833e539ed..050fd8ae63d5 100644 --- a/games/construo/Makefile +++ b/games/construo/Makefile @@ -11,7 +11,7 @@ MAINTAINER= amdmi3@FreeBSD.org COMMENT= A fun construction toy GNU_CONFIGURE= yes -USE_GMAKE= yes +USES= gmake USE_XORG= sm ice x11 xext xxf86vm USE_GL= gl glu @@ -19,18 +19,25 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -lGLU CONFIGURE_ARGS= --bindir=${PREFIX}/bin --datadir=${DATADIR} +PLIST_FILES= bin/${PORTNAME} bin/${PORTNAME}.x11 +PORTDATA= * + +DESKTOP_ENTRIES="Construo" \ + "${COMMENT}" \ + "" \ + "${PORTNAME}" \ + "Game;Simulation;" \ + "" + OPTIONS_DEFINE= GLUT OPTIONS_DEFAULT=GLUT GLUT_DESC= Use glut -NO_STAGE= yes .include .if ${PORT_OPTIONS:MGLUT} USE_GL+= glut -PLIST_SUB+= GLUTBIN:="" -.else -PLIST_SUB+= GLUTBIN:="@comment " +PLIST_FILES+= bin/${PORTNAME}.glut .endif post-patch: @@ -45,9 +52,9 @@ post-patch: post-install: .if ${PORT_OPTIONS:MGLUT} - cd ${PREFIX}/bin && ${LN} -s ${PORTNAME}.glut ${PORTNAME} + cd ${STAGEDIR}${PREFIX}/bin && ${LN} -s ${PORTNAME}.glut ${PORTNAME} .else - cd ${PREFIX}/bin && ${LN} -s ${PORTNAME}.x11 ${PORTNAME} + cd ${STAGEDIR}${PREFIX}/bin && ${LN} -s ${PORTNAME}.x11 ${PORTNAME} .endif .include diff --git a/games/construo/pkg-plist b/games/construo/pkg-plist deleted file mode 100644 index 8748b35655ff..000000000000 --- a/games/construo/pkg-plist +++ /dev/null @@ -1,92 +0,0 @@ -bin/construo -%%GLUTBIN:%%bin/construo.glut -bin/construo.x11 -%%DATADIR%%/examples/balance.construo -%%DATADIR%%/examples/ball.construo -%%DATADIR%%/examples/basketball.construo -%%DATADIR%%/examples/bigthing.construo -%%DATADIR%%/examples/borg.construo -%%DATADIR%%/examples/bridg4.construo -%%DATADIR%%/examples/bridge.construo -%%DATADIR%%/examples/bridge2.construo -%%DATADIR%%/examples/bridge3.construo -%%DATADIR%%/examples/bridge4.construo -%%DATADIR%%/examples/bridge5.construo -%%DATADIR%%/examples/bridge6-1.construo -%%DATADIR%%/examples/bridge6.construo -%%DATADIR%%/examples/bridgio.construo -%%DATADIR%%/examples/bug.construo -%%DATADIR%%/examples/candle.construo -%%DATADIR%%/examples/capsule.construo -%%DATADIR%%/examples/choh/quicksave0.construo -%%DATADIR%%/examples/choh/quicksave1.construo -%%DATADIR%%/examples/choh/quicksave2.construo -%%DATADIR%%/examples/choh/quicksave3.construo -%%DATADIR%%/examples/choh/quicksave4.construo -%%DATADIR%%/examples/choh/quicksave5.construo -%%DATADIR%%/examples/choh/quicksave6.construo -%%DATADIR%%/examples/choh/quicksave7.construo -%%DATADIR%%/examples/choh/quicksave8.construo -%%DATADIR%%/examples/choh/quicksave9.construo -%%DATADIR%%/examples/choh2/quicksave1.construo -%%DATADIR%%/examples/choh2/quicksave2.construo -%%DATADIR%%/examples/choh2/quicksave3.construo -%%DATADIR%%/examples/choh2/quicksave4.construo -%%DATADIR%%/examples/choh2/quicksave5.construo -%%DATADIR%%/examples/choh2/quicksave6.construo -%%DATADIR%%/examples/choh2/quicksave7.construo -%%DATADIR%%/examples/choh2/quicksave8.construo -%%DATADIR%%/examples/choh2/quicksave9.construo -%%DATADIR%%/examples/colido.construo -%%DATADIR%%/examples/complex.construo -%%DATADIR%%/examples/complexus.construo -%%DATADIR%%/examples/crashtest.construo -%%DATADIR%%/examples/dancing.construo -%%DATADIR%%/examples/dodge.construo -%%DATADIR%%/examples/explosion.construo -%%DATADIR%%/examples/galactica.construo -%%DATADIR%%/examples/hangon.construo -%%DATADIR%%/examples/house.construo -%%DATADIR%%/examples/jesus.construo -%%DATADIR%%/examples/jesus2.construo -%%DATADIR%%/examples/joe.construo -%%DATADIR%%/examples/kamikaze.construo -%%DATADIR%%/examples/krahn.construo -%%DATADIR%%/examples/kran2.construo -%%DATADIR%%/examples/kranfree.construo -%%DATADIR%%/examples/landingv2.construo -%%DATADIR%%/examples/logo.construo -%%DATADIR%%/examples/monster.construo -%%DATADIR%%/examples/moonlander.construo -%%DATADIR%%/examples/mrwooble.construo -%%DATADIR%%/examples/needle.construo -%%DATADIR%%/examples/pendel45.construo -%%DATADIR%%/examples/pendulum.construo -%%DATADIR%%/examples/penguin.construo -%%DATADIR%%/examples/penguin2.construo -%%DATADIR%%/examples/pig.construo -%%DATADIR%%/examples/plane.construo -%%DATADIR%%/examples/planelanding.construo -%%DATADIR%%/examples/rocket.construo -%%DATADIR%%/examples/rocketlanding.construo -%%DATADIR%%/examples/rotatium.construo -%%DATADIR%%/examples/scorpion.construo -%%DATADIR%%/examples/shangon.construo -%%DATADIR%%/examples/simple.construo -%%DATADIR%%/examples/stabilo.construo -%%DATADIR%%/examples/stretch.construo -%%DATADIR%%/examples/temple.construo -%%DATADIR%%/examples/test.construo -%%DATADIR%%/examples/tetherball.construo -%%DATADIR%%/examples/thingo.construo -%%DATADIR%%/examples/thingo2.construo -%%DATADIR%%/examples/tower.construo -%%DATADIR%%/examples/waaagggee45.construo -%%DATADIR%%/examples/wheels.construo -%%DATADIR%%/examples/wooble.construo -%%DATADIR%%/examples/zeppelin.construo -%%DATADIR%%/examples/ziege.construo -@dirrm %%DATADIR%%/examples/choh -@dirrm %%DATADIR%%/examples/choh2 -@dirrm %%DATADIR%%/examples -@dirrm %%DATADIR%% -- cgit