pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/dosbox dosbox: Install a .desktop file and i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e51ad5d01b91
branches: trunk
changeset: 335938:e51ad5d01b91
user: nia <nia%pkgsrc.org@localhost>
date: Wed Jul 03 09:06:37 2019 +0000
description:
dosbox: Install a .desktop file and icons.
Bump PKGREVISION.
diffstat:
emulators/dosbox/Makefile | 28 ++++++++++++++++++++++++++--
emulators/dosbox/PLIST | 8 +++++++-
emulators/dosbox/files/dosbox.desktop | 18 ++++++++++++++++++
3 files changed, 51 insertions(+), 3 deletions(-)
diffs (95 lines):
diff -r 2a9397868ac1 -r e51ad5d01b91 emulators/dosbox/Makefile
--- a/emulators/dosbox/Makefile Wed Jul 03 08:25:47 2019 +0000
+++ b/emulators/dosbox/Makefile Wed Jul 03 09:06:37 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.47 2019/07/02 05:19:11 nia Exp $
+# $NetBSD: Makefile,v 1.48 2019/07/03 09:06:37 nia Exp $
DISTNAME= dosbox-0.74-3
PKGNAME= dosbox-0.74.3
+PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dosbox/}
@@ -19,7 +20,6 @@
CPPFLAGS+= -fPIC
.endif
LDFLAGS.SunOS+= -lsocket
-INSTALLATION_DIRS= share/doc/dosbox
SUBST_CLASSES+= fixme
SUBST_STAGE.fixme= pre-configure
@@ -29,12 +29,36 @@
# dynamic recompiler enabled by default
NOT_PAX_MPROTECT_SAFE+= bin/dosbox
+ICON_SIZES= 256 48 32 24 16
+ICON_DIR= share/icons/hicolor
+
+TOOL_DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
+
+INSTALLATION_DIRS+= share/applications
+INSTALLATION_DIRS+= share/doc/dosbox
+.for size in ${ICON_SIZES}
+INSTALLATION_DIRS+= ${ICON_DIR}/${size}x${size}/apps
+.endfor
+
+post-extract:
+ convert ${WRKSRC}/src/dosbox.ico[0] ${WRKDIR}/dosbox-256.png
+ convert ${WRKSRC}/src/dosbox.ico[1] ${WRKDIR}/dosbox-48.png
+ convert ${WRKSRC}/src/dosbox.ico[2] ${WRKDIR}/dosbox-32.png
+ convert ${WRKSRC}/src/dosbox.ico[3] ${WRKDIR}/dosbox-24.png
+ convert ${WRKSRC}/src/dosbox.ico[4] ${WRKDIR}/dosbox-16.png
+
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/dosbox
+ ${INSTALL_DATA} ${FILESDIR}/dosbox.desktop ${DESTDIR}${PREFIX}/share/applications
+.for size in ${ICON_SIZES}
+ ${INSTALL_DATA} ${WRKDIR}/dosbox-${size}.png \
+ ${DESTDIR}${PREFIX}/${ICON_DIR}/${size}x${size}/apps/dosbox.png
+.endfor
.include "options.mk"
.include "../../audio/SDL_sound/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../net/SDL_net/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 2a9397868ac1 -r e51ad5d01b91 emulators/dosbox/PLIST
--- a/emulators/dosbox/PLIST Wed Jul 03 08:25:47 2019 +0000
+++ b/emulators/dosbox/PLIST Wed Jul 03 09:06:37 2019 +0000
@@ -1,4 +1,10 @@
-@comment $NetBSD: PLIST,v 1.4 2009/06/14 17:51:03 joerg Exp $
+@comment $NetBSD: PLIST,v 1.5 2019/07/03 09:06:37 nia Exp $
bin/dosbox
man/man1/dosbox.1
+share/applications/dosbox.desktop
share/doc/dosbox/README
+share/icons/hicolor/16x16/apps/dosbox.png
+share/icons/hicolor/24x24/apps/dosbox.png
+share/icons/hicolor/256x256/apps/dosbox.png
+share/icons/hicolor/32x32/apps/dosbox.png
+share/icons/hicolor/48x48/apps/dosbox.png
diff -r 2a9397868ac1 -r e51ad5d01b91 emulators/dosbox/files/dosbox.desktop
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/dosbox/files/dosbox.desktop Wed Jul 03 09:06:37 2019 +0000
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=DOSBox
+GenericName=DOS Emulator
+Comment=Run old DOS applications
+Comment[ca]=Executeu antigues aplicacions DOS
+Comment[de]=Ein Emulator für alte DOS Programme
+Comment[es]=Un emulador para ejecutar antiguas aplicaciones DOS
+Comment[nl]=Een simulator om oude DOS-spellen te spelen
+Comment[ru]=Ð?апÑ?Ñ?к Ñ?Ñ?аÑ?Ñ?Ñ? DOS-пÑ?иложений
+Comment[it]=Un emulatore per far girare vecchi giochi DOS
+Comment[ua]=Ð?апÑ?Ñ?к Ñ?Ñ?аÑ?иÑ? DOS-заÑ?Ñ?оÑ?Ñ?ванÑ?
+Icon=dosbox
+Exec=dosbox
+Terminal=false
+Categories=Game;Emulator;
+Keywords=DOS Emulator;
Home |
Main Index |
Thread Index |
Old Index