blob: 50defdd53f7d7bed19821dd3df8df06575796abc (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: roam@FreeBSD.org
# $FreeBSD$
PORTNAME= libelf
PORTVERSION= 0.8.13
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.mr511.de/software/ \
${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= libs
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= Public ELF file access library similar to libelf(3) in Solaris
OPTIONS_DEFINE= EXTENDED NLS SANITY
OPTIONS_DEFAULT= EXTENDED SANITY
EXTENDED_DESC= ELF format extensions
SANITY_DESC= Avoid loading invalid ELF files
.include <bsd.port.options.mk>
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-shared --disable-compat
USE_LDCONFIG= yes
USES= desthack
.if ${PORT_OPTIONS:MNLS}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
CONFIGURE_ARGS+= --enable-nls
USES+= gettext
PLIST_SUB+= GETTEXT=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= GETTEXT="@comment "
.endif
.if ${PORT_OPTIONS:MEXTENDED}
CONFIGURE_ARGS+= --enable-extended-format
.else
CONFIGURE_ARGS+= --disable-extended-format
.endif
.if ${PORT_OPTIONS:MSANITY}
CONFIGURE_ARGS+= --enable-sanity-checks
.else
CONFIGURE_ARGS+= --disable-sanity-checks
.endif
.include <bsd.port.mk>
|