Files
ports/sysutils/unetbootin/Makefile
Alexey Dokuchaev f50b4ec601 sysutils/unetbootin: amend MASTER_SITES, fix minor indentation bug
As of r471558 (now commit a7f0cdea95) the project had moved from
SourceForge to GitHub, yet distfiles are provided at both locations.
Prefer the former by default to enjoy its vast selection of mirrors
while downloads from the latter are less reliable in certain parts
of the world (e.g. I'm getting truncated files off it all the time).
2023-10-14 08:52:16 +00:00

50 lines
1.5 KiB
Makefile

PORTNAME= unetbootin
PORTVERSION= 702
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/UNetbootin/${PORTVERSION} \
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
WWW= https://unetbootin.github.io/
LICENSE= GPLv2+
RUN_DEPENDS= 7zz:archivers/7-zip \
syslinux:sysutils/syslinux \
mke2fs:sysutils/e2fsprogs-core
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
@${REINPLACE_CMD} -e 's,this->setWindowTitle(UNETBOOTINB,& \
" ${PORTVERSION}",' ${WRKSRC}/unetbootin.cpp
do-configure:
cd ${CONFIGURE_WRKSRC} && ${LUPDATE} unetbootin.pro \
&& ${LRELEASE} unetbootin.pro \
&& ${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>