|
Lines 1-5
Link Here
|
| 1 |
# Ports collection Makefile for: cutemaze |
1 |
# Ports collection Makefile for: cutemaze |
| 2 |
# Date created: 20 April 2012 |
2 |
# Date created: 2012-04-20 |
| 3 |
# Whom: nemysis@gmx.ch |
3 |
# Whom: nemysis@gmx.ch |
| 4 |
# |
4 |
# |
| 5 |
# $FreeBSD: ports/games/cutemaze/Makefile,v 1.1 2012/05/07 15:32:07 crees Exp $ |
5 |
# $FreeBSD: ports/games/cutemaze/Makefile,v 1.1 2012/05/07 15:32:07 crees Exp $ |
|
Lines 7-15
Link Here
|
| 7 |
|
7 |
|
| 8 |
PORTNAME= cutemaze |
8 |
PORTNAME= cutemaze |
| 9 |
PORTVERSION= 1.1.0 |
9 |
PORTVERSION= 1.1.0 |
|
|
10 |
PORTREVISION= 1 |
| 10 |
CATEGORIES= games |
11 |
CATEGORIES= games |
| 11 |
MASTER_SITES= http://gottcode.org/${PORTNAME}/ |
12 |
MASTER_SITES= http://gottcode.org/${PORTNAME}/ |
| 12 |
DISTNAME= ${PORTNAME}-${DISTVERSION}-src |
13 |
EXTRACT_SUFX= -src.tar.bz2 |
| 13 |
|
14 |
|
| 14 |
MAINTAINER= nemysis@gmx.ch |
15 |
MAINTAINER= nemysis@gmx.ch |
| 15 |
COMMENT= Is a simple, top-down game in which mazes are randomly generated |
16 |
COMMENT= Is a simple, top-down game in which mazes are randomly generated |
|
Lines 17-55
Link Here
|
| 17 |
LICENSE= GPLv3 |
18 |
LICENSE= GPLv3 |
| 18 |
|
19 |
|
| 19 |
USE_BZIP2= yes |
20 |
USE_BZIP2= yes |
| 20 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} |
|
|
| 21 |
MAKE_JOBS_SAFE= yes |
| 22 |
USE_QT_VER= 4 |
21 |
USE_QT_VER= 4 |
| 23 |
QT_COMPONENTS= moc_build qmake_build rcc_build uic_build iconengines imageformats |
22 |
QT_COMPONENTS= moc_build qmake_build rcc_build uic_build iconengines imageformats |
| 24 |
USE_GMAKE= yes |
23 |
INSTALLS_ICONS= yes |
| 25 |
HAS_CONFIGURE= yes |
24 |
|
| 26 |
CONFIGURE_ENV+= UIC="${UIC}" QMAKE="${QMAKE}" QMAKESPEC="${QMAKESPEC}" |
25 |
MAKE_JOBS_SAFE= yes |
| 27 |
MAKE_ENV+= QMAKESPEC="${QMAKESPEC}" |
|
|
| 28 |
|
26 |
|
| 29 |
PORTDATA= * |
27 |
PORTDATA= * |
| 30 |
PORTDOCS= ChangeLog README |
28 |
PORTDOCS= ChangeLog README |
| 31 |
INSTALLS_ICONS= yes |
|
|
| 32 |
|
29 |
|
| 33 |
do-configure: |
30 |
do-configure: |
| 34 |
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ |
31 |
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ |
| 35 |
${QMAKE} PREFIX=${PREFIX} ${WRKSRC}/${PORTNAME}.pro |
32 |
${QMAKE} ${QMAKEFLAGS} |
| 36 |
|
33 |
|
| 37 |
do-install: |
34 |
do-install: |
|
|
35 |
# Executable |
| 38 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
36 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
|
|
37 |
|
| 38 |
# Icons |
| 39 |
${MKDIR} ${PREFIX}/share/icons/oxygen |
39 |
${MKDIR} ${PREFIX}/share/icons/oxygen |
| 40 |
.for d in icons |
40 |
.for d in icons |
| 41 |
(cd ${WRKSRC}/${d} && ${COPYTREE_SHARE} oxygen ${PREFIX}/share/icons/) |
41 |
(cd ${WRKSRC}/${d} && ${COPYTREE_SHARE} oxygen ${PREFIX}/share/icons/) |
| 42 |
.endfor |
42 |
.endfor |
|
|
43 |
|
| 44 |
# Pixmaps and Desktop |
| 43 |
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.png ${PREFIX}/share/pixmaps/ |
45 |
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.png ${PREFIX}/share/pixmaps/ |
| 44 |
${MKDIR} ${PREFIX}/share/applications |
46 |
${MKDIR} ${PREFIX}/share/applications |
| 45 |
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.desktop \ |
47 |
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.desktop \ |
| 46 |
${PREFIX}/share/applications/ |
48 |
${PREFIX}/share/applications/ |
|
|
49 |
|
| 50 |
# Data |
| 47 |
.if !defined (NOPORTDATA) |
51 |
.if !defined (NOPORTDATA) |
| 48 |
${MKDIR} ${DATADIR} |
52 |
${MKDIR} ${DATADIR} |
| 49 |
. for d in preview themes |
53 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "preview themes" ${DATADIR}) |
| 50 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}) |
|
|
| 51 |
. endfor |
| 52 |
.endif |
54 |
.endif |
|
|
55 |
|
| 56 |
# Documentation |
| 53 |
.if !defined(NOPORTDOCS) |
57 |
.if !defined(NOPORTDOCS) |
| 54 |
${MKDIR} ${DOCSDIR} |
58 |
${MKDIR} ${DOCSDIR} |
| 55 |
. for f in ${PORTDOCS} |
59 |
. for f in ${PORTDOCS} |