aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/lcdtest/Makefile
blob: c782aab77d3afa29156e3cd3e00bc3895be474e6 (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
48
49
50
51
52
53
54
# Created by: Eric P. Scott <eps+pbug0703@ana.com>
# $FreeBSD$

PORTNAME=   lcdtest
PORTVERSION=    1.18
PORTREVISION=   9
CATEGORIES= graphics
MASTER_SITES=   http://www.brouhaha.com/~eric/software/lcdtest/download/ \
        SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES=  ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
        ${PORTNAME}.png:icons
EXTRACT_ONLY=   ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}

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

LICENSE=    GPLv3

RUN_DEPENDS=    liberation-fonts-ttf>0:${PORTSDIR}/x11-fonts/liberation-fonts-ttf

USE_SDL=    sdl image ttf

CFLAGS+=    -I${LOCALBASE}/include -DRELEASE=1.18
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lSDL -lSDL_image -lSDL_ttf

PLIST_FILES=    bin/${PORTNAME} \
        man/man1/${PORTNAME}.1.gz \
        share/applications/${PORTNAME}.desktop \
        share/pixmaps/${PORTNAME}.png

PORTDOCS=   README
OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e \
        's|/usr/share/fonts/liberation/|${LOCALBASE}/lib/X11/fonts/Liberation/|' \
        ${WRKSRC}/src/lcdtest.c

do-build:
    (cd ${WRKSRC}/src && ${CC} ${CFLAGS} -o lcdtest.o -c lcdtest.c)
    (cd ${WRKSRC}/src && ${CC} ${LDFLAGS} -o lcdtest lcdtest.o)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
    ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/
    ${INSTALL_DATA} ${WRKSRC}/desktop/${PORTNAME}.desktop \
        ${STAGEDIR}${DESKTOPDIR}

    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
+0800'>2010-06-081-1/+3 * Unbreak on i386skreuzer2010-04-271-1/+1 * Set the distcc user's shell to /usr/sbin/nologinskreuzer2010-04-201-1/+1 * Adopt portskreuzer2010-04-201-1/+1 * Update to 3.1skreuzer2010-04-204-20/+17 * Begin the process of deprecating sysutils/rc_subr bydougb2010-03-271-1/+1 * Remove gcc 295 32 33 40 supportahze2009-08-081-3/+4 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-1/+0 * Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-201-1/+1 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * Pass PTHREAD_LIBS to configure script to fix segfault when used with avahiahze2008-01-121-2/+3