View | Details | Raw Unified | Return to bug 173347 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-18 / +25 lines)
Lines 7-18 Link Here
7
7
8
PORTNAME=	BillardGL
8
PORTNAME=	BillardGL
9
PORTVERSION=	1.75
9
PORTVERSION=	1.75
10
PORTREVISION=	8
10
PORTREVISION=	9
11
CATEGORIES=	games
11
CATEGORIES=	games
12
MASTER_SITES=	SF/${PORTNAME:L}/${PORTNAME:L}/${PORTNAME}%20${PORTVERSION}/ \
12
MASTER_SITES=	SF/${PORTNAME:L}/${PORTNAME:L}/${PORTNAME}%20${PORTVERSION}/:game \
13
		SF/nemysisfreebsdp/:icons
13
		SF/nemysisfreebsdp/:icons
14
DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
14
DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:game \
15
		${PORTNAME}-LP-010.zip \
15
		${PORTNAME}-LP-010.zip:game \
16
		${PORTNAME}_icons.tar.gz:icons
16
		${PORTNAME}_icons.tar.gz:icons
17
DIST_SUBDIR=	${PORTNAME:L}
17
DIST_SUBDIR=	${PORTNAME:L}
18
18
Lines 31-44 Link Here
31
USE_GL=		glut
31
USE_GL=		glut
32
32
33
PLIST_FILES=	bin/${PORTNAME} \
33
PLIST_FILES=	bin/${PORTNAME} \
34
		share/pixmaps/${PORTNAME}_48.png \
34
		share/pixmaps/${PORTNAME}.png \
35
		share/pixmaps/${PORTNAME}_64.png \
35
		share/icons/hicolor/32x32/apps/${PORTNAME}.png \
36
		share/pixmaps/${PORTNAME}_72.png \
36
		share/icons/hicolor/48x48/apps/${PORTNAME}.png \
37
		share/pixmaps/${PORTNAME}_96.png
37
		share/icons/hicolor/64x64/apps/${PORTNAME}.png \
38
		share/icons/hicolor/72x72/apps/${PORTNAME}.png \
39
		share/icons/hicolor/96x96/apps/${PORTNAME}.png
38
40
39
PORTDATA=	*
41
PORTDATA=	*
40
PORTDOCS=	README
42
PORTDOCS=	README
41
43
44
INSTALLS_ICONS=	yes
45
ICON_SIZES=	32x32 48x48 64x64 72x72 96x96
46
47
DESKTOP_ENTRIES="BillardGL" "${COMMENT}" "${PORTNAME}" \
48
		"${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
49
42
OPTIONS_DEFINE=	LANG
50
OPTIONS_DEFINE=	LANG
43
LANG_DESC=	Install additional Language
51
LANG_DESC=	Install additional Language
44
OPTIONS_DEFAULT=	LANG
52
OPTIONS_DEFAULT=	LANG
Lines 46-76 Link Here
46
.include <bsd.port.options.mk>
54
.include <bsd.port.options.mk>
47
55
48
post-patch:
56
post-patch:
49
# Fix data location
50
	@${REINPLACE_CMD} -e 's|/usr/share/BillardGL/|${DATADIR}/|' ${WRKSRC}/Namen.h
57
	@${REINPLACE_CMD} -e 's|/usr/share/BillardGL/|${DATADIR}/|' ${WRKSRC}/Namen.h
51
58
52
do-install:
59
do-install:
53
# Executable
54
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
60
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
55
61
56
# Data
57
#	${MKDIR} ${DATADIR}
58
.for d in Texturen lang
62
.for d in Texturen lang
59
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
63
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
60
.endfor
64
.endfor
61
65
62
# Pixmaps
66
post-install:
63
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png ${PREFIX}/share/pixmaps
67
.for s in ${ICON_SIZES}
68
	${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
69
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
70
		${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
71
.endfor
72
	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
64
73
65
# Documentation
66
.if ${PORT_OPTIONS:MDOCS}
74
.if ${PORT_OPTIONS:MDOCS}
67
	${MKDIR} ${DOCSDIR}
75
	${MKDIR} ${DOCSDIR}
68
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
76
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
69
.endif
77
.endif
70
78
71
# Additional Language
72
.if ${PORT_OPTIONS:MLANG}
79
.if ${PORT_OPTIONS:MLANG}
73
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-LP-010/*.lang ${DATADIR}/lang/
80
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-LP-010/*.lang ${DATADIR}/lang
74
.endif
81
.endif
75
82
76
.include <bsd.port.mk>
83
.include <bsd.port.mk>
(-)./distinfo (-2 / +2 lines)
Lines 2-6 Link Here
2
SIZE (billardgl/BillardGL-1.75.tar.gz) = 736295
2
SIZE (billardgl/BillardGL-1.75.tar.gz) = 736295
3
SHA256 (billardgl/BillardGL-LP-010.zip) = a1325a0ed9b0dc3e2cbf8acebe4f7c4caf4183547b777b7543ad61e1e6e07cf6
3
SHA256 (billardgl/BillardGL-LP-010.zip) = a1325a0ed9b0dc3e2cbf8acebe4f7c4caf4183547b777b7543ad61e1e6e07cf6
4
SIZE (billardgl/BillardGL-LP-010.zip) = 232940
4
SIZE (billardgl/BillardGL-LP-010.zip) = 232940
5
SHA256 (billardgl/BillardGL_icons.tar.gz) = f4d5812c32f57f81e610962b68941d79ff4469f25ed21bc0ff5a50b1c3c5b446
5
SHA256 (billardgl/BillardGL_icons.tar.gz) = bce61c00306d18b40216e99df1a782ffe1c93bd70ccba3f55ee9e8c4b970b6c4
6
SIZE (billardgl/BillardGL_icons.tar.gz) = 25088
6
SIZE (billardgl/BillardGL_icons.tar.gz) = 38400

Return to bug 173347