pkgsrc/net/csup/Makefile
obache 678915fe8d * Need OpenSSL to build.
* Ensure to use BSD_MAKEFILE and pass appropriate CFLAGS.

Fixes PR 40171.
2008-12-23 11:22:05 +00:00

43 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2008/12/23 11:22:05 obache Exp $
#
DISTNAME= csup-snap-20070216
PKGNAME= ${DISTNAME:S/-snap//}
CATEGORIES= net devel
MASTER_SITES= ${MASTER_SITE_BACKUP}
MAINTAINER= imil@gcu.info
HOMEPAGE= http://www.mu.org/~mux/csup.html
COMMENT= Rewrite of the CVSup file updating client in C
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= lex yacc
USE_BSD_MAKEFILE= yes
WRKSRC= ${WRKDIR}/csup
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/cat1
CFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
BUILDLINK_TRANSFORM+= rm:-Werror
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" \
|| ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
CFLAGS+= -DHAVE_FFLAGS
.endif
# taken from ${WRKSRC}/GNUmakefile
.if ${OPSYS} == "Linux"
CFLAGS+= -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"