summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2012-08-03 15:34:45 +0000
committerRenato Botelho <garga@FreeBSD.org>2012-08-03 15:34:45 +0000
commit90d97bb7c0b335bf482b1243aaab6676246ab4ea (patch)
tree840e8379f841715c5db9a647458ff49f7766d803 /sysutils
parentUpdate to version 0.38. (diff)
Add DOCS, EXAMPLES and NLS to OPTIONS_DEFINE to my ports
Notes
Notes: svn path=/head/; revision=301957
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/wmcube-gdk/Makefile11
-rw-r--r--sysutils/wmcube/Makefile9
2 files changed, 15 insertions, 5 deletions
diff --git a/sysutils/wmcube-gdk/Makefile b/sysutils/wmcube-gdk/Makefile
index 75642f4b4ecb..ff20cf49270f 100644
--- a/sysutils/wmcube-gdk/Makefile
+++ b/sysutils/wmcube-gdk/Makefile
@@ -16,6 +16,9 @@ DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
MAINTAINER= garga@FreeBSD.org
COMMENT= A modified version of the dockapp wmCube
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
+
USE_XORG= xpm
USE_GNOME= gtk12
MAKEFILE= Makefile.FREEBSD
@@ -26,6 +29,8 @@ DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
PORTDOCS= CHANGES README README.GDK TODO
+.include <bsd.port.pre.mk>
+
do-install:
@${INSTALL_PROGRAM} -m 2755 -o root -g kmem ${WRKSRC}/wmcube \
${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
@@ -35,12 +40,12 @@ post-install:
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/3dObjects/${files} ${DATADIR}
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
. for doc in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
. endfor
-.endif #NOPORTDOCS
+.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/sysutils/wmcube/Makefile b/sysutils/wmcube/Makefile
index c349cef8016a..2d7c1e6a8739 100644
--- a/sysutils/wmcube/Makefile
+++ b/sysutils/wmcube/Makefile
@@ -17,6 +17,9 @@ MASTER_SITE_SUBDIR= x11/dock
MAINTAINER= garga@FreeBSD.org
COMMENT= Window Maker dockapp that displays cpu load and a realtime 3D object
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
+
WRKSRC= ${WRKDIR}/${PORTNAME}/${PORTNAME}
USE_XORG= xpm
MAKEFILE= Makefile.FREEBSD
@@ -25,6 +28,8 @@ SUB_FILES= pkg-message
USE_CSTD= gnu89
MAKE_JOBS_UNSAFE= yes
+.include <bsd.port.pre.mk>
+
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/wmcube ${PREFIX}/bin
@${CHMOD} g+s ${PREFIX}/bin/wmcube
@@ -36,7 +41,7 @@ post-install:
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 555 ${DATADIR}
@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/3dObjects/${file} ${DATADIR}
.endfor
-.ifndef(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO} "===> Installing README in ${PREFIX}/share/doc/${PORTNAME}"
@${ECHO} "===> Please Read pkg-descr and README for usage information"
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 555 ${DOCSDIR}
@@ -46,4 +51,4 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>