mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Support WITHOUT_NLS
This commit is contained in:
parent
7113db1204
commit
8d30470d24
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113344
@ -17,10 +17,17 @@ COMMENT= Super-sed is a heavily enhanced version of sed
|
||||
|
||||
LIB_DEPENDS= iconv:${PORTSDIR}/converters/libiconv
|
||||
|
||||
USE_GETTEXT= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} --program-prefix=s
|
||||
|
||||
MAN1= ssed.1
|
||||
|
||||
.if !defined(WITHOUT_NLS)
|
||||
USE_GETTEXT= yes
|
||||
PLIST_SUB+= NLS=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-nls
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,10 +1,10 @@
|
||||
bin/ssed
|
||||
share/locale/nl/LC_MESSAGES/ssed.mo
|
||||
share/locale/fr/LC_MESSAGES/ssed.mo
|
||||
share/locale/ru/LC_MESSAGES/ssed.mo
|
||||
share/locale/de/LC_MESSAGES/ssed.mo
|
||||
share/locale/it/LC_MESSAGES/ssed.mo
|
||||
share/locale/el/LC_MESSAGES/ssed.mo
|
||||
share/locale/sk/LC_MESSAGES/ssed.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/ssed.mo
|
||||
share/locale/sv/LC_MESSAGES/ssed.mo
|
||||
%%NLS%%share/locale/nl/LC_MESSAGES/ssed.mo
|
||||
%%NLS%%share/locale/fr/LC_MESSAGES/ssed.mo
|
||||
%%NLS%%share/locale/ru/LC_MESSAGES/ssed.mo
|
||||
%%NLS%%share/locale/de/LC_MESSAGES/ssed.mo
|
||||
%%NLS%%share/locale/it/LC_MESSAGES/ssed.mo
|
||||
%%NLS%%share/locale/el/LC_MESSAGES/ssed.mo
|
||||
%%NLS%%share/locale/sk/LC_MESSAGES/ssed.mo
|
||||
%%NLS%%share/locale/pt_BR/LC_MESSAGES/ssed.mo
|
||||
%%NLS%%share/locale/sv/LC_MESSAGES/ssed.mo
|
||||
|
@ -15,7 +15,6 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
MAINTAINER= yinjieh@csie.nctu.edu.tw
|
||||
COMMENT= Library to read digital camera file meta-data
|
||||
|
||||
USE_GETTEXT= yes
|
||||
USE_GNOME= gnomehack gnometarget pkgconfig
|
||||
USE_INC_LIBTOOL_VER=13
|
||||
USE_REINPLACE= yes
|
||||
@ -23,6 +22,14 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib -lintl"
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
.if !defined(WITHOUT_NLS)
|
||||
USE_GETTEXT= yes
|
||||
PLIST_SUB+= NLS=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-nls
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-g -Wall||g' ${WRKSRC}/configure
|
||||
|
||||
|
@ -12,7 +12,7 @@ lib/libexif.a
|
||||
lib/libexif.so
|
||||
lib/libexif.so.10
|
||||
libdata/pkgconfig/libexif.pc
|
||||
share/locale/de/LC_MESSAGES/libexif.mo
|
||||
share/locale/es/LC_MESSAGES/libexif.mo
|
||||
share/locale/fr/LC_MESSAGES/libexif.mo
|
||||
%%NLS%%share/locale/de/LC_MESSAGES/libexif.mo
|
||||
%%NLS%%share/locale/es/LC_MESSAGES/libexif.mo
|
||||
%%NLS%%share/locale/fr/LC_MESSAGES/libexif.mo
|
||||
@dirrm include/libexif
|
||||
|
Loading…
Reference in New Issue
Block a user