freebsd-ports/devel/sdl_sge/Makefile
Martin Wilke 4de9f43665 - Update maintainer mail adress
PR:		112538
Submitted by:	Jona Joachim<walkingshadow@grummel.net> (maintainer)
2007-05-25 07:46:55 +00:00

65 lines
1.7 KiB
Makefile

# New ports collection makefile for: SGE
# Date created: 30 July 2006
# Whom: Jona Joachim <walkingshadow@grummel.net>
#
# $FreeBSD$
#
PORTNAME= sdl_sge
PORTVERSION= 0.030809
PORTREVISION= 3
CATEGORIES= devel graphics
MASTER_SITES= http://www.etek.chalmers.se/~e8cal1/sge/files/ \
http://www.digitalfanatics.org/cal/sge/files/
DISTNAME= sge030809
MAINTAINER= jaj@hcl-club.lu
COMMENT= A graphic library for the Simple DirectMedia Layer (SDL)
USE_GMAKE= yes
USE_LDCONFIG= yes
OPTIONS= SDL_IMAGE "Enable support for SDL_IMAGE" On \
FREETYPE "Enable FreeType support" On \
DOCS "Install documentation" Off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_FREETYPE)
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
.endif
.if defined(WITHOUT_SDL_IMAGE)
USE_SDL= sdl
.else
USE_SDL= image
.endif
.if !defined(WITH_DOCS)
NOPORTDOCS= yes
.endif
post-patch:
.if defined(WITHOUT_SDL_IMAGE)
@${REINPLACE_CMD} -e 's|#USE_IMG = n|USE_IMG = n|g' ${WRKSRC}/Makefile.conf
.else
@${REINPLACE_CMD} -e 's|#USE_IMG = n|USE_IMG = y|g' ${WRKSRC}/Makefile.conf
.endif
.if defined(WITHOUT_FREETYPE)
@${REINPLACE_CMD} -e 's|#USE_FT = n|USE_FT = n|g' ${WRKSRC}/Makefile.conf
.else
@${REINPLACE_CMD} -e 's|#USE_FT = n|USE_FT = y|g' ${WRKSRC}/Makefile.conf
.endif
@${REINPLACE_CMD} -e 's|PREFIX =PREFIX|PREFIX =${PREFIX}|g' ${WRKSRC}/Makefile.conf
@${REINPLACE_CMD} -e 's|PREFIX_H =PREFIX_H|PREFIX_H =${PREFIX}/include/SDL|g' ${WRKSRC}/Makefile.conf
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile.conf
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_MAN} ${WRKSRC}/docs/* ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_MAN} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>