| @@ -1,37 +1,34 @@ | | | @@ -1,37 +1,34 @@ |
1 | # $NetBSD: Makefile,v 1.5 2012/10/23 17:19:14 asau Exp $ | | 1 | # $NetBSD: Makefile,v 1.6 2013/01/11 00:04:22 joerg Exp $ |
2 | | | 2 | |
3 | DISTNAME= traceroute-nanog_6.4.2.orig | | 3 | DISTNAME= traceroute-nanog_6.4.2.orig |
4 | PKGNAME= ${DISTNAME:S/.orig//:S/_/-/} | | 4 | PKGNAME= ${DISTNAME:S/.orig//:S/_/-/} |
5 | CATEGORIES= net | | 5 | CATEGORIES= net |
6 | MASTER_SITES= ftp://unix.hensa.ac.uk/sites/archive.ubuntu.com/ubuntu/pool/universe/t/traceroute-nanog/ \ | | 6 | MASTER_SITES= ftp://unix.hensa.ac.uk/sites/archive.ubuntu.com/ubuntu/pool/universe/t/traceroute-nanog/ \ |
7 | http://www.ftp.uni-erlangen.de/pub/pc/TheOpenCD/old-images/ubuntu/pool/universe/t/traceroute-nanog/ \ | | 7 | http://www.ftp.uni-erlangen.de/pub/pc/TheOpenCD/old-images/ubuntu/pool/universe/t/traceroute-nanog/ \ |
8 | http://traceroute-nanog.sourcearchive.com/downloads/6.4.2-1/ | | 8 | http://traceroute-nanog.sourcearchive.com/downloads/6.4.2-1/ |
9 | | | 9 | |
10 | # for the man page: | | 10 | # for the man page: |
11 | PATCH_SITES= ${MASTER_SITES} | | 11 | PATCH_SITES= ${MASTER_SITES} |
12 | PATCHFILES= traceroute-nanog_6.4.2-1.diff.gz | | 12 | PATCHFILES= traceroute-nanog_6.4.2-1.diff.gz |
13 | | | 13 | |
14 | COMMENT= Traceroute implementation with extend features | | 14 | COMMENT= Traceroute implementation with extend features |
15 | MAINTAINER= schwarz@NetBSD.org | | 15 | MAINTAINER= schwarz@NetBSD.org |
16 | | | 16 | |
17 | WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} | | 17 | WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} |
18 | NO_CONFIGURE= YES | | 18 | NO_CONFIGURE= YES |
19 | USE_FEATURES+= snprintf | | 19 | USE_FEATURES+= snprintf |
20 | | | 20 | |
21 | .include "../../mk/bsd.prefs.mk" | | 21 | .include "../../mk/bsd.prefs.mk" |
22 | .if empty(PKGSRC_COMPILER:Mgcc*) | | | |
23 | CPPFLAGS+= -D__attribute__= | | | |
24 | .endif | | | |
25 | | | 22 | |
26 | .if ${OPSYS} == "SunOS" | | 23 | .if ${OPSYS} == "SunOS" |
27 | .if ${OS_VERSION} >= 5.0 | | 24 | .if ${OS_VERSION} >= 5.0 |
28 | .if ${OS_VERSION} != 5.4 | | 25 | .if ${OS_VERSION} != 5.4 |
29 | CPPFLAGS+= -DSOLARIS | | 26 | CPPFLAGS+= -DSOLARIS |
30 | LIBS+= -lresolv -lsocket -lnsl | | 27 | LIBS+= -lresolv -lsocket -lnsl |
31 | .endif | | 28 | .endif |
32 | .if ${LOWER_ARCH} == "i386" | | 29 | .if ${LOWER_ARCH} == "i386" |
33 | CPPFLAGS+= -DBYTESWAP_IP_LEN | | 30 | CPPFLAGS+= -DBYTESWAP_IP_LEN |
34 | .endif | | 31 | .endif |
35 | .endif | | 32 | .endif |
36 | .elif ${OPSYS} == "Linux" | | 33 | .elif ${OPSYS} == "Linux" |
37 | LIBS+= -lresolv | | 34 | LIBS+= -lresolv |