freebsd-ports/devel/libelf/Makefile
Chris Rees e263d82089 - Remove obsolete OSVERSION check
- Use bsd.port.options.mk
2012-05-23 19:47:38 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: libelf
# Date created: 18 Apr 2001
# Whom: 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= ports@FreeBSD.org
COMMENT= A public ELF file access library similar to libelf(3) in Solaris
OPTIONS= EXTENDED "ELF format extensions" on \
NLS "Native Language Support" on \
SANITY "Avoid loading invalid ELF files" on
.include <bsd.port.options.mk>
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-shared --disable-compat
USE_LDCONFIG= yes
NOMAN= defined
.if !defined(WITHOUT_NLS)
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
CONFIGURE_ARGS+= --enable-nls
USE_GETTEXT= yes
PLIST_SUB+= GETTEXT=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= GETTEXT="@comment "
.endif
.if !defined(WITHOUT_EXTENDED)
CONFIGURE_ARGS+= --enable-extended-format
.else
CONFIGURE_ARGS+= --disable-extended-format
.endif
.if !defined(WITHOUT_SANITY)
CONFIGURE_ARGS+= --enable-sanity-checks
.else
CONFIGURE_ARGS+= --disable-sanity-checks
.endif
.include <bsd.port.mk>