pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/emulators/dosbox



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Jul  3 09:06:37 UTC 2019

Modified Files:
        pkgsrc/emulators/dosbox: Makefile PLIST
Added Files:
        pkgsrc/emulators/dosbox/files: dosbox.desktop

Log Message:
dosbox: Install a .desktop file and icons.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 pkgsrc/emulators/dosbox/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/emulators/dosbox/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/dosbox/files/dosbox.desktop

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/dosbox/Makefile
diff -u pkgsrc/emulators/dosbox/Makefile:1.47 pkgsrc/emulators/dosbox/Makefile:1.48
--- pkgsrc/emulators/dosbox/Makefile:1.47       Tue Jul  2 05:19:11 2019
+++ pkgsrc/emulators/dosbox/Makefile    Wed Jul  3 09:06:37 2019
@@ -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.SunOS+=      -DDISABLE_JOYSTICK
 CPPFLAGS+=             -fPIC
 .endif
 LDFLAGS.SunOS+=                -lsocket
-INSTALLATION_DIRS=     share/doc/dosbox
 
 SUBST_CLASSES+=                fixme
 SUBST_STAGE.fixme=     pre-configure
@@ -29,12 +29,36 @@ SUBST_SED.fixme=    -e s,/usr/share/,${PREF
 # 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"

Index: pkgsrc/emulators/dosbox/PLIST
diff -u pkgsrc/emulators/dosbox/PLIST:1.4 pkgsrc/emulators/dosbox/PLIST:1.5
--- pkgsrc/emulators/dosbox/PLIST:1.4   Sun Jun 14 17:51:03 2009
+++ pkgsrc/emulators/dosbox/PLIST       Wed Jul  3 09:06:37 2019
@@ -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

Added files:

Index: pkgsrc/emulators/dosbox/files/dosbox.desktop
diff -u /dev/null pkgsrc/emulators/dosbox/files/dosbox.desktop:1.1
--- /dev/null   Wed Jul  3 09:06:37 2019
+++ pkgsrc/emulators/dosbox/files/dosbox.desktop        Wed Jul  3 09:06:37 2019
@@ -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