aboutsummaryrefslogtreecommitdiff
path: root/games/super_methane_brothers/Makefile
blob: 2e2578de3a82490b58d4cb9bdd47aa006f851603 (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
# New ports collection makefile for:	Super Methane Brothers
# Date created:			22 Jan 2004
# Whom:				Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=	super_methane_brothers
PORTVERSION=	1.4.7
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	methane
DISTNAME=	methane-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	jylefort@FreeBSD.org
COMMENT=	A port of the Amiga platform game of the same name

LIB_DEPENDS=	clanCore-0.7:${PORTSDIR}/devel/clanlib-devel \
		mikmod:${PORTSDIR}/audio/libmikmod

BUILD_WRKSRC=	${WRKSRC}/source/linux
MAKEFILE=	makefile

USE_X_PREFIX=	yes
USE_GMAKE=	yes
USE_REINPLACE=	yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
IGNORE=		does not compile on FreeBSD 4.X
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		's|g++|${CXX}|; s|gcc|${CXX}|; \
		 s|\(clanCore-0.7\)|\1 clanSignals-0.7|; \
		 s|^\(METHANE_FLAGS =\)|\1 -I${X11BASE}/include|; \
		 s|^\(METHANE_LIBS =\)|\1 -L${X11BASE}/lib|' \
		${BUILD_WRKSRC}/makefile

do-install:
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/methane ${PREFIX}/bin
	${CHGRP} games ${PREFIX}/bin/methane
	${CHMOD} g+s ${PREFIX}/bin/methane
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} \
		${WRKSRC}/authors \
		${WRKSRC}/history \
		${WRKSRC}/readme \
		${WRKSRC}/todo \
		${DOCSDIR}
	${MKDIR} ${DOCSDIR}/html
	${INSTALL_DATA} ${WRKSRC}/docs/*.gif ${WRKSRC}/docs/*.html \
		${DOCSDIR}/html
.endif

post-install:
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.post.mk>