diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-05-05 15:20:39 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-05-05 15:20:39 +0000 |
commit | 0d1c72588e7c8cfa66717217f57231394ab21924 (patch) | |
tree | 64e1e1cd11e71be65fa02e505184b4724409b13c /x11-toolkits/Xaw3d | |
parent | 183701704008a44d560954b00b17a3f4fdf9ba4f (diff) | |
download | ports-0d1c72588e7c8cfa66717217f57231394ab21924.tar.gz ports-0d1c72588e7c8cfa66717217f57231394ab21924.zip |
Notes
Diffstat (limited to 'x11-toolkits/Xaw3d')
-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 |