- Simplify Makefile [1]

- Remove deprecated comments at the top of Makefile

PR:	ports/171358
Submitted by:	nemysis <nemysis at gmx.ch> (maintainer) [1]
This commit is contained in:
Alex Kozlov 2012-09-08 21:02:41 +00:00
parent 0c98711a61
commit 9b6da4b937
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=303930
2 changed files with 10 additions and 35 deletions

View file

@ -1,35 +1,20 @@
# New Ports collection makefile for: simsu
# Date created: 2012-04-21
# Whom: nemysis@gmx.ch
#
# $FreeBSD$
#
PORTNAME= simsu
PORTVERSION= 1.2.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://gottcode.org/${PORTNAME}/
EXTRACT_SUFX= -src.tar.bz2
MAINTAINER= nemysis@gmx.ch
COMMENT= Simsu is a basic Sudoku game
COMMENT= Basic Sudoku game
LICENSE= GPLv3
USE_BZIP2= yes
USE_QT4= moc_build qmake_build rcc_build uic_build iconengines imageformats
INSTALLS_ICONS= yes
HAS_CONFIGURE= yes
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${QMAKE} PREFIX=${PREFIX} ${WRKSRC}/${PORTNAME}.pro
CONFIGURE_ENV+= UIC="${UIC}" QMAKE="${QMAKE}" QMAKESPEC="${QMAKESPEC}"
MAKE_ENV+= QMAKESPEC="${QMAKESPEC}"
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
PORTDATA= *
@ -37,24 +22,13 @@ PORTDOCS= CREDITS ChangeLog
.include <bsd.port.options.mk>
do-install:
# Executable
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX}
# Data
${MKDIR} ${DATADIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "symmetry translations" ${DATADIR})
# Icons
${MKDIR} ${PREFIX}/share/icons/hicolor
.for d in icons
@(cd ${WRKSRC}/${d} && ${COPYTREE_SHARE} hicolor ${PREFIX}/share/icons/)
.endfor
# Pixmaps and Desktop
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}_32.xpm ${PREFIX}/share/pixmaps/
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.desktop ${PREFIX}/share/applications/
post-install:
# Pixmaps
${INSTALL_DATA} ${WRKSRC}/icons/hicolor/48x48/apps/simsu.png ${PREFIX}/share/pixmaps/
# Documentation
.if ${PORT_OPTIONS:MDOCS}

View file

@ -9,5 +9,6 @@ share/icons/hicolor/32x32/apps/simsu.png
share/icons/hicolor/48x48/apps/simsu.png
share/icons/hicolor/64x64/apps/simsu.png
share/icons/hicolor/scalable/apps/simsu.svg
share/pixmaps/simsu.png
share/pixmaps/simsu_32.xpm
@dirrmtry share/applications