diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-05-05 23:20:39 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-05-05 23:20:39 +0800 |
commit | 4bf35a3201aa8de77d085034a9340a3d1e0fe3ef (patch) | |
tree | e2ec6a5620af8cf315ffe98d0bbffb9d6f1b3c8f /x11-toolkits | |
parent | 44d5d9253a90dfd827bc1c391ec24f66fc8690d6 (diff) | |
download | freebsd-ports-gnome-4bf35a3201aa8de77d085034a9340a3d1e0fe3ef.tar.gz freebsd-ports-gnome-4bf35a3201aa8de77d085034a9340a3d1e0fe3ef.tar.zst freebsd-ports-gnome-4bf35a3201aa8de77d085034a9340a3d1e0fe3ef.zip |
- new option WITHOUT_NLS
PR: 146278
Submitted by: bf
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/Xaw3d/Makefile | 15 | ||||
-rw-r--r-- | x11-toolkits/Xaw3d/pkg-plist | 12 |
2 files changed, 21 insertions, 6 deletions
diff --git a/x11-toolkits/Xaw3d/Makefile b/x11-toolkits/Xaw3d/Makefile index b237409e3f45..83c1f13e5b95 100644 --- a/x11-toolkits/Xaw3d/Makefile +++ b/x11-toolkits/Xaw3d/Makefile @@ -24,11 +24,26 @@ USE_LDCONFIG= yes SUB_FILES= pkg-message SUB_LIST= XAWVER="${XAWVER}" +OPTIONS= NLS "Provide limited Natural Language Support via gettext" on + .include <bsd.port.pre.mk> +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " +.endif + post-extract: ${MKDIR} ${WRKSRC}/X11/Xaw3d cd ${WRKSRC}/X11/Xaw3d; ${LN} -sf ../../*.h . +.if defined(WITHOUT_NLS) + ${REINPLACE_CMD} -e '/LINTLIBS =/s/=.*/=/' \ + -e '/#ifdef XawI18nDefines/s//#if 0/' \ + ${WRKSRC}/Imakefile + +.endif # Workaround a bug in egcs on FreeBSD/Alpha. .if ${ARCH} == "alpha" diff --git a/x11-toolkits/Xaw3d/pkg-plist b/x11-toolkits/Xaw3d/pkg-plist index 77a942a7cd44..564b2b2e5e93 100644 --- a/x11-toolkits/Xaw3d/pkg-plist +++ b/x11-toolkits/Xaw3d/pkg-plist @@ -28,10 +28,10 @@ include/X11/Xaw3d/List.h include/X11/Xaw3d/ListP.h include/X11/Xaw3d/MenuButtoP.h include/X11/Xaw3d/MenuButton.h -include/X11/Xaw3d/MultiSink.h -include/X11/Xaw3d/MultiSinkP.h -include/X11/Xaw3d/MultiSrc.h -include/X11/Xaw3d/MultiSrcP.h +%%NLS%%include/X11/Xaw3d/MultiSink.h +%%NLS%%include/X11/Xaw3d/MultiSinkP.h +%%NLS%%include/X11/Xaw3d/MultiSrc.h +%%NLS%%include/X11/Xaw3d/MultiSrcP.h include/X11/Xaw3d/Paned.h include/X11/Xaw3d/PanedP.h include/X11/Xaw3d/Panner.h @@ -74,11 +74,11 @@ include/X11/Xaw3d/Toggle.h include/X11/Xaw3d/ToggleP.h include/X11/Xaw3d/Tree.h include/X11/Xaw3d/TreeP.h -include/X11/Xaw3d/VendorEP.h +%%NLS%%include/X11/Xaw3d/VendorEP.h include/X11/Xaw3d/Viewport.h include/X11/Xaw3d/ViewportP.h include/X11/Xaw3d/Xaw3dP.h -include/X11/Xaw3d/XawImP.h +%%NLS%%include/X11/Xaw3d/XawImP.h include/X11/Xaw3d/XawInit.h %%PORTDOCS%%share/doc/Xaw3d/README.XAW3D @dirrm include/X11/Xaw3d |