aboutsummaryrefslogtreecommitdiffstats
path: root/games/adgali/Makefile
blob: 2000235632bbd8ddd6f59907c7d99c9257b15d12 (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
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=   adgali
PORTVERSION=    0.2.4
PORTREVISION=   15
CATEGORIES= games devel
MASTER_SITES=   http://adgali.apiou.org/download/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Open source game library useful for 2D game development

LICENSE=    GPLv2 # or later
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libpng.so:${PORTSDIR}/graphics/png \
        libtiff.so:${PORTSDIR}/graphics/tiff \
        libfreetype.so:${PORTSDIR}/print/freetype2

USES=       execinfo gmake jpeg libtool tar:bzip2
USE_LDCONFIG=   yes
USE_SDL=    sdl
USE_XORG=   xpm
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-compile-optim=no
INSTALL_TARGET= install-strip

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -lexecinfo

OPTIONS_DEFINE= DOCS

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC}/doc/html && ${FIND} . | ${CPIO} -pdm -L -R \
        ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>