sthen 3cdf2816b0 sync WANTLIB for some packages that could be semi-automated for some
common missing libs, with "help" from portbump, but i reviewed everything
2022-03-27 16:23:04 +00:00

36 lines
595 B
Makefile

COMMENT= library to determine file type
V= 5.41
DISTNAME= file-${V}
PKGNAME= libmagic-${V}
REVISION= 0
SHARED_LIBS += magic 5.0 # 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>