aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-10-17 18:15:25 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-10-17 18:15:25 +0800
commit6caaabeedd944323de94ce8f96bc50f7c2c3ee41 (patch)
tree4ad4ea092a44a2a6f37d6340141e4732a4ed9d67 /graphics
parent360506b185d68843b6dae417905ff9aef7e4a44e (diff)
downloadfreebsd-ports-gnome-6caaabeedd944323de94ce8f96bc50f7c2c3ee41.tar.gz
freebsd-ports-gnome-6caaabeedd944323de94ce8f96bc50f7c2c3ee41.tar.zst
freebsd-ports-gnome-6caaabeedd944323de94ce8f96bc50f7c2c3ee41.zip
- Support staging
- Convert USE_GMAKE to USES - Add CONFLICTS on wingsl - Add DESKTOP_ENTRIES
Diffstat (limited to 'graphics')
-rw-r--r--graphics/wings-devel/Makefile25
-rw-r--r--graphics/wings-devel/pkg-plist5
2 files changed, 19 insertions, 11 deletions
diff --git a/graphics/wings-devel/Makefile b/graphics/wings-devel/Makefile
index 31704ca0676b..9c144c7ddbe3 100644
--- a/graphics/wings-devel/Makefile
+++ b/graphics/wings-devel/Makefile
@@ -17,28 +17,35 @@ BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang \
${LOCALBASE}/lib/erlang/lib/esdl/include/sdl.hrl:${PORTSDIR}/devel/esdl
+CONFLICTS= ${PORTNAME}-[0-9]*
+
MAKE_ENV= ESDL_PATH=${LOCALBASE}/lib/erlang/lib/esdl
PLIST_SUB= VERSION="${PORTVERSION}"
MAKE_JOBS_UNSAFE=yes
-SUB_FILES= wings.sh
+SUB_FILES= ${PORTNAME}.sh
USE_BZIP2= yes
-USE_GMAKE= yes
+USES= gmake
+
+DESKTOP_ENTRIES="Wings" \
+ "${COMMENT}" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
+ "${PORTNAME}" \
+ "Graphics;3DGraphics;" \
+ ""
PORTSCOUT= limitw:1,odd
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|$$(GCC)|${CC} -I${LOCALBASE}/include -L${LOCALBASE}/lib|g' \
${WRKSRC}/plugins_src/accel/Makefile
do-install:
- ${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}
-.for dir in src ebin fonts plugins textures shaders patches
- cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${PREFIX}/lib/erlang/lib/${DISTNAME}
-.endfor
- @${INSTALL_SCRIPT} ${WRKDIR}/wings.sh ${PREFIX}/bin/wings
- @${LN} -sf ${DISTNAME} ${PREFIX}/lib/erlang/lib/${PORTNAME}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${DISTNAME}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "src ebin fonts plugins textures shaders patches" \
+ ${STAGEDIR}${PREFIX}/lib/erlang/lib/${DISTNAME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.icon ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico
.include <bsd.port.mk>
diff --git a/graphics/wings-devel/pkg-plist b/graphics/wings-devel/pkg-plist
index dcbb14dc8d1a..2e8a8ee29d0f 100644
--- a/graphics/wings-devel/pkg-plist
+++ b/graphics/wings-devel/pkg-plist
@@ -1,4 +1,6 @@
+@unexec rm -f %D/lib/erlang/lib/wings
bin/wings
+@exec ln -sf wings-%%VERSION%% %D/lib/erlang/lib/wings
lib/erlang/lib/wings-%%VERSION%%/ebin/array.beam
lib/erlang/lib/wings-%%VERSION%%/ebin/e3d__bmp.beam
lib/erlang/lib/wings-%%VERSION%%/ebin/e3d__meshclean.beam
@@ -336,6 +338,7 @@ lib/erlang/lib/wings-%%VERSION%%/src/wings_wm_toplevel.erl
lib/erlang/lib/wings-%%VERSION%%/src/wpa.erl
lib/erlang/lib/wings-%%VERSION%%/textures/brand.png
lib/erlang/lib/wings-%%VERSION%%/textures/grandcanyon.png
+share/pixmaps/wings.ico
@dirrm lib/erlang/lib/wings-%%VERSION%%/textures
@dirrm lib/erlang/lib/wings-%%VERSION%%/src
@dirrm lib/erlang/lib/wings-%%VERSION%%/shaders
@@ -350,5 +353,3 @@ lib/erlang/lib/wings-%%VERSION%%/textures/grandcanyon.png
@dirrm lib/erlang/lib/wings-%%VERSION%%/fonts
@dirrm lib/erlang/lib/wings-%%VERSION%%/ebin
@dirrm lib/erlang/lib/wings-%%VERSION%%
-@exec ln -sf wings-%%VERSION%% %D/lib/erlang/lib/wings
-@unexec rm -f %D/lib/erlang/lib/wings