- remove DISTNAME, USE_GMAKE, HAS_CONFIGURE, MAKE_ENV
- simplify do-configure, .if !defined (NOPORTDATA) block - use dirrmtry for share/applications, share/icons/oxygen PR: ports/168175 Submitted by: nemysis <nemysis@gmx.ch> (maintainer) Approved by: eadler, itetcu (mentors, implicit)
This commit is contained in:
parent
745d6972ee
commit
9a3bdf263f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=297163
2 changed files with 22 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
|||
# Ports collection Makefile for: cutemaze
|
||||
# Date created: 20 April 2012
|
||||
# Date created: 2012-04-20
|
||||
# Whom: nemysis@gmx.ch
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
@ -7,9 +7,10 @@
|
|||
|
||||
PORTNAME= cutemaze
|
||||
PORTVERSION= 1.1.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://gottcode.org/${PORTNAME}/
|
||||
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
|
||||
EXTRACT_SUFX= -src.tar.bz2
|
||||
|
||||
MAINTAINER= nemysis@gmx.ch
|
||||
COMMENT= Is a simple, top-down game in which mazes are randomly generated
|
||||
|
@ -17,39 +18,42 @@ COMMENT= Is a simple, top-down game in which mazes are randomly generated
|
|||
LICENSE= GPLv3
|
||||
|
||||
USE_BZIP2= yes
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
||||
MAKE_JOBS_SAFE= yes
|
||||
USE_QT_VER= 4
|
||||
QT_COMPONENTS= moc_build qmake_build rcc_build uic_build iconengines imageformats
|
||||
USE_GMAKE= yes
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ENV+= UIC="${UIC}" QMAKE="${QMAKE}" QMAKESPEC="${QMAKESPEC}"
|
||||
MAKE_ENV+= QMAKESPEC="${QMAKESPEC}"
|
||||
INSTALLS_ICONS= yes
|
||||
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
PORTDATA= *
|
||||
PORTDOCS= ChangeLog README
|
||||
INSTALLS_ICONS= yes
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
||||
${QMAKE} PREFIX=${PREFIX} ${WRKSRC}/${PORTNAME}.pro
|
||||
${QMAKE} ${QMAKEFLAGS}
|
||||
|
||||
do-install:
|
||||
# Executable
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
||||
|
||||
# Icons
|
||||
${MKDIR} ${PREFIX}/share/icons/oxygen
|
||||
.for d in icons
|
||||
(cd ${WRKSRC}/${d} && ${COPYTREE_SHARE} oxygen ${PREFIX}/share/icons/)
|
||||
.endfor
|
||||
|
||||
# Pixmaps and Desktop
|
||||
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.png ${PREFIX}/share/pixmaps/
|
||||
${MKDIR} ${PREFIX}/share/applications
|
||||
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.desktop \
|
||||
${PREFIX}/share/applications/
|
||||
|
||||
# Data
|
||||
.if !defined (NOPORTDATA)
|
||||
${MKDIR} ${DATADIR}
|
||||
. for d in preview themes
|
||||
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
|
||||
. endfor
|
||||
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "preview themes" ${DATADIR})
|
||||
.endif
|
||||
|
||||
# Documentation
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
. for f in ${PORTDOCS}
|
||||
|
|
|
@ -29,9 +29,9 @@ share/icons/oxygen/scalable/media-playback-pause.svgz
|
|||
share/icons/oxygen/scalable/zoom-in.svgz
|
||||
share/icons/oxygen/scalable/zoom-out.svgz
|
||||
share/pixmaps/cutemaze.png
|
||||
@dirrm share/icons/oxygen/scalable
|
||||
@dirrm share/icons/oxygen/22x22
|
||||
@dirrm share/icons/oxygen/16x16
|
||||
@dirrm share/icons/oxygen
|
||||
@dirrmtry share/icons/oxygen/scalable
|
||||
@dirrmtry share/icons/oxygen/22x22
|
||||
@dirrmtry share/icons/oxygen/16x16
|
||||
@dirrmtry share/icons/oxygen
|
||||
@dirrmtry share/icons
|
||||
@dirrm share/applications
|
||||
@dirrmtry share/applications
|
||||
|
|
Loading…
Reference in a new issue