mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
322de53e18
PR: ports/63450 Submitted by: maintainer
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# Ports collection Makefile for: libowfat
|
|
# Date created: Feb 21, 2004
|
|
# Whom: Thomas-Martin Seck <tmseck@netcologne.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libowfat
|
|
PORTVERSION= 0.18
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://dl.fefe.de/
|
|
|
|
MAINTAINER= tmseck@netcologne.de
|
|
COMMENT= A general purpose library based on code by D. J. Bernstein
|
|
|
|
USE_BZIP2= YES
|
|
USE_GMAKE= YES
|
|
|
|
MAKEFILE= GNUmakefile
|
|
MAKE_ENV+= MAN3PREFIX=${MAN3PREFIX}
|
|
|
|
OPTIONS= LIBOWFAT_OPTIMIZED_CFLAGS "Use optimized CFLAGS" on
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_LIBOWFAT_OPTIMIZED_CFLAGS)
|
|
CFLAGS+= -O2 -fomit-frame-pointer
|
|
.endif
|
|
|
|
.include "${FILESDIR}/manpages"
|
|
|
|
examples= test/client.c test/dllink.c test/httpd.c test/readhttp.c \
|
|
test/server.c test/uudecode.c test/vd.c
|
|
examplesdir= ${EXAMPLESDIR:S,^${PREFIX}/,,}
|
|
PLIST_DIRS= ${examplesdir}
|
|
PLIST_FILES= lib/libowfat.a ${examples:S,^test/,${examplesdir}/,}
|
|
.if!defined(NOPORTDOCS)
|
|
PORTDOCS= CHANGES README TODO
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${examples} ${EXAMPLESDIR}
|
|
# add installed header files to packaging list:
|
|
@cd ${PREFIX} && \
|
|
${FIND} include/libowfat -type f -o -type l | ${SORT} >>${TMPPLIST}
|
|
@${ECHO_CMD} "@dirrm include/libowfat" >>${TMPPLIST}
|
|
|
|
.include <bsd.port.post.mk>
|