mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
bbab7f59e9
- Remove all references to defunct ARCH arm - Remove all references to defunct ARCH sparc64 - Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64 ARCH - Remove sysutils/afbinit requires defunct sparc64 ARCH - Remove all references to bktr driver - Remove all references to defunct FreeBSD_12 - Remove all references to OSVERSION/OSREL corresponding to 12 - Remove conditionals in Mk/Uses/cabal.mk - Remove sparc reference from Mk/Uses/qt-dist.mk - Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64 - Remove BROKEN_FreeBSD_12* from: - Remove OpenSSL patches from: - Remove conditional flags for OSVERSION >= 1300000 to fixed flags. Also move conditional flags for non sparc64/arm ARCH to fixed flags. Reviewed by: brooks, jbeich, rene, salvadore Differential Revision: https://reviews.freebsd.org/D42068
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
PORTNAME= openzfs
|
|
PORTVERSION= 2023113000
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= sysutils
|
|
PKGNAMESUFFIX?= -kmod
|
|
|
|
MAINTAINER= freqlabs@FreeBSD.org
|
|
COMMENT= OpenZFS kernel module for FreeBSD
|
|
WWW= https://github.com/openzfs/zfs
|
|
|
|
LICENSE= CDDL
|
|
|
|
BROKEN_i386= build fails
|
|
|
|
USES= cpe kmod
|
|
USE_GITHUB= yes
|
|
GH_PROJECT= zfs
|
|
GH_TAGNAME= 494aaae
|
|
KMODTARGET?= openzfs.ko
|
|
|
|
PLIST_FILES= ${KMODDIR}/${KMODTARGET}
|
|
|
|
OPTIONS_DEFINE= DEBUG INVARIANTS GCOV
|
|
OPTIONS_DEFAULT= DEBUG INVARIANTS
|
|
OPTIONS_SUB= yes
|
|
|
|
GCOV_DESC= Build kernel module with GCOV support (Requires gcc)
|
|
|
|
INVARIANTS_DESC= Build kernel module with INVARIANTS
|
|
INVARIANTS_IMPLIES= DEBUG
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
MAKE_OPTS+= SYSDIR=${SRC_BASE}/sys
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
MAKE_OPTS+= WITH_DEBUG=true
|
|
PLIST_FILES+= ${KMODDIR}/${KMODTARGET}.debug
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MINVARIANTS}
|
|
MAKE_OPTS+= WITH_INVARIANTS=true
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGCOV}
|
|
USE_GCC= yes
|
|
MAKE_OPTS+= WITH_GCOV=true
|
|
.endif
|
|
|
|
ZFS_META_GITREV= ${GH_PROJECT}-${GH_TAGNAME}
|
|
ZFS_META_RELEASE= ${GH_PROJECT}_${GH_TAGNAME}
|
|
ZFS_META_VERSION= ${DISTVERSIONPREFIX}${PORTVERSION}
|
|
|
|
post-patch:
|
|
${ECHO} '#define ZFS_META_GITREV "${ZFS_META_GITREV}"' > ${WRKSRC}/include/zfs_gitrev.h
|
|
${ECHO} '#define ZFS_META_RELEASE "${ZFS_META_RELEASE}"' > ${WRKSRC}/zfs_config.h
|
|
${ECHO} '#define ZFS_META_VERSION "${ZFS_META_VERSION}"' >> ${WRKSRC}/zfs_config.h
|
|
|
|
do-build:
|
|
(cd ${WRKSRC}/module/ && make -f Makefile.bsd CC=${CC} ${MAKE_OPTS})
|
|
|
|
do-install:
|
|
${INSTALL} ${WRKSRC}/module/openzfs.ko ${STAGEDIR}${KMODDIR}/${KMODTARGET}
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
${INSTALL} ${WRKSRC}/module/openzfs.ko.debug ${STAGEDIR}${KMODDIR}/${KMODTARGET}.debug
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|