aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/asr-utils
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2005-06-07 17:12:44 +0800
committererwin <erwin@FreeBSD.org>2005-06-07 17:12:44 +0800
commit87e575f233bad13c4487d91bde45974c435c2dcf (patch)
tree0564b5c5c9d78e8f3da841f0a5b894ad9733eb14 /sysutils/asr-utils
parentba9531226cded81d79173179314162c88a964c3f (diff)
downloadfreebsd-ports-graphics-87e575f233bad13c4487d91bde45974c435c2dcf.tar.gz
freebsd-ports-graphics-87e575f233bad13c4487d91bde45974c435c2dcf.tar.zst
freebsd-ports-graphics-87e575f233bad13c4487d91bde45974c435c2dcf.zip
Add a WIHTOUT_X11 knob that only installes the CLI raidutil
Approved by: maintainer (earlier version)
Diffstat (limited to 'sysutils/asr-utils')
-rw-r--r--sysutils/asr-utils/Makefile18
-rw-r--r--sysutils/asr-utils/pkg-plist28
2 files changed, 30 insertions, 16 deletions
diff --git a/sysutils/asr-utils/Makefile b/sysutils/asr-utils/Makefile
index 4ffe5f89427..74904794e56 100644
--- a/sysutils/asr-utils/Makefile
+++ b/sysutils/asr-utils/Makefile
@@ -20,10 +20,13 @@ COMMENT= Adaptec ASR RAID Management Software
ONLY_FOR_ARCHS= i386
NO_WRKSUBDIR= yes
+BINS= raidutil
+.ifndef (WITHOUT_X11)
USE_XLIB= yes
-BINS= dptcom dpteng dptscom dptsig raidutil dptmgr
+BINS+= dptcom dpteng dptscom dptsig dptmgr
+.endif
-.if !exists(${X11BASE}/lib/libXm.so.1)
+.if !defined(WITHOUT_X11) && !exists(${X11BASE}/lib/libXm.so.1)
# we shall install our own libXm.so.1, enable it in pkg-plist
PLIST_SUB+= LIBXM=""
.else
@@ -36,6 +39,8 @@ PLIST_SUB+= LIBXM="@comment "
LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
.endif
+.ifndef (WITHOUT_X11)
+PLIST_SUB+= X11=""
do-build:
${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
${FILESDIR}/dptmgr.sh.in > ${WRKDIR}/dptmgr.sh
@@ -53,5 +58,14 @@ do-install:
.if !exists(${X11BASE}/lib/libXm.so.1)
${INSTALL_SCRIPT} ${WRKSRC}/libXm.so.1 ${X11BASE}/lib
.endif
+.else
+NO_BUILD= yes
+PLIST_SUB+= X11="@comment "
+do-install:
+ ${MKDIR} ${PREFIX}/dpt
+ cd ${WRKSRC} ; ${INSTALL_PROGRAM} ${BINS} ${PREFIX}/dpt ; \
+ ${INSTALL_DATA} read.me ${PREFIX}/dpt
+ ${LN} -sf ${PREFIX}/dtp/${BINS} ${PREFIX}/bin
+.endif
.include <bsd.port.post.mk>
diff --git a/sysutils/asr-utils/pkg-plist b/sysutils/asr-utils/pkg-plist
index 542f99245d4..9763d62bdff 100644
--- a/sysutils/asr-utils/pkg-plist
+++ b/sysutils/asr-utils/pkg-plist
@@ -1,19 +1,19 @@
@comment $FreeBSD$
-bin/dptcom
-bin/dpteng
-bin/dptmgr
-bin/dptscom
-bin/dptsig
+%%X11%%bin/dptcom
+%%X11%%bin/dpteng
+%%X11%%bin/dptmgr
+%%X11%%bin/dptscom
+%%X11%%bin/dptsig
bin/raidutil
-dpt/dptcom
-dpt/dptcom.chk
-dpt/dpteng
-dpt/dptmgr
-dpt/dptmgr.hlp
-dpt/dptmgr.ini
-dpt/dptmgr.rsc
-dpt/dptscom
-dpt/dptsig
+%%X11%%dpt/dptcom
+%%X11%%dpt/dptcom.chk
+%%X11%%dpt/dpteng
+%%X11%%dpt/dptmgr
+%%X11%%dpt/dptmgr.hlp
+%%X11%%dpt/dptmgr.ini
+%%X11%%dpt/dptmgr.rsc
+%%X11%%dpt/dptscom
+%%X11%%dpt/dptsig
dpt/raidutil
dpt/read.me
%%LIBXM%%@cwd %%X11BASE%%