aboutsummaryrefslogtreecommitdiff
path: root/graphics/lcdtest/Makefile
blob: f4785f0cc4b687705635b25996d98aa6090e7f1d (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
# New ports collection makefile for:	lcdtest
# Date created:			23 Mar 2007
# Whom:				Eric P. Scott <eps+pbug0703@ana.com>
#
# $FreeBSD$
#

PORTNAME=	lcdtest
PORTVERSION=	1.04
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://www.brouhaha.com/~eric/software/lcdtest/download/ \
		CENKES

MAINTAINER=	ports@FreeBSD.org
COMMENT=	LCD monitor test pattern generator

BUILD_DEPENDS=	pngtopnm:${PORTSDIR}/graphics/netpbm

USE_GMAKE=	yes
USE_SDL=	sdl image
CFLAGS=		-I${LOCALBASE}/include
LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
MAKE_ENV=	LDFLAGS="${LDFLAGS}"
MAKE_ARGS=	-o SDL/SDL.h -o SDL/SDL_image.h
PLIST_FILES=	bin/lcdtest
PORTDOCS=	README

post-patch:
	@${REINPLACE_CMD} -e '/^CFLAGS =/s|=|+=|' ${WRKSRC}/Makefile

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/lcdtest ${PREFIX}/bin/
.ifndef NOPORTDOCS
	@${INSTALL} -d ${DOCSDIR}/
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}/
.endif

.include <bsd.port.mk>