View | Details | Raw Unified | Return to bug 195358
Collapse All | Expand All

(-)el/Makefile (-12 / +5 lines)
Lines 15-20 Link Here
15
		libcal3d.so:${PORTSDIR}/graphics/cal3d
15
		libcal3d.so:${PORTSDIR}/graphics/cal3d
16
RUN_DEPENDS=	${LOCALBASE}/share/${PORTNAME}/el.ini:${PORTSDIR}/games/el-data
16
RUN_DEPENDS=	${LOCALBASE}/share/${PORTNAME}/el.ini:${PORTSDIR}/games/el-data
17
17
18
BROKEN_sparc64=	Does not build on sparc64
19
18
USES=		compiler:c++11-lang gmake iconv openal:al,alut tar:xz
20
USES=		compiler:c++11-lang gmake iconv openal:al,alut tar:xz
19
USE_GNOME=	libxml2
21
USE_GNOME=	libxml2
20
USE_SDL=	sdl net image
22
USE_SDL=	sdl net image
Lines 23-48 Link Here
23
25
24
ALL_TARGET=	el.bin
26
ALL_TARGET=	el.bin
25
MAKEFILE=	Makefile.bsd
27
MAKEFILE=	Makefile.bsd
26
PLIST=		${WRKDIR}/pkg-plist
28
PLIST_FILES=	bin/el \
29
		%%DATADIR%%/el.bin
27
30
28
.include <bsd.port.pre.mk>
29
30
.if ${ARCH} == "sparc64"
31
BROKEN=		Does not build on ${ARCH}
32
.endif
33
34
pre-install:
31
pre-install:
35
	@${ECHO} "#!/bin/sh" > ${WRKDIR}/el
32
	@${ECHO} "#!/bin/sh" > ${WRKDIR}/el
36
	@${ECHO} "cd ${DATADIR} || exit 1 " >> ${WRKDIR}/el
33
	@${ECHO} "cd ${DATADIR} || exit 1 " >> ${WRKDIR}/el
37
	@${ECHO} "exec ${DATADIR}/el.bin" >> ${WRKDIR}/el
34
	@${ECHO} "exec ${DATADIR}/el.bin" >> ${WRKDIR}/el
38
35
39
	@${ECHO} "bin/el" > ${PLIST}
40
	@${ECHO} "%%DATADIR%%/el.bin" >> ${PLIST}
41
	@${ECHO} "@dirrmtry %%DATADIR%%" >> ${PLIST}
42
43
do-install:
36
do-install:
44
	@${MKDIR} ${STAGEDIR}${DATADIR}
37
	@${MKDIR} ${STAGEDIR}${DATADIR}
45
	${INSTALL_SCRIPT} ${WRKDIR}/el ${STAGEDIR}${PREFIX}/bin
38
	${INSTALL_SCRIPT} ${WRKDIR}/el ${STAGEDIR}${PREFIX}/bin
46
	${INSTALL_PROGRAM} ${WRKSRC}/el.bin ${STAGEDIR}${DATADIR}
39
	${INSTALL_PROGRAM} ${WRKSRC}/el.bin ${STAGEDIR}${DATADIR}
47
40
48
.include <bsd.port.post.mk>
41
.include <bsd.port.mk>
(-)el-data/Makefile (-14 / +3 lines)
Lines 22-31 Link Here
22
DOS2UNIX_GLOB=	*.ini *.txt
22
DOS2UNIX_GLOB=	*.ini *.txt
23
23
24
DATADIR=	${PREFIX}/share/${PKGNAMEPREFIX:S/-//}
24
DATADIR=	${PREFIX}/share/${PKGNAMEPREFIX:S/-//}
25
PLIST=		${WRKDIR}/pkg-plist
26
WRKSRC=		${WRKDIR}/${PKGNAMEPREFIX:S/-/_/}linux
25
WRKSRC=		${WRKDIR}/${PKGNAMEPREFIX:S/-/_/}linux
27
EL_DATA=	${PKGNAMEPREFIX:S/-/_/}linux_${PORTVERSION}.zip
26
EL_DATA=	${PKGNAMEPREFIX:S/-/_/}linux_${PORTVERSION}.zip
28
27
28
PORTDATA=	*
29
29
OPTIONS_DEFINE=	ELSOUND ELMUSIC
30
OPTIONS_DEFINE=	ELSOUND ELMUSIC
30
OPTIONS_DEFAULT=	ELSOUND ELMUSIC
31
OPTIONS_DEFAULT=	ELSOUND ELMUSIC
31
ELSOUND_DESC=	Install additional sound files
32
ELSOUND_DESC=	Install additional sound files
Lines 35-46 Link Here
35
36
36
.if ${PORT_OPTIONS:MELSOUND}
37
.if ${PORT_OPTIONS:MELSOUND}
37
DISTFILES+=	EL_sound_191${EXTRACT_SUFX}:sound
38
DISTFILES+=	EL_sound_191${EXTRACT_SUFX}:sound
38
HAVE_ESOUND=	yes
39
.endif
39
.endif
40
40
41
.if ${PORT_OPTIONS:MELMUSIC}
41
.if ${PORT_OPTIONS:MELMUSIC}
42
DISTFILES+=	EL_music_full${EXTRACT_SUFX}:music
42
DISTFILES+=	EL_music_full${EXTRACT_SUFX}:music
43
HAVE_EMUSIC=	yes
44
.endif
43
.endif
45
44
46
do-extract:
45
do-extract:
Lines 64-80 Link Here
64
	@${FIND} ${WRKSRC} -type f -name "*.bin" -print0 | \
63
	@${FIND} ${WRKSRC} -type f -name "*.bin" -print0 | \
65
		${XARGS} -0 ${RM} -R
64
		${XARGS} -0 ${RM} -R
66
65
67
pre-install:
68
	@${RM} -f ${PLIST}
69
	@cd ${WRKSRC} && \
70
		${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
71
			${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
72
	@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
73
74
do-install:
66
do-install:
75
	${MKDIR} ${STAGEDIR}${DATADIR}
67
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
76
	@cd ${WRKSRC} && \
77
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
78
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
79
68
80
.include <bsd.port.mk>
69
.include <bsd.port.mk>
(-)el-data/pkg-descr (-1 / +1 lines)
Lines 1-3 Link Here
1
The Eternal Lands data and sounds files.
1
The Eternal Lands data and sounds files.
2
2
3
WWW:	http://www.eternal-lands.com/
3
WWW: http://www.eternal-lands.com/

Return to bug 195358