2004-01-24 15:37:16 +01:00
|
|
|
# New ports collection makefile for: Super Methane Brothers
|
|
|
|
# Date created: 22 Jan 2004
|
|
|
|
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
|
|
|
|
#
|
2007-09-14 06:01:51 +02:00
|
|
|
# $Carpetsmoker: ports/games/super_methane_brothers/Makefile,v 1.2 2007/08/02 13:45:02 carpetsmoker Exp $
|
2004-01-24 15:37:16 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= super_methane_brothers
|
2007-09-14 06:01:51 +02:00
|
|
|
PORTVERSION= 1.4.8
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 3
|
2004-01-24 15:37:16 +01:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/methane/Methane%20Stable/Methane%20V${PORTVERSION}
|
2005-04-24 17:45:35 +02:00
|
|
|
DISTNAME= methane-${PORTVERSION}
|
2004-01-24 15:37:16 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2009-08-02 04:51:50 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-01-24 15:37:16 +01:00
|
|
|
COMMENT= A port of the Amiga platform game of the same name
|
|
|
|
|
2007-09-14 06:01:51 +02:00
|
|
|
LIB_DEPENDS= clanCore-0.8:${PORTSDIR}/devel/clanlib \
|
2004-01-24 15:37:16 +01:00
|
|
|
mikmod:${PORTSDIR}/audio/libmikmod
|
|
|
|
|
2007-09-14 06:01:51 +02:00
|
|
|
USE_GMAKE= yes
|
2004-01-24 15:37:16 +01:00
|
|
|
MAKEFILE= makefile
|
2007-09-14 06:01:51 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/source/linux
|
2004-01-24 15:37:16 +01:00
|
|
|
|
2007-09-14 06:01:51 +02:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include/ClanLib-0.8
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/ClanLib-0.8
|
2004-01-24 15:37:16 +01:00
|
|
|
|
2005-04-24 17:45:35 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
2005-07-02 15:06:48 +02:00
|
|
|
's|g++|${CXX}|; s|gcc|${CXX}|; \
|
2007-09-14 06:01:51 +02:00
|
|
|
s|^\(METHANE_FLAGS =\)|\1 ${CPPFLAGS}|; \
|
|
|
|
s|^\(METHANE_LIBS =\)|\1 ${LDFLAGS}|' \
|
2005-04-24 17:45:35 +02:00
|
|
|
${BUILD_WRKSRC}/makefile
|
2004-01-24 15:37:16 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/methane ${PREFIX}/bin
|
2005-04-24 17:45:35 +02:00
|
|
|
${CHGRP} games ${PREFIX}/bin/methane
|
|
|
|
${CHMOD} g+s ${PREFIX}/bin/methane
|
2004-01-24 15:37:16 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}/html
|
2007-09-14 06:01:51 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} authors history readme todo ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/docs && ${INSTALL_DATA} *.gif *.html ${DOCSDIR}/html
|
2004-01-24 15:37:16 +01:00
|
|
|
.endif
|
|
|
|
|
2005-04-24 17:45:35 +02:00
|
|
|
post-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
2007-04-15 23:06:14 +02:00
|
|
|
.include <bsd.port.mk>
|