aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/teddy/Makefile
blob: aed94e07f6d24c7c2c398d097a0d34dcc5045d57 (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
# 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

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.mk>