freebsd-ports/graphics/teddy/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

54 lines
1.3 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: teddy
# Date created: Apr 13, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= teddy
PORTVERSION= 1.81.5
PORTREVISION= 1
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>