Lines 1-53
Link Here
|
1 |
# Created by: roam@FreeBSD.org |
1 |
# Created by: roam@FreeBSD.org |
2 |
|
2 |
|
3 |
PORTNAME= libelf |
3 |
PORTNAME= libelf |
4 |
PORTVERSION= 0.8.13 |
4 |
DISTVERSION= 0.8.13 |
5 |
PORTREVISION= 3 |
5 |
PORTREVISION= 3 |
6 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
7 |
MASTER_SITES= http://www.mr511.de/software/ \ |
7 |
MASTER_SITES= NETBSD |
8 |
SUNSITE/libs |
|
|
9 |
|
8 |
|
10 |
MAINTAINER= rodrigo@FreeBSD.org |
9 |
MAINTAINER= rodrigo@FreeBSD.org |
11 |
COMMENT= Public ELF file access library similar to libelf(3) in Solaris |
10 |
COMMENT= Public ELF file access library similar to libelf(3) in Solaris |
12 |
|
11 |
|
13 |
LICENSE= LGPL20 |
12 |
LICENSE= LGPL20 |
14 |
|
13 |
|
|
|
14 |
USES= desthack pathfix |
15 |
GNU_CONFIGURE= yes |
16 |
USE_LDCONFIG= yes |
17 |
|
15 |
CONFLICTS_INSTALL= elfutils |
18 |
CONFLICTS_INSTALL= elfutils |
16 |
|
19 |
|
17 |
OPTIONS_DEFINE= EXTENDED NLS SANITY |
20 |
CONFIGURE_ARGS= --enable-shared --disable-compat |
|
|
21 |
|
22 |
OPTIONS_DEFINE= EXTENDED NLS SANITY |
18 |
OPTIONS_DEFAULT= EXTENDED SANITY |
23 |
OPTIONS_DEFAULT= EXTENDED SANITY |
19 |
|
24 |
|
20 |
EXTENDED_DESC= ELF format extensions |
25 |
EXTENDED_DESC= ELF format extensions |
21 |
SANITY_DESC= Avoid loading invalid ELF files |
26 |
SANITY_DESC= Avoid loading invalid ELF files |
22 |
|
27 |
|
23 |
.include <bsd.port.options.mk> |
28 |
EXTENDED_CONFIGURE_ENABLE= extended-format |
|
|
29 |
NLS_USES= gettext localbase:ldflags |
30 |
NLS_CONFIGURE_ENABLE= nls |
31 |
NLS_LDFLAGS= -lintl |
32 |
SANITY_CONFIGURE_ENABLE= sanity-checks |
24 |
|
33 |
|
25 |
GNU_CONFIGURE= yes |
34 |
.include <bsd.port.options.mk> |
26 |
CONFIGURE_ARGS+= --enable-shared --disable-compat |
|
|
27 |
USE_LDCONFIG= yes |
28 |
USES= desthack pathfix |
29 |
|
35 |
|
30 |
.if ${PORT_OPTIONS:MNLS} |
36 |
.if ${PORT_OPTIONS:MNLS} |
31 |
CPPFLAGS+= -I${LOCALBASE}/include |
|
|
32 |
LDFLAGS+= -L${LOCALBASE}/lib -lintl |
33 |
CONFIGURE_ARGS+= --enable-nls |
34 |
USES+= gettext |
35 |
PLIST_SUB+= GETTEXT="" |
37 |
PLIST_SUB+= GETTEXT="" |
36 |
.else |
38 |
.else |
37 |
CONFIGURE_ARGS+= --disable-nls |
|
|
38 |
PLIST_SUB+= GETTEXT="@comment " |
39 |
PLIST_SUB+= GETTEXT="@comment " |
39 |
.endif |
40 |
.endif |
40 |
|
41 |
|
41 |
.if ${PORT_OPTIONS:MEXTENDED} |
|
|
42 |
CONFIGURE_ARGS+= --enable-extended-format |
43 |
.else |
44 |
CONFIGURE_ARGS+= --disable-extended-format |
45 |
.endif |
46 |
|
47 |
.if ${PORT_OPTIONS:MSANITY} |
48 |
CONFIGURE_ARGS+= --enable-sanity-checks |
49 |
.else |
50 |
CONFIGURE_ARGS+= --disable-sanity-checks |
51 |
.endif |
52 |
|
53 |
.include <bsd.port.mk> |
42 |
.include <bsd.port.mk> |