mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
a550b67ae0
The affected ports are the ones with gettext as a run-dependency according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT in Makefile (29 of them). PR: ports/124340 Submitted by: edwin@ Approved by: portmgr (pav)
59 lines
1.3 KiB
Makefile
59 lines
1.3 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: libtre
|
|
# Date created: Oct 14, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libtre
|
|
PORTVERSION= 0.7.5
|
|
PORTREVISION= 2
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://laurikari.net/tre/ \
|
|
${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= jkoshy
|
|
DISTNAME= tre-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A lightweight fully POSIX compliant regexp matching library
|
|
|
|
USE_BZIP2= yes
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
|
USE_AUTOTOOLS= libtool:15
|
|
CONFIGURE_ARGS+= --enable-static --disable-agrep
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
OPTIONS= NLS "native language support" off \
|
|
OPTIMIZED_CFLAGS "append optimization flags to CFLAGS" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_NLS)
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
|
CFLAGS+= -Wuninitialized -ffast-math -finline-functions \
|
|
-fomit-frame-pointer -fexpensive-optimizations \
|
|
-fforce-mem -fforce-addr -O3
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for i in tre-api.html tre-syntax.html
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|