blob: 7cd226a2bd6f2bab507d99e820fbfafd93867094 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.20 2011/12/21 12:03:45 wiz Exp $
DISTNAME= yale-tftpd-3.0
PKGREVISION= 5
CATEGORIES= net
MASTER_SITES= ftp://ftp.cert.dfn.de/pub/tools/net/yale-tftpd/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Enhanced tftpd(8) from Yale University and cisco Systems
PKG_DESTDIR_SUPPORT= user-destdir
USE_BSD_MAKEFILE= yes
WRKSRC= ${WRKDIR}
CFLAGS.DragonFly+= -DHAVE_STRERROR
CFLAGS.FreeBSD+= -DHAVE_STRERROR
CFLAGS.Linux+= -DHAVE_STRERROR
CFLAGS.SunOS+= -DHAVE_STRERROR -DBROKEN_TH_STUFF
LDFLAGS.SunOS+= -lsocket -lnsl
USE_LANGUAGES= c
SUBST_CLASSES+= ytftpdman
SUBST_STAGE.ytftpdman= post-configure
SUBST_MESSAGE.ytftpdman= Fixing pathnames references
SUBST_FILES.ytftpdman= tftpd.8
SUBST_SED.ytftpdman= -e 's|@ETCDIR@|${PKG_SYSCONFDIR}|g'
SUBST_SED.ytftpdman+= -e 's|@PREFIX@|${PREFIX}|g'
INSTALLATION_DIRS= libexec ${PKGMANDIR}/cat8 ${PKGMANDIR}/man8
# code is not clean enough for gcc-4.5
BUILDLINK_TRANSFORM+= rm:-Werror
.include "../../mk/bsd.pkg.mk"
|