summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-11-30 11:16:17 +0000
committernia <nia@pkgsrc.org>2019-11-30 11:16:17 +0000
commite78e3084156b2ece2a4f1b5a27c475f939cf26b9 (patch)
tree448421a77a2dc2cf27dd4ed64d6b4584a991480a /emulators
parentccfba8b6c422836c6aa47e277111f399378a0603 (diff)
downloadpkgsrc-e78e3084156b2ece2a4f1b5a27c475f939cf26b9.tar.gz
dosbox: convert imagemagick to icotool
Diffstat (limited to 'emulators')
-rw-r--r--emulators/dosbox/Makefile30
1 files changed, 13 insertions, 17 deletions
diff --git a/emulators/dosbox/Makefile b/emulators/dosbox/Makefile
index 1239009af6e..cbcc828f60b 100644
--- a/emulators/dosbox/Makefile
+++ b/emulators/dosbox/Makefile
@@ -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 @@ HOMEPAGE= https://www.dosbox.com/
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 @@ SUBST_SED.fixme= -e s,/usr/share/,${PREFIX}/share/,g
# 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 @@ post-install:
.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"