openbsd-ports/devel/libmagic/Makefile
2022-12-29 13:00:47 +00:00

35 lines
583 B
Makefile

COMMENT= library to determine file type
V= 5.44
DISTNAME= file-${V}
PKGNAME= libmagic-${V}
SHARED_LIBS += magic 5.1 # 1.0
CATEGORIES= sysutils devel
HOMEPAGE= https://www.darwinsys.com/file/
# BSD
PERMIT_PACKAGE= Yes
WANTLIB = c z
MASTER_SITES= http://ftp.astron.com/pub/file/
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-fsect-man5
DEBUG_PACKAGES= ${BUILD_PACKAGES}
post-install:
mv ${PREFIX}/bin/{,e}file
mv ${PREFIX}/man/man1/{,e}file.1
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mclang}
CFLAGS += -std=gnu99
.endif
.include <bsd.port.mk>