aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/lcdtest/Makefile
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-01-03 03:28:05 +0800
committernemysis <nemysis@FreeBSD.org>2014-01-03 03:28:05 +0800
commita0ecbd39239c3fe9f99b6355675e28ce3353a09b (patch)
tree135e2d321bb5305b67426f84719058fe6b216cd7 /graphics/lcdtest/Makefile
parent5f48f5a8617d465a46a5b841e059285c0b865c1f (diff)
downloadfreebsd-ports-gnome-a0ecbd39239c3fe9f99b6355675e28ce3353a09b.tar.gz
freebsd-ports-gnome-a0ecbd39239c3fe9f99b6355675e28ce3353a09b.tar.zst
freebsd-ports-gnome-a0ecbd39239c3fe9f99b6355675e28ce3353a09b.zip
- Bump PORTREVISION
- Change master sites, icon - Use PLIST_FILES instead of pkg-plist - Support STAGEDIR - Simplify Option DOCS handling Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'graphics/lcdtest/Makefile')
-rw-r--r--graphics/lcdtest/Makefile42
1 files changed, 20 insertions, 22 deletions
diff --git a/graphics/lcdtest/Makefile b/graphics/lcdtest/Makefile
index c164ee50753e..9b723d15f023 100644
--- a/graphics/lcdtest/Makefile
+++ b/graphics/lcdtest/Makefile
@@ -3,9 +3,13 @@
PORTNAME= lcdtest
PORTVERSION= 1.18
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= graphics
-MASTER_SITES= http://www.brouhaha.com/~eric/software/lcdtest/download/
+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= nemysis@FreeBSD.org
COMMENT= LCD monitor test pattern generator
@@ -19,21 +23,15 @@ USE_SDL= sdl image ttf
CFLAGS+= -I${LOCALBASE}/include -DRELEASE=1.18
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lSDL -lSDL_image -lSDL_ttf
-PORTDOCS= README
+PLIST_FILES= bin/${PORTNAME} \
+ man/man1/${PORTNAME}.1.gz \
+ share/applications/${PORTNAME}.desktop \
+ share/pixmaps/${PORTNAME}.png
-MAN1= lcdtest.1
+PORTDOCS= README
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-PLIST_SUB+= PORTDOCS=""
-.else
-PLIST_SUB+= PORTDOCS="@comment "
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/fonts/liberation/|${LOCALBASE}/lib/X11/fonts/Liberation/|' \
${WRKSRC}/src/lcdtest.c
@@ -43,14 +41,14 @@ do-build:
(cd ${WRKSRC}/src && ${CC} ${LDFLAGS} -o lcdtest lcdtest.o)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKSRC}/man/${MAN1} ${MAN1PREFIX}/man/man1/
- ${INSTALL_DATA} ${WRKSRC}/desktop/${PORTNAME}.svg ${PREFIX}/share/pixmaps/
- ${INSTALL_DATA} ${WRKSRC}/desktop/${PORTNAME}.desktop ${PREFIX}/share/applications/
-
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+ ${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>