mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
c0acf9823c
- Update WWW Approved by: portmgr blanket
104 lines
2.6 KiB
Makefile
104 lines
2.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= peazip
|
|
PORTVERSION= 7.0.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= https://github.com/giorgiotani/PeaZip/releases/download/${PORTVERSION}/
|
|
PKGNAMESUFFIX= ${LAZARUS_PKGNAMESUFFIX}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= Free archiver and file compressor
|
|
|
|
LICENSE= LGPL3
|
|
|
|
USES= desktop-file-utils dos2unix fpc lazarus:flavors zip xorg
|
|
USE_FPC= cairo chm fcl-base fcl-image fcl-xml pasjpeg rtl-objpas x11
|
|
USE_XORG= x11
|
|
|
|
SUB_FILES= pea peazip
|
|
|
|
DOS2UNIX_REGEX= .*\.([txt]|pas|lpi|txt)
|
|
|
|
LAZARUS_PROJECT_FILES= project_pea.lpi project_peach.lpi
|
|
LAZBUILD_ARGS= -d
|
|
|
|
gtk2_CONFLICTS_INSTALL= ${PORTNAME}-qt5
|
|
qt5_CONFLICTS_INSTALL= ${PORTNAME}-gtk2
|
|
|
|
ARCHIVER_FILES= #
|
|
|
|
OPTIONS_DEFINE= 7Z ARC ZPAQ UNACE
|
|
|
|
7Z_DESC= 7z file archiver support
|
|
ARC_DESC= Arc file archiver support
|
|
ZPAQ_DESC= Zpaq file archiver support
|
|
UNACE_DESC= Unace file archiver support
|
|
|
|
OPTIONS_DEFAULT= 7Z
|
|
|
|
.if ${FLAVOR:Ugtk2:Mgtk2}
|
|
USES+= gnome
|
|
USE_GNOME+= cairo
|
|
.endif
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:M7Z}
|
|
RUN_DEPENDS+= 7z:archivers/p7zip
|
|
ARCHIVER_FILES+=7z
|
|
PLIST_SUB+= 7Z=""
|
|
.else
|
|
PLIST_SUB+= 7Z="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MARC}
|
|
RUN_DEPENDS+= arc:archivers/arc
|
|
ARCHIVER_FILES+=arc
|
|
PLIST_SUB+= ARC=""
|
|
.else
|
|
PLIST_SUB+= ARC="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MZPAQ}
|
|
RUN_DEPENDS+= zpaq:archivers/paq
|
|
ARCHIVER_FILES+=zpaq
|
|
PLIST_SUB+= ZPAQ=""
|
|
.else
|
|
PLIST_SUB+= ZPAQ="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MUNACE}
|
|
RUN_DEPENDS+= unace:archivers/unace
|
|
ARCHIVER_FILES+=unace
|
|
PLIST_SUB+= UNACE=""
|
|
.else
|
|
PLIST_SUB+= UNACE="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} 's|GetSelectedNodePath|Path|g' ${WRKSRC}/peach.pas
|
|
|
|
pre-install:
|
|
@${ECHO_CMD} "#" > ${WRKSRC}/altconf.txt
|
|
@${ECHO_CMD} "appdata" >> ${WRKSRC}/altconf.txt
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/res
|
|
.for ARCHIVER in ${ARCHIVER_FILES}
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/res/${ARCHIVER}
|
|
@${LN} -s ${LOCALBASE}/bin/${ARCHIVER} ${STAGEDIR}${DATADIR}/res/${ARCHIVER}/${ARCHIVER}
|
|
.endfor
|
|
@cd ${WRKSRC}/res && ${COPYTREE_SHARE} "icons lang themes" ${STAGEDIR}${DATADIR}/res
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} altconf.txt ${STAGEDIR}${DATADIR}/res && \
|
|
${INSTALL_PROGRAM} pea ${STAGEDIR}${DATADIR}/res && \
|
|
${INSTALL_PROGRAM} peazip ${STAGEDIR}${DATADIR}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps
|
|
@cd ${WRKSRC}/FreeDesktop_integration && \
|
|
${INSTALL_DATA} peazip.desktop ${STAGEDIR}${DESKTOPDIR} && \
|
|
${INSTALL_DATA} peazip.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/${PORTNAME}.png
|
|
${INSTALL_SCRIPT} ${WRKDIR}/pea ${WRKDIR}/peazip ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.include <bsd.port.mk>
|