1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/misc/gedkeeper/Makefile
Alexey Dokuchaev a76b314b14 misc/gedkeeper: update GEDKeeper to version 2.18.0.
Reported by:	portscout
2021-08-02 13:46:59 +00:00

55 lines
1.7 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= gedkeeper
PORTVERSION= 2.18.0
DISTVERSIONPREFIX= v
CATEGORIES= misc
MAINTAINER= danfe@FreeBSD.org
COMMENT= Personal genealogical database editor
LICENSE= GPLv3+
BUILD_DEPENDS= msbuild:devel/msbuild
LIB_DEPENDS= libgdiplus.so:x11-toolkits/libgdiplus
USES= desktop-file-utils mono shared-mime-info
USE_GITHUB= yes
GH_ACCOUNT= Serg-Norseman
GH_PROJECT= GEDKeeper
_BUILD_TYPE= Release
DATADIR= ${PREFIX}/lib/${PORTNAME}
do-build:
cd ${BUILD_WRKSRC} && msbuild projects/GEDKeeper2.linux.sln \
/p:Configuration=${_BUILD_TYPE} /p:Platform="x86" \
/p:MonoCS=true # /p:TargetFrameworkVersion=v4.5
do-install:
${PRINTF} '#!/bin/sh\n\nexec mono ${DATADIR}/GEDKeeper2.exe\
"$$@"\n' > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${INSTALL_WRKSRC} && ${CP} -a *.dll GEDKeeper2.exe \
locales plugins samples scripts ${STAGEDIR}${DATADIR}
@${RM} ${STAGEDIR}${DATADIR}/scripts/readme.txt
${INSTALL_DATA} ${INSTALL_WRKSRC}/deploy/gedkeeper.desktop \
${STAGEDIR}${PREFIX}/share/applications/
${INSTALL_DATA} ${INSTALL_WRKSRC}/deploy/gedkeeper.png \
${STAGEDIR}${PREFIX}/share/pixmaps
@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
${INSTALL_DATA} ${INSTALL_WRKSRC}/deploy/application-x-gedkeeper.xml \
${STAGEDIR}${PREFIX}/share/mime/packages
@${MKDIR} ${STAGEDIR}${PREFIX}/share/metainfo
${INSTALL_DATA} ${INSTALL_WRKSRC}/deploy/gedkeeper.appdata.xml \
${STAGEDIR}${PREFIX}/share/metainfo
do-test:
cd ${TEST_WRKSRC} && TEMP=/tmp nunit-console \
projects/GKTests/bin/${_BUILD_TYPE}/GKTests.dll
.include <bsd.port.mk>
PATCH_ARGS+= -l