1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- use OPTIONS_DEFINE

- new option WITHOUT_NLS
This commit is contained in:
Dirk Meyer 2012-09-29 19:18:19 +00:00
parent 4d3e5a2345
commit 27922e59f1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305048
2 changed files with 43 additions and 24 deletions

View File

@ -54,13 +54,32 @@ CONFLICTS?= a2ps-a4-4.* a2ps-letter-4.*
.endif
.endif
.if defined(WITH_EMACS)
OPTIONS_DEFINE=NLS I18N EMACS
OPTIONS_DEFAULT=NLS
NO_OPTIONS_SORT=yes
EMACS_DESC=Enable Emacs support
I18N_DESC=Enable I18N support
.include <bsd.port.options.mk>
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MEMACS}
USE_EMACS= yes
CONFIGURE_ARGS+= --with-lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR}
PLIST_SUB+= WITHEMACS=""
.else
CONFIGURE_ENV+= EMACS=no
PLIST_SUB+= WITHEMACS="@comment "
.endif
.if defined(WITH_I18N)
.if ${PORT_OPTIONS:MI18N}
PLIST_SUB+= WITHI18N=""
pre-configure:
@ -81,7 +100,7 @@ PLIST_SUB+= WITHI18N="@comment "
post-install:
${STRIP_CMD} ${PREFIX}/bin/a2ps
.if defined(WITH_EMACS)
.if ${PORT_OPTIONS:MEMACS}
${MKDIR} ${PREFIX}/lib/xemacs/site-lisp
${LN} -sf ${PREFIX}/share/emacs/site-lisp/a2ps-print.el \
${PREFIX}/lib/xemacs/site-lisp/a2ps-print.el

View File

@ -259,27 +259,27 @@ lib/liba2ps.a
%%DATADIR%%/sheets/xs.ssh
%%DATADIR%%/sheets/yacc.ssh
%%DATADIR%%/sheets/zsh.ssh
share/locale/ca/LC_MESSAGES/a2ps.mo
share/locale/cs/LC_MESSAGES/a2ps.mo
share/locale/da/LC_MESSAGES/a2ps.mo
share/locale/de/LC_MESSAGES/a2ps.mo
share/locale/es/LC_MESSAGES/a2ps.mo
share/locale/et/LC_MESSAGES/a2ps.mo
share/locale/fr/LC_MESSAGES/a2ps.mo
share/locale/it/LC_MESSAGES/a2ps.mo
share/locale/ko/LC_MESSAGES/a2ps.mo
share/locale/nl/LC_MESSAGES/a2ps.mo
share/locale/no/LC_MESSAGES/a2ps.mo
share/locale/pl/LC_MESSAGES/a2ps.mo
share/locale/pt/LC_MESSAGES/a2ps.mo
share/locale/ru/LC_MESSAGES/a2ps.mo
share/locale/sl/LC_MESSAGES/a2ps.mo
share/locale/sv/LC_MESSAGES/a2ps.mo
share/locale/tr/LC_MESSAGES/a2ps.mo
%%WITHEMACS%%share/emacs/site-lisp/a2ps-print.el
%%WITHEMACS%%share/emacs/site-lisp/a2ps.el
%%WITHEMACS%%lib/xemacs/site-lisp/a2ps-print.el
%%WITHEMACS%%lib/xemacs/site-lisp/a2ps.el
%%NLS%%share/locale/ca/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/cs/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/da/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/de/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/es/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/et/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/fr/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/it/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/ko/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/nl/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/no/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/pl/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/pt/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/ru/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/sl/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/sv/LC_MESSAGES/a2ps.mo
%%NLS%%share/locale/tr/LC_MESSAGES/a2ps.mo
%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps-print.el
%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps-print.elc
%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps.el
%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps.elc
@dirrm %%DATADIR%%/ogonkify/fonts
@dirrm %%DATADIR%%/ogonkify/afm
@dirrm %%DATADIR%%/ogonkify