- 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$ # $FreeBSD$
#
PORTNAME= simsu PORTNAME= simsu
PORTVERSION= 1.2.2 PORTVERSION= 1.2.2
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= games CATEGORIES= games
MASTER_SITES= http://gottcode.org/${PORTNAME}/ MASTER_SITES= http://gottcode.org/${PORTNAME}/
EXTRACT_SUFX= -src.tar.bz2 EXTRACT_SUFX= -src.tar.bz2
MAINTAINER= nemysis@gmx.ch MAINTAINER= nemysis@gmx.ch
COMMENT= Simsu is a basic Sudoku game COMMENT= Basic Sudoku game
LICENSE= GPLv3 LICENSE= GPLv3
USE_BZIP2= yes
USE_QT4= moc_build qmake_build rcc_build uic_build iconengines imageformats USE_QT4= moc_build qmake_build rcc_build uic_build iconengines imageformats
INSTALLS_ICONS= yes 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 MAKE_JOBS_SAFE= yes
PORTDATA= * PORTDATA= *
@ -37,24 +22,13 @@ PORTDOCS= CREDITS ChangeLog
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
do-install: do-configure:
# Executable @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin ${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX}
# Data post-install:
${MKDIR} ${DATADIR} # Pixmaps
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "symmetry translations" ${DATADIR}) ${INSTALL_DATA} ${WRKSRC}/icons/hicolor/48x48/apps/simsu.png ${PREFIX}/share/pixmaps/
# 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/
# Documentation # Documentation
.if ${PORT_OPTIONS:MDOCS} .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/48x48/apps/simsu.png
share/icons/hicolor/64x64/apps/simsu.png share/icons/hicolor/64x64/apps/simsu.png
share/icons/hicolor/scalable/apps/simsu.svg share/icons/hicolor/scalable/apps/simsu.svg
share/pixmaps/simsu.png
share/pixmaps/simsu_32.xpm share/pixmaps/simsu_32.xpm
@dirrmtry share/applications @dirrmtry share/applications