freebsd-ports/cad/kicad-library-footprints-devel/Makefile
Felix Palmen 7d1faa7179 bsd.sites.mk: Update all ports using USE_GITLAB
Replace GL_COMMIT by GL_TAGNAME in all ports. The new GL_TAGNAME is
backwards-compatible (accepting any commit hash as before), but also
understands an actual tag name. Moving to tag names where appropriate is
left to individual ports' maintainers.

Approved by:		portmgr (tcberner, mentor)
Differential Revision:	https://reviews.freebsd.org/D37077
2023-07-12 20:56:04 +02:00

43 lines
1.2 KiB
Makefile

PORTNAME= kicad
DISTVERSION= r${GIT_FP_DATE}
PORTREVISION= 2
CATEGORIES= cad
MASTER_SITES= https://gitlab.com/kicad/libraries/${PORTNAME}-footprints/-/archive/${GL_TAGNAME}/
PKGNAMESUFFIX= -library-footprints-devel
DISTNAME= ${PORTNAME}-footprints-${GL_TAGNAME}
MAINTAINER= mr@FreeBSD.org
COMMENT= Official KiCad Footprint Libraries for the future Kicad version 5
WWW= https://github.com/KiCad/kicad-footprints
LICENSE= GPLv2
RUN_DEPENDS= kicad:cad/kicad-devel
CONFLICTS_INSTALL= kicad-library-footprints # share/kicad/footprints/Audio_Module.pretty/Reverb_BTDR-1H.kicad_mod
USE_GITLAB= nodefault
GL_ACCOUNT= kicad
GL_PROJECT= kicad/libraries
GL_TAGNAME= ${GIT_FP_HASH}
# WRKSRC= ${WRKDIR}/${PORTNAME}-${GL_TAGNAME}-${GL_TAGNAME}
USES= cmake
CMAKE_ARGS= -DLOCALBASE="${LOCALBASE}" \
-DCMAKE_BUILD_TYPE="Release" \
-DKICAD_TESTING_VERSION=ON \
-DKICAD_BUILD_VERSION=${DISTVERSION}
INSTALL_TARGET= install
NO_ARCH= yes
.include "Makefile.git_rev"
# Updating to new rev:
# sh files/newVersion.sh
# make install #breaks probably due to plist differences
# make makeplist > pkg-plist #One has to edit/review the generated plist
# make generate-plist && make check-plist
.include <bsd.port.mk>