mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Support WITHOUT_NLS
This commit is contained in:
parent
4a0f817aac
commit
09408032e6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105513
2 changed files with 9 additions and 2 deletions
|
@ -15,7 +15,6 @@ DISTNAME= tre-${PORTVERSION}
|
||||||
MAINTAINER= krion@FreeBSD.org
|
MAINTAINER= krion@FreeBSD.org
|
||||||
COMMENT= A lightweight fully POSIX compliant regexp matching library
|
COMMENT= A lightweight fully POSIX compliant regexp matching library
|
||||||
|
|
||||||
USE_GETTEXT= yes
|
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
USE_GNOME= gnomehack gnometarget pkgconfig lthack
|
USE_GNOME= gnomehack gnometarget pkgconfig lthack
|
||||||
USE_GETOPT_LONG= yes
|
USE_GETOPT_LONG= yes
|
||||||
|
@ -27,6 +26,14 @@ INSTALLS_SHLIB= yes
|
||||||
CPPFLAGS= -I${LOCALBASE}/include
|
CPPFLAGS= -I${LOCALBASE}/include
|
||||||
LDFLAGS= -L${LOCALBASE}/lib -lintl
|
LDFLAGS= -L${LOCALBASE}/lib -lintl
|
||||||
|
|
||||||
|
.if !defined(WITHOUT_NLS)
|
||||||
|
USE_GETTEXT= yes
|
||||||
|
PLIST_SUB+= NLS=""
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+=--disable-nls
|
||||||
|
PLIST_SUB+= NLS="@comment "
|
||||||
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
|
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
|
||||||
|
|
||||||
|
|
|
@ -6,5 +6,5 @@ lib/libtre.a
|
||||||
lib/libtre.so
|
lib/libtre.so
|
||||||
lib/libtre.so.4
|
lib/libtre.so.4
|
||||||
libdata/pkgconfig/tre.pc
|
libdata/pkgconfig/tre.pc
|
||||||
share/locale/fi/LC_MESSAGES/tre.mo
|
%%NLS%%share/locale/fi/LC_MESSAGES/tre.mo
|
||||||
@dirrm include/tre
|
@dirrm include/tre
|
||||||
|
|
Loading…
Add table
Reference in a new issue