freebsd-ports/sysutils/fusefs-httpfs/Makefile
Florian Smeets d26530b713 - introduce a USE_FUSE macro
- convert all fuse ports to use the new macro

The macro makes sure sysutils/fusefs-libs gets installed and depending on
fuse being in base or not it installs sysutils/fusefs-kmod.

Approved by:	portmgr (bapt)
2012-12-14 15:47:00 +00:00

32 lines
897 B
Makefile

# New ports collection makefile for: fusefs-httpfs
# Date created: 2006-07-16
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= httpfs
PORTVERSION= 2.06.08.26
CATEGORIES= sysutils www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}_with_static_binaries_${PORTVERSION}
PKGNAMEPREFIX= fusefs-
DISTNAME= ${PORTNAME}_with_static_binaries_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Fuse-based http filesystem
USE_FUSE= yes
PLIST_FILES= bin/httpfs
WRKSRC= ${WRKDIR}
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include/fuse \
-DUSE_AUTH -D_FILE_OFFSET_BITS=64 -D_REENTRANT \
-DFUSE_USE_VERSION=25 -D_POSIX_C_SOURCE=200112L -D_POSIX_SOURCE \
-D_SVID_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=500 \
-o httpfs httpfs.c -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lfuse)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/httpfs ${PREFIX}/bin
.include <bsd.port.mk>