blob: 19cbf0054cdff6bc8a732fd740e141db5bca063e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: noegnud-slashem
# Date created: 7 April 2004
# Whom: Leland Wang <llwang@infor.org>
#
# $FreeBSD$
#
PORTNAME= noegnud
PORTVERSION= 0.8.3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}:noegnud,slashem
MASTER_SITE_SUBDIR= ${PORTNAME}/:noegnud \
slashem/:slashem
PKGNAMESUFFIX= -slashem
DISTFILES= ${DISTNAME}_linux_src-minimal${EXTRACT_SUFX}:noegnud \
se006e4f8${EXTRACT_SUFX}:slashem
EXTRACT_ONLY= ${DISTNAME}_linux_src-minimal${EXTRACT_SUFX}
MAINTAINER= llwang@infor.org
COMMENT= The noeGNUd UI for the SLASH'EM variant of Nethack
RUN_DEPENDS= ${LOCALBASE}/share/${NOEGNUDVERSION}/data/gui:${PORTSDIR}/games/noegnud-data
NOEGNUDVERSION= ${PORTNAME}-0.8.0
USE_BISON= yes
USE_GL= yes
WANT_SDL= yes
USE_SDL= sdl image mixer
WRKSRC= ${WRKDIR}/${DISTNAME}/variants
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
ALL_TARGET= se006e4f8
INSTALL_TARGET= install_se006e4f8
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 502103
USE_REINPLACE= yes
.endif
pre-everything::
.if ${HAVE_SDL}
@${ECHO_MSG} "This port depends on SDL with OpenGL support."
@${ECHO_MSG} "If your SDL does not support OpenGL, hit ^C now and reinstall SDL"
@${ECHO_MSG} "with OpenGL support turned on."
.endif
post-extract:
@${CP} ${DISTDIR}/se006e4f8${EXTRACT_SUFX} ${WRKSRC}/tarballs
(cd ${WRKSRC} && ${MAKE} slashem-0.0.6E4F8)
post-patch:
(cd ${WRKSRC} && ${MAKE} ${NOEGNUDVERSION}-slashem-0.0.6E4F8)
@(${PATCH} ${PATCH_ARGS} < ${FILESDIR}/noegnud-slashem.patch)
.if ${OSVERSION} < 502103
@${REINPLACE_CMD} -e 's/regex\.h/gnuregex\.h/' \
${WRKSRC}/slashem-0.0.6E4F8/src/sounds.c \
${PATCH_WRKSRC}/noegnud/noegnud_textcolour.c \
${PATCH_WRKSRC}/noegnud/noegnud_textcolour.h \
${PATCH_WRKSRC}/noegnud/noegnud_textcolouring.c
.endif
do-configure:
(cd ${WRKSRC} && ${MAKE} ${NOEGNUDVERSION}-slashem-0.0.6E4F8/Makefile)
.include <bsd.port.post.mk>
|