aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2012-11-29 07:41:21 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2012-11-29 07:41:21 +0800
commit31a9524c917cd428fba296f2742efe249fa57cd4 (patch)
tree60d109965add5938296e743b7bcb37e1e791b2b2
parentc04d10fd4956e97165b3a6f4cba0c544a6c729a8 (diff)
downloadfreebsd-ports-gnome-31a9524c917cd428fba296f2742efe249fa57cd4.tar.gz
freebsd-ports-gnome-31a9524c917cd428fba296f2742efe249fa57cd4.tar.zst
freebsd-ports-gnome-31a9524c917cd428fba296f2742efe249fa57cd4.zip
- Simplify Makefile
PR: 171363 Submitted by: nemysis <nemysis@gmx.ch> (maintainer) Feature safe: yes
-rw-r--r--games/gottet/Makefile27
-rw-r--r--games/gottet/pkg-plist9
2 files changed, 16 insertions, 20 deletions
diff --git a/games/gottet/Makefile b/games/gottet/Makefile
index 705776a19891..688c26109597 100644
--- a/games/gottet/Makefile
+++ b/games/gottet/Makefile
@@ -1,47 +1,34 @@
-# New Ports collection makefile for: gottet
-# Date created: 21 April 2012
-# Whom: nemysis@gmx.ch
-#
+# Created by: nemysis@gmx.ch
# $FreeBSD$
-#
PORTNAME= gottet
PORTVERSION= 1.0.4
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://gottcode.org/${PORTNAME}/
EXTRACT_SUFX= -src.tar.bz2
MAINTAINER= nemysis@gmx.ch
-COMMENT= A Tetris clone
+COMMENT= Tetris clone
LICENSE= GPLv3
USE_BZIP2= yes
USE_QT4= moc_build qmake_build rcc_build iconengines imageformats
-USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
+INSTALLS_ICONS= yes
PORTDOCS= ChangeLog
-PLIST_FILES= bin/${PORTNAME} \
- share/applications/${PORTNAME}.desktop \
- share/pixmaps/${PORTNAME}.png
-PLIST_DIRSTRY= share/applications
-
.include <bsd.port.options.mk>
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
- ${QMAKE} ${QMAKEFLAGS}
-
-do-install:
-# Executable
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX}
-# Pixmaps and Desktop
+post-install:
+# Pixmaps
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.png ${PREFIX}/share/pixmaps/
- ${MKDIR} ${PREFIX}/share/applications
- ${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.desktop ${PREFIX}/share/applications/
# Documentation
.if ${PORT_OPTIONS:MDOCS}
diff --git a/games/gottet/pkg-plist b/games/gottet/pkg-plist
new file mode 100644
index 000000000000..733a98395b41
--- /dev/null
+++ b/games/gottet/pkg-plist
@@ -0,0 +1,9 @@
+bin/gottet
+share/applications/gottet.desktop
+share/icons/hicolor/48x48/apps/gottet.png
+share/pixmaps/gottet.png
+@dirrmtry share/icons/hicolor/48x48/apps
+@dirrmtry share/icons/hicolor/48x48
+@dirrmtry share/icons/hicolor
+@dirrmtry share/icons
+@dirrmtry share/applications