Skip to content

Commit

Permalink
devel/libowfat: Update to 0.33
Browse files Browse the repository at this point in the history
- Convert to options variable helper
- Update manpage location (003a571, r523104)
- Sort PLIST
- Take maintainership

Changes:	https://www.fefe.de/libowfat/changes-0.33.txt
  • Loading branch information
sunpoet committed Jun 30, 2023
1 parent 67813bf commit c067386
Show file tree
Hide file tree
Showing 9 changed files with 430 additions and 869 deletions.
40 changes: 15 additions & 25 deletions devel/libowfat/Makefile
@@ -1,43 +1,33 @@
PORTNAME= libowfat
PORTVERSION= 0.32
PORTREVISION= 1
PORTVERSION= 0.33
CATEGORIES= devel
MASTER_SITES= https://www.fefe.de/libowfat/

MAINTAINER= ports@FreeBSD.org
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= General purpose library based on code by D. J. Bernstein
WWW= https://www.fefe.de/libowfat/

LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

USES= gmake tar:xz

#ALL_TARGET= headers
#ALL_TARGET= havealloca.h iopause.h headers all
#CFLAGS+= -fPIC
#MAKE_ENV= DIET=
MAKEFILE= GNUmakefile
ALL_TARGET= dep all
#MAKE_JOBS_UNSAFE= yes

OPTIONS_DEFINE= OPTIMIZED_CFLAGS
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS

.include <bsd.port.pre.mk>

MAKE_ENV+= INSTALL="${INSTALL}"

.include "${FILESDIR}/manpages"
OPTIONS_DEFAULT=OPTIMIZED_CFLAGS

.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+= -O2 -fomit-frame-pointer
.endif
OPTIMIZED_CFLAGS_CFLAGS= -O2 -fomit-frame-pointer

post-extract:
@${MKDIR} ${WRKSRC}/man
# Manual pages clash with other programs; prepend libowfat_ to them.
.for i in ${MANPAGES}
@${MV} ${WRKSRC}/*/${i:S/libowfat_//} ${WRKSRC}/man/${i}
.endfor
pre-build:
@cd ${WRKSRC} && ${DO_MAKE_BUILD} headers

post-patch:
# Clang cries when void functions return a value
${REINPLACE_CMD} -e '56s|return ||' ${WRKSRC}/CAS.h
${REINPLACE_CMD} -e "s|STAGEDIR|${STAGEDIR}|g" ${WRKSRC}/GNUmakefile
post-install:
cd ${STAGEDIR}${PREFIX}/share/man/man3 && ${FIND} * -name '*.3' -exec ${MV} {} libowfat_{} \;

.include <bsd.port.post.mk>
.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions devel/libowfat/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1613798981
SHA256 (libowfat-0.32.tar.xz) = f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1
SIZE (libowfat-0.32.tar.xz) = 195820
TIMESTAMP = 1686496682
SHA256 (libowfat-0.33.tar.xz) = 311ec8b3f4b72bb442e323fb013a98f956fa745547f2bc9456287b20d027cd7d
SIZE (libowfat-0.33.tar.xz) = 213920

0 comments on commit c067386

Please sign in to comment.