freebsd-ports/sysutils/unetbootin/Makefile
Alexey Dokuchaev 15ac174774 - Resurrect and apply unofficial patch from Gentoo to build against
Qt version 5 (this breaks unetbootin::lstFtpDirFiles() due to
  https://bugreports.qt.io/browse/QTBUG-26294)
- Comment out all sources that require FTP LIST command
- Don't wait until file is fully downloaded before dumping it on disk
- Fix some QNetworkReply/QFile resource freeing bugs
- Delete unetbootin::dlprogressupdate64() because it's never used
- Fix some slot warnings while here

Patches by:	Valeriy Malov <jazzvoid@gmail.com>
Obtained from:	https://bugs.gentoo.org/show_bug.cgi?id=644360
2019-03-22 13:37:04 +00:00

47 lines
1.4 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= unetbootin
PORTVERSION= 661
CATEGORIES= sysutils
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTVERSION}/
DISTNAME= ${PORTNAME}-source-${PORTVERSION}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Bootable Live USB creator for various Linux distributions
LICENSE= GPLv2+
RUN_DEPENDS= 7z:archivers/p7zip \
syslinux:sysutils/syslinux \
mke2fs:sysutils/e2fsprogs
USES= qt:5
USE_QT= buildtools_build linguisttools_build qmake_build \
core gui network widgets
QMAKE_ARGS= DEFINES+=LOCALBASE=\\\\\\\"${LOCALBASE}\\\\\\\"
NO_WRKSUBDIR= yes
post-patch:
@${REINPLACE_CMD} -e 's,/usr/,${PREFIX}/,g' \
${WRKSRC}/main.cpp
do-configure:
${LUPDATE} ${WRKSRC}/unetbootin.pro
${LRELEASE} ${WRKSRC}/unetbootin.pro
cd ${WRKSRC} && ${QMAKE_ENV} ${QMAKE} ${QMAKE_ARGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unetbootin ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/unetbootin.xpm \
${STAGEDIR}${PREFIX}/share/pixmaps
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/unetbootin_*.qm ${STAGEDIR}${DATADIR}
.for n in 16 22 24 32 48 64 128 192 256 512
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${n}x${n}/apps
${INSTALL_DATA} ${WRKSRC}/unetbootin_${n}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${n}x${n}/apps/unetbootin.png
.endfor
.include <bsd.port.mk>