pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/dosbox dosbox: convert imagemagick to icotool



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a7842aa35e8
branches:  trunk
changeset: 405506:7a7842aa35e8
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Nov 30 11:16:17 2019 +0000

description:
dosbox: convert imagemagick to icotool

diffstat:

 emulators/dosbox/Makefile |  30 +++++++++++++-----------------
 1 files changed, 13 insertions(+), 17 deletions(-)

diffs (64 lines):

diff -r 3660932a875a -r 7a7842aa35e8 emulators/dosbox/Makefile
--- a/emulators/dosbox/Makefile Sat Nov 30 11:02:39 2019 +0000
+++ b/emulators/dosbox/Makefile Sat Nov 30 11:16:17 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2019/07/03 09:06:37 nia Exp $
+# $NetBSD: Makefile,v 1.49 2019/11/30 11:16:17 nia Exp $
 
 DISTNAME=      dosbox-0.74-3
 PKGNAME=       dosbox-0.74.3
@@ -11,6 +11,8 @@
 COMMENT=       Multi-platform DOS emulator using SDL
 LICENSE=       gnu-gpl-v2
 
+TOOL_DEPENDS+= icoutils-[0-9]*:../../graphics/icoutils
+
 USE_LANGUAGES=         c c++
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS.Darwin+=        --disable-dynrec
@@ -29,30 +31,23 @@
 # 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
+       ${PREFIX}/bin/icotool -x -i 1 ${WRKSRC}/src/dosbox.ico -o ${WRKDIR}/256.png
+       ${PREFIX}/bin/icotool -x -i 2 ${WRKSRC}/src/dosbox.ico -o ${WRKDIR}/48.png
+       ${PREFIX}/bin/icotool -x -i 3 ${WRKSRC}/src/dosbox.ico -o ${WRKDIR}/32.png
+       ${PREFIX}/bin/icotool -x -i 4 ${WRKSRC}/src/dosbox.ico -o ${WRKDIR}/24.png
+       ${PREFIX}/bin/icotool -x -i 5 ${WRKSRC}/src/dosbox.ico -o ${WRKDIR}/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
+.for s in 256 48 32 24 16
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps
+       ${INSTALL_DATA} ${WRKDIR}/${s}.png \
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/dosbox.png
 .endfor
 
 .include "options.mk"
@@ -61,4 +56,5 @@
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../net/SDL_net/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index