aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/teddy/Makefile
blob: 0416d4a50030ac6e62dc140a27a0e98f8b4e102f (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
# ex:ts=8
# Ports collection makefile for:    teddy
# Date created:         Apr 13, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   teddy
PORTVERSION=    1.81.5
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   Teddy-${PORTVERSION}.src

MAINTAINER= ports@FreeBSD.org
COMMENT=    Graphics Library for 3D Scenes

LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
        png.5:${PORTSDIR}/graphics/png

USE_ZIP=    yes
USE_SDL=    sdl image mixer
USE_GNOME=  pkgconfig
USE_GL=     yes
GNU_CONFIGURE=  yes
CFLAGS+=    -I${X11BASE}/include ${PTHREAD_CFLAGS}
USE_GMAKE=  yes

PLIST_FILES=    lib/libTeddy.a libdata/pkgconfig/Teddy.pc

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
BROKEN=     "Does not compile on FreeBSD >= 5.x"
.endif

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

do-install:
    @${MKDIR} ${PREFIX}/include/Teddy
    cd ${WRKSRC} && ${TAR} cf - `${FIND} Teddy -name "*.h"` | \
        (cd ${PREFIX}/include ; ${TAR} xfBp -)
    @${FIND} ${PREFIX}/include/Teddy ! -type d | ${XARGS} ${CHMOD} 644
    @${FIND} ${PREFIX}/include/Teddy ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${PREFIX}/include/Teddy -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
    ${INSTALL_DATA} ${WRKSRC}/libTeddy.a ${PREFIX}/lib
    ${INSTALL_DATA} ${WRKSRC}/Teddy.pc ${PREFIX}/libdata/pkgconfig

.include <bsd.port.post.mk>