graphics/founts: minor fixes

- Trim Makefile header [1]
- Remove leading article from COMMENT [1]
- Add DOCS option [1]
- Install desktop entry/icon [1]
- Fix build with clang

PR:		ports/179948
Submitted by:	nemysis <nemysis@gmx.ch> [1] (maintainer)
This commit is contained in:
William Grzybowski 2013-06-25 12:47:07 +00:00
parent 44bc15ee49
commit b0ff0b23bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321741
2 changed files with 21 additions and 15 deletions

View file

@ -1,27 +1,34 @@
# New Ports collection makefile for: founts
# Date created: 2012-05-01
# Whom: nemysis@gmx.ch
#
# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$
#
PORTNAME= founts
PORTVERSION= 12
PORTREVISION= 1
CATEGORIES= graphics games
MASTER_SITES= http://www.linuxmotors.com/founts/downloads/
EXTRACT_SUFX= .tgz
MASTER_SITES= http://www.linuxmotors.com/founts/downloads/ \
SF/nemysisfreebsdp/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}.tgz \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}.tgz
MAINTAINER= nemysis@gmx.ch
COMMENT= A demo/program inspired by Erics cascade
COMMENT= Demo/program inspired by Erics cascade
LICENSE= GPLv2
USE_SDL= sdl
CFLAGS= -Wno-return-type
PLIST_FILES= bin/${PORTNAME}
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png
PORTDOCS= Changelog README
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Founts" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Graphics;Game;" false
.include <bsd.port.options.mk>
do-build:
@ -29,15 +36,12 @@ do-build:
-lm `${SDL_CONFIG} --cflags --libs` founts.c
do-install:
# Executable
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps
# Documentation
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
. endfor
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>

View file

@ -1,2 +1,4 @@
SHA256 (founts-12.tgz) = 46da7a97eef91c162c946914dc81ab523963b4a5faebdf2bfd8482f32a485a8a
SIZE (founts-12.tgz) = 21447
SHA256 (founts.png) = a8e1dd4ddd78fef3b60e858d4fdc38cdb1388c999031f9306849a09ae0a977d6
SIZE (founts.png) = 6266