diff --git a/games/micropolis/Makefile b/games/micropolis/Makefile index 41f74a732f2..89c31c9322c 100644 --- a/games/micropolis/Makefile +++ b/games/micropolis/Makefile @@ -1,4 +1,5 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2008/01/18 03:36:32 deanna Exp $ +# $OpenBSD: Makefile,v 1.2 2008/01/19 21:21:55 ian Exp $ + COMMENT= city-building simulation DISTNAME= micropolis-activity-source @@ -20,7 +21,8 @@ PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes USE_X11= Yes -RUN_DEPENDS= ::audio/esound +RUN_DEPENDS= ::audio/esound \ + ::devel/desktop-file-utils WANTLIB= c m X11 Xext Xpm @@ -52,5 +54,9 @@ do-install: find manual -type f -exec ${INSTALL_DATA} {} ${PREFIX}/share/doc/micropolis/{} \; @${INSTALL_SCRIPT} ${WRKSRC}/Micropolis ${PREFIX}/bin/micropolis @${INSTALL_PROGRAM} ${WRKSRC}/src/sim/sim ${PREFIX}/libexec/sim + @${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/ + @${INSTALL_DATA} ${WRKSRC}/Micropolis.png ${PREFIX}/share/pixmaps/micropolis.png + @${INSTALL_DATA_DIR} ${PREFIX}/share/applications + @${INSTALL_DATA} ${FILESDIR}/micropolis.desktop ${PREFIX}/share/applications .include diff --git a/games/micropolis/files/micropolis.desktop b/games/micropolis/files/micropolis.desktop new file mode 100644 index 00000000000..2ba91cc3d5f --- /dev/null +++ b/games/micropolis/files/micropolis.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Encoding=UTF-8 +Name=Micropolis +GenericName=Micropolis City Simulation Game +Comment=City simulation game, open sourced from original SimCity(tm) +Icon=micropolis.png +Exec=micropolis +Terminal=false +StartupNotify=false +Categories=Game;Simulation; diff --git a/games/micropolis/pkg/PLIST b/games/micropolis/pkg/PLIST index adad2b66d93..1c93212ad84 100644 --- a/games/micropolis/pkg/PLIST +++ b/games/micropolis/pkg/PLIST @@ -1,6 +1,8 @@ -@comment $OpenBSD: PLIST,v 1.1.1.1 2008/01/18 03:36:32 deanna Exp $ +@comment $OpenBSD: PLIST,v 1.2 2008/01/19 21:21:55 ian Exp $ bin/micropolis libexec/sim +share/applications/ +share/applications/micropolis.desktop share/doc/micropolis/ share/doc/micropolis/manual/ share/doc/micropolis/manual/Ask.html @@ -570,3 +572,7 @@ share/micropolis/res/wscen.tcl share/micropolis/res/wscen_old.tcl share/micropolis/res/wscen_older.tcl share/micropolis/res/wsplash.tcl +@exec %D/bin/update-desktop-database +@unexec %D/bin/update-desktop-database +share/pixmaps/ +share/pixmaps/micropolis.png