aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-05-26 08:06:46 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-05-26 08:06:46 +0800
commit7e79240c653485cf22ba864a032c8186ad5563bb (patch)
treed48d81084718d73eed9e69d22e6a5344dacf6b68 /x11-toolkits
parent74812fecb9948cef21cf6b88e01a096821d6bd55 (diff)
downloadfreebsd-ports-gnome-7e79240c653485cf22ba864a032c8186ad5563bb.tar.gz
freebsd-ports-gnome-7e79240c653485cf22ba864a032c8186ad5563bb.tar.zst
freebsd-ports-gnome-7e79240c653485cf22ba864a032c8186ad5563bb.zip
- Use options helpers
- Strip library
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/Xaw3d/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/x11-toolkits/Xaw3d/Makefile b/x11-toolkits/Xaw3d/Makefile
index 135292a59fb9..c01ea10f0e24 100644
--- a/x11-toolkits/Xaw3d/Makefile
+++ b/x11-toolkits/Xaw3d/Makefile
@@ -3,7 +3,7 @@
PORTNAME= Xaw3d
PORTVERSION= 1.5E
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= x11-toolkits
MASTER_SITES= http://slackware.cs.utah.edu/pub/slackware/slackware64-13.1/source/x/xaw3d/
@@ -12,7 +12,6 @@ COMMENT= 3-D Athena Widget set that looks like Motif
LICENSE= MIT
-OPTIONS_DEFINE= DOCS NLS
WRKSRC= ${WRKDIR}/xc/lib/Xaw3d
USES= imake
USE_XORG= x11 xext xmu xt sm ice xpm
@@ -22,14 +21,11 @@ SUB_FILES= pkg-message
XAWVER= 8
SUB_LIST= XAWVER="${XAWVER}"
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+NLS_USES= gettext
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
+.include <bsd.port.options.mk>
post-extract:
@${MKDIR} ${WRKSRC}/X11/Xaw3d
@@ -41,6 +37,7 @@ post-extract:
.endif
post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libXaw3d.so
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.XAW3D ${STAGEDIR}${DOCSDIR}/