aboutsummaryrefslogtreecommitdiff
path: root/sysutils/hpacucli
diff options
context:
space:
mode:
authorStefan Walter <stefan@FreeBSD.org>2009-01-28 09:23:09 +0000
committerStefan Walter <stefan@FreeBSD.org>2009-01-28 09:23:09 +0000
commitaa11ea7f3d4b9a1b98fa204587ceae6a4d4b924e (patch)
tree3f4c901ced29e6a06a4818191c01d13c7328146a /sysutils/hpacucli
parent5b54e09ff2e3547a383c799d7f83ae864f3c2063 (diff)
Use USE_LDCONFIG32 on amd64.
PR: 128288 Submitted by: Oleg Gawriloff <barzog@telecom.by> Patch by: Yuri Pankov (on IRC)
Notes
Notes: svn path=/head/; revision=227037
Diffstat (limited to 'sysutils/hpacucli')
-rw-r--r--sysutils/hpacucli/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/sysutils/hpacucli/Makefile b/sysutils/hpacucli/Makefile
index 19ff01c13d27..77cf7ea39cf3 100644
--- a/sysutils/hpacucli/Makefile
+++ b/sysutils/hpacucli/Makefile
@@ -7,7 +7,7 @@
PORTNAME= hpacucli
PORTVERSION= 7.50
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= brooks
@@ -23,9 +23,6 @@ IA32_BINARY_PORT= yes
LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
-APP_PREFIX= lib/compaq/hpacucli
-USE_LDCONFIG= ${PREFIX}/${APP_PREFIX}
-
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/${PORTNAME}
@@ -35,4 +32,13 @@ do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/.${PORTNAME} ${PREFIX}/libexec/
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+APP_PREFIX= lib/compaq/hpacucli
+.if ${ARCH} == amd64
+USE_LDCONFIG32= ${PREFIX}/${APP_PREFIX}
+.else
+USE_LDCONFIG= ${PREFIX}/${APP_PREFIX}
+.endif
+
+.include <bsd.port.post.mk>