2013-09-20 20:35:44 +02:00
|
|
|
# Created by: Eric P. Scott <eps+pbug0703@ana.com>
|
2007-06-16 10:43:57 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lcdtest
|
2010-03-09 23:33:19 +01:00
|
|
|
PORTVERSION= 1.18
|
2015-03-22 00:05:19 +01:00
|
|
|
PORTREVISION= 10
|
2007-06-16 10:43:57 +02:00
|
|
|
CATEGORIES= graphics
|
2014-01-02 20:28:05 +01:00
|
|
|
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}
|
2007-06-16 10:43:57 +02:00
|
|
|
|
2014-04-28 23:31:31 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2007-06-16 10:43:57 +02:00
|
|
|
COMMENT= LCD monitor test pattern generator
|
|
|
|
|
2013-03-12 23:54:45 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2014-04-28 23:31:31 +02:00
|
|
|
RUN_DEPENDS= liberation-fonts-ttf>0:${PORTSDIR}/x11-fonts/liberation-fonts-ttf
|
2007-06-16 10:43:57 +02:00
|
|
|
|
2010-03-09 23:33:19 +01:00
|
|
|
USE_SDL= sdl image ttf
|
2010-01-11 22:31:39 +01:00
|
|
|
|
2010-03-09 23:33:19 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include -DRELEASE=1.18
|
2015-03-25 21:09:42 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lpthread -lSDL -lSDL_image -lSDL_ttf
|
2010-01-11 22:31:39 +01:00
|
|
|
|
2014-01-02 20:28:05 +01:00
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
man/man1/${PORTNAME}.1.gz \
|
|
|
|
share/applications/${PORTNAME}.desktop \
|
|
|
|
share/pixmaps/${PORTNAME}.png
|
2007-06-16 10:43:57 +02:00
|
|
|
|
2014-01-02 20:28:05 +01:00
|
|
|
PORTDOCS= README
|
2013-03-12 23:54:45 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2010-03-09 23:33:19 +01:00
|
|
|
post-patch:
|
2014-04-28 23:31:31 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
2015-03-22 00:05:19 +01:00
|
|
|
's|/usr/share/fonts/liberation/|${LOCALBASE}/share/fonts/Liberation/|' \
|
2010-03-09 23:33:19 +01:00
|
|
|
${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:
|
2014-01-02 20:28:05 +01:00
|
|
|
${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}
|
2007-06-16 10:43:57 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|