1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/ports-mgmt/octopkg/Makefile

47 lines
1.4 KiB
Makefile

PORTNAME= octopkg
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.2
CATEGORIES= ports-mgmt
MAINTAINER= eduardo@FreeBSD.org
COMMENT= Graphical front-end to the FreeBSD pkg-ng package manager
WWW= https://tintaescura.com/projects/octopkg/
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c++17-lang desktop-file-utils gl qmake qt:5
USE_GITHUB= yes
GH_ACCOUNT= aarnt
USE_GL= gl
USE_QT= concurrent core declarative gui linguist network widgets xml \
buildtools:build
PLIST_FILES= bin/${PORTNAME} \
lib/${PORTNAME}/${PORTNAME}-doas \
share/applications/${PORTNAME}.desktop
post-patch:
${REINPLACE_CMD} 's#/usr/lib#${PREFIX}/lib#' \
${WRKSRC}/src/strconstants.cpp
${REINPLACE_CMD} 's#/usr/local#${PREFIX}#' \
${WRKSRC}/src/constants.h \
${WRKSRC}/src/main.cpp
do-configure:
cd ${WRKSRC} && ${QMAKE_ENV} ${QMAKE} ${QMAKE_ARGS}
cd ${WRKSRC}/doas && ${QMAKE_ENV} ${QMAKE} ${QMAKE_ARGS}
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS}
cd ${WRKSRC}/doas && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/doas/${PORTNAME}-doas ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
${STAGEDIR}${PREFIX}/share/applications
.include <bsd.port.mk>