diff options
-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 |