aboutsummaryrefslogtreecommitdiffstats
path: root/games/gcompris2/Makefile
blob: 7db4d2d094cf7f743bc35203cca333eaf2e06f52 (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
# New ports collection makefile for:    gcompris2
# Date created:             23 April 2003
# Whom:                 Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
#
# $FreeBSD$
#

PORTNAME=   gcompris2
PORTVERSION=    7.0.1
PORTREVISION=   1
CATEGORIES= games gnome
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gcompris
DISTNAME=   gcompris-${PORTVERSION}

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Gnome2 educational games and activities for kids ages 2 to 10

BUILD_DEPENDS=  texi2html:${PORTSDIR}/textproc/texi2html \
        gnuchess:${PORTSDIR}/games/gnuchess \
        ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-PySQLite2
LIB_DEPENDS=    vorbis.3:${PORTSDIR}/audio/libvorbis \
        ao.3:${PORTSDIR}/audio/libao \
        assetml.0:${PORTSDIR}/devel/libassetml \
        sqlite3.8:${PORTSDIR}/databases/sqlite3
RUN_DEPENDS=    gnuchess:${PORTSDIR}/games/gnuchess \
        ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-PySQLite2

USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_LIBTOOL_VER=15
USE_PYTHON= yes
USE_SDL=    mixer
USE_GNOME=  gnomehack intlhack gnomeprefix libgnomeui pygnome2
INSTALLS_SHLIB= yes
USE_REINPLACE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib" \
        LIBS="${PTHREAD_LIBS} -lm"

INFO=       gcompris

.if defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \
        ${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT}
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
IGNORE= Does not build on 4.X
.endif

post-patch:
    @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
        's|-DGNOME_DISABLE_DEPRECATED||g'

.include <bsd.port.post.mk>