1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/games/chroma/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

56 lines
1.1 KiB
Makefile

# New ports collection makefile for: chroma
# Date created: 28 Jan 2010
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= chroma
PORTVERSION= 1.08
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.level7.org.uk/chroma/download/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Abstract puzzle game
USE_BZIP2= yes
USE_GETTEXT= yes
MAKE_JOBS_SAFE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-lintl"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= README
OPTIONS= SDL "Enable SDL interface" on \
CURSES "Enable curses interface" on
.include <bsd.port.options.mk>
.if defined(WITHOUT_CURSES)
CONFIGURE_ARGS+=--disable-curses
PLIST_SUB+= CURSES="@comment "
.else
PLIST_SUB+= CURSES=""
.endif
.if defined(WITHOUT_SDL)
CONFIGURE_ARGS+=--disable-sdl
PLIST_SUB+= SDL="@comment "
.else
USE_SDL= sdl image
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
PLIST_SUB+= SDL=""
.endif
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
.endif
.include <bsd.port.mk>