aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2013-03-13 06:46:55 +0800
committerbeech <beech@FreeBSD.org>2013-03-13 06:46:55 +0800
commitd018746597b1d0acec61dc063cf3abb5246fd491 (patch)
tree4b9f766e404d787d2cf0ba37e5441dce0c277c73 /games
parentf9b815ba6f807a70f2b63239b239e2f3166d0528 (diff)
downloadfreebsd-ports-gnome-d018746597b1d0acec61dc063cf3abb5246fd491.tar.gz
freebsd-ports-gnome-d018746597b1d0acec61dc063cf3abb5246fd491.tar.zst
freebsd-ports-gnome-d018746597b1d0acec61dc063cf3abb5246fd491.zip
- Makefile tweaks
- Add Desktop entries, icons, removed all Notes - Shorten header - Bump portrevision PR: ports/173347 Submitted by: nemysis <nemysis@gmx.ch>
Diffstat (limited to 'games')
-rw-r--r--games/BillardGL/Makefile49
-rw-r--r--games/BillardGL/distinfo4
2 files changed, 28 insertions, 25 deletions
diff --git a/games/BillardGL/Makefile b/games/BillardGL/Makefile
index 0d84789cc82f..e86dca25f135 100644
--- a/games/BillardGL/Makefile
+++ b/games/BillardGL/Makefile
@@ -1,18 +1,14 @@
-# New ports collection makefile for: BillardGL
-# Date created: 02 Jan 2004
-# Whom: Igor Pokrovsky <tiamat@comset.net>
-#
+# Created By: Igor Pokrovsky <tiamat@comset.net>
# $FreeBSD$
-#
PORTNAME= BillardGL
PORTVERSION= 1.75
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= games
-MASTER_SITES= SF/${PORTNAME:L}/${PORTNAME:L}/${PORTNAME}%20${PORTVERSION}/ \
+MASTER_SITES= SF/${PORTNAME:L}/${PORTNAME:L}/${PORTNAME}%20${PORTVERSION}/:game \
SF/nemysisfreebsdp/:icons
-DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
- ${PORTNAME}-LP-010.zip \
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:game \
+ ${PORTNAME}-LP-010.zip:game \
${PORTNAME}_icons.tar.gz:icons
DIST_SUBDIR= ${PORTNAME:L}
@@ -31,14 +27,22 @@ USE_XORG= xmu xext x11 xi
USE_GL= glut
PLIST_FILES= bin/${PORTNAME} \
- share/pixmaps/${PORTNAME}_48.png \
- share/pixmaps/${PORTNAME}_64.png \
- share/pixmaps/${PORTNAME}_72.png \
- share/pixmaps/${PORTNAME}_96.png
+ share/pixmaps/${PORTNAME}.png \
+ share/icons/hicolor/32x32/apps/${PORTNAME}.png \
+ share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+ share/icons/hicolor/64x64/apps/${PORTNAME}.png \
+ share/icons/hicolor/72x72/apps/${PORTNAME}.png \
+ share/icons/hicolor/96x96/apps/${PORTNAME}.png
PORTDATA= *
PORTDOCS= README
+INSTALLS_ICONS= yes
+ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
+
+DESKTOP_ENTRIES="BillardGL" "${COMMENT}" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
+
OPTIONS_DEFINE= LANG
LANG_DESC= Install additional Language
OPTIONS_DEFAULT= LANG
@@ -46,31 +50,30 @@ OPTIONS_DEFAULT= LANG
.include <bsd.port.options.mk>
post-patch:
-# Fix data location
@${REINPLACE_CMD} -e 's|/usr/share/BillardGL/|${DATADIR}/|' ${WRKSRC}/Namen.h
do-install:
-# Executable
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-# Data
-# ${MKDIR} ${DATADIR}
.for d in Texturen lang
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
.endfor
-# Pixmaps
- ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png ${PREFIX}/share/pixmaps
+post-install:
+.for s in ${ICON_SIZES}
+ ${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
+ ${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
+.endfor
+ ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
-# Documentation
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
-# Additional Language
.if ${PORT_OPTIONS:MLANG}
- ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-LP-010/*.lang ${DATADIR}/lang/
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-LP-010/*.lang ${DATADIR}/lang
.endif
.include <bsd.port.mk>
diff --git a/games/BillardGL/distinfo b/games/BillardGL/distinfo
index 2de644dc8f11..4ba5839b6521 100644
--- a/games/BillardGL/distinfo
+++ b/games/BillardGL/distinfo
@@ -2,5 +2,5 @@ SHA256 (billardgl/BillardGL-1.75.tar.gz) = 9b865b1254aa30125480ec7ea2ce00d91524d
SIZE (billardgl/BillardGL-1.75.tar.gz) = 736295
SHA256 (billardgl/BillardGL-LP-010.zip) = a1325a0ed9b0dc3e2cbf8acebe4f7c4caf4183547b777b7543ad61e1e6e07cf6
SIZE (billardgl/BillardGL-LP-010.zip) = 232940
-SHA256 (billardgl/BillardGL_icons.tar.gz) = f4d5812c32f57f81e610962b68941d79ff4469f25ed21bc0ff5a50b1c3c5b446
-SIZE (billardgl/BillardGL_icons.tar.gz) = 25088
+SHA256 (billardgl/BillardGL_icons.tar.gz) = bce61c00306d18b40216e99df1a782ffe1c93bd70ccba3f55ee9e8c4b970b6c4
+SIZE (billardgl/BillardGL_icons.tar.gz) = 38400