|
Lines 7-60
Link Here
|
| 7 |
|
7 |
|
| 8 |
PORTNAME= simsu |
8 |
PORTNAME= simsu |
| 9 |
PORTVERSION= 1.2.2 |
9 |
PORTVERSION= 1.2.2 |
| 10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
| 11 |
CATEGORIES= games |
11 |
CATEGORIES= games |
| 12 |
MASTER_SITES= http://gottcode.org/${PORTNAME}/ |
12 |
MASTER_SITES= http://gottcode.org/${PORTNAME}/ |
| 13 |
EXTRACT_SUFX= -src.tar.bz2 |
13 |
DISTNAME= ${PORTNAME}-${DISTVERSION}-src |
| 14 |
|
14 |
|
| 15 |
MAINTAINER= nemysis@gmx.ch |
15 |
MAINTAINER= nemysis@gmx.ch |
| 16 |
COMMENT= Simsu is a basic Sudoku game |
16 |
COMMENT= Simsu is a basic Sudoku game |
| 17 |
|
17 |
|
| 18 |
LICENSE= GPLv3 |
18 |
LICENSE= GPLv3 |
| 19 |
|
19 |
|
| 20 |
USE_QT4= moc_build qmake_build rcc_build uic_build iconengines imageformats |
20 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
| 21 |
|
21 |
|
|
|
22 |
USE_BZIP2= yes |
| 23 |
USE_QT4= moc_build qmake_build rcc_build uic_build iconengines imageformats |
| 22 |
INSTALLS_ICONS= yes |
24 |
INSTALLS_ICONS= yes |
| 23 |
HAS_CONFIGURE= yes |
25 |
MAKE_JOBS_SAFE= yes |
| 24 |
|
26 |
|
| 25 |
do-configure: |
27 |
do-configure: |
| 26 |
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ |
28 |
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ |
| 27 |
${QMAKE} PREFIX=${PREFIX} ${WRKSRC}/${PORTNAME}.pro |
29 |
${QMAKE} PREFIX=${PREFIX} ${WRKSRC}/${PORTNAME}.pro |
| 28 |
|
30 |
|
| 29 |
CONFIGURE_ENV+= UIC="${UIC}" QMAKE="${QMAKE}" QMAKESPEC="${QMAKESPEC}" |
|
|
| 30 |
MAKE_ENV+= QMAKESPEC="${QMAKESPEC}" |
| 31 |
|
| 32 |
USE_GMAKE= yes |
| 33 |
MAKE_JOBS_SAFE= yes |
| 34 |
|
| 35 |
PORTDATA= * |
31 |
PORTDATA= * |
| 36 |
PORTDOCS= CREDITS ChangeLog |
32 |
PORTDOCS= CREDITS ChangeLog |
| 37 |
|
33 |
|
| 38 |
.include <bsd.port.options.mk> |
34 |
.include <bsd.port.options.mk> |
| 39 |
|
35 |
|
| 40 |
do-install: |
36 |
post-install: |
| 41 |
# Executable |
37 |
# Pixmaps |
| 42 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
38 |
${INSTALL_DATA} ${WRKSRC}/icons/hicolor/48x48/apps/simsu.png ${PREFIX}/share/pixmaps/ |
| 43 |
|
|
|
| 44 |
# Data |
| 45 |
${MKDIR} ${DATADIR} |
| 46 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "symmetry translations" ${DATADIR}) |
| 47 |
|
| 48 |
# Icons |
| 49 |
${MKDIR} ${PREFIX}/share/icons/hicolor |
| 50 |
.for d in icons |
| 51 |
@(cd ${WRKSRC}/${d} && ${COPYTREE_SHARE} hicolor ${PREFIX}/share/icons/) |
| 52 |
.endfor |
| 53 |
|
| 54 |
# Pixmaps and Desktop |
| 55 |
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}_32.xpm ${PREFIX}/share/pixmaps/ |
| 56 |
${MKDIR} ${PREFIX}/share/applications |
| 57 |
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.desktop ${PREFIX}/share/applications/ |
| 58 |
|
39 |
|
| 59 |
# Documentation |
40 |
# Documentation |
| 60 |
.if ${PORT_OPTIONS:MDOCS} |
41 |
.if ${PORT_OPTIONS:MDOCS} |