36 lines
595 B
Makefile
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>
|