aboutsummaryrefslogtreecommitdiff
path: root/devel/bennugd-modules/Makefile
blob: fb135b2a62143df3971c1fdafe56bc1cf805bdeb (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
PORTNAME=	modules
PORTVERSION=	svn20130912
PORTREVISION=	4
CATEGORIES=	devel games
MASTER_SITES=	http://mirror.amdmi3.ru/distfiles/
PKGNAMEPREFIX=	bennugd-
DISTNAME=	bennugd-${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	High level open source game development suite, modules

LIB_DEPENDS=	libbgdrtm.so:devel/bennugd-core \
		libpng.so:graphics/png

USES=		dos2unix libtool pkgconfig sdl tar:bzip2
USE_SDL=	sdl mixer
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--libdir="${PREFIX}/lib/bennugd"
DOS2UNIX_GLOB=	*.c
INSTALL_TARGET=	install-strip

WRKSRC=		${WRKDIR}/bennugd/${PORTNAME}

post-extract:
	@${CHMOD} a+x ${WRKSRC}/configure ${WRKSRC}/install-sh

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
		${WRKSRC}/configure

.include <bsd.port.mk>