summaryrefslogtreecommitdiff
path: root/emulators/suse_linux
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-19 23:27:34 +0000
committerjlam <jlam>2006-06-19 23:27:34 +0000
commit7e925fbdec353c2f322700cb994202703a33fd5b (patch)
treebfb8838cf691d85db3fc95bbbd2f73a808fd3e40 /emulators/suse_linux
parent87b45d4855f830cc2fad7444a89ddac7b34cc723 (diff)
downloadpkgsrc-7e925fbdec353c2f322700cb994202703a33fd5b.tar.gz
Cleanup fallout from {DE,}INSTALL_SRC removal: rewrite the INSTALL
script to be of the format expected by the pkginstall framework and remove the explicit invocation of the INSTALL script from the post-install target. Also, split out the important text from the INSTALL script and put it into a MESSAGE file. Also, remove the unused show-shlib-type target.
Diffstat (limited to 'emulators/suse_linux')
-rw-r--r--emulators/suse_linux/Makefile.common15
1 files changed, 11 insertions, 4 deletions
diff --git a/emulators/suse_linux/Makefile.common b/emulators/suse_linux/Makefile.common
index e74ded30822..88cbe686c1d 100644
--- a/emulators/suse_linux/Makefile.common
+++ b/emulators/suse_linux/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.22 2005/12/12 14:43:25 joerg Exp $
+# $NetBSD: Makefile.common,v 1.23 2006/06/19 23:27:34 jlam Exp $
.include "../../emulators/suse_linux/vars.mk"
.include "../../emulators/suse_linux/arch.mk"
@@ -24,6 +24,16 @@ MANCOMPRESSED?= yes
EMULSUBDIR= emul/linux
EMULDIR= ${PREFIX}/${EMULSUBDIR}
+# Set location of OPSYS-specific emulation directory
+.if ${OPSYS} == "NetBSD"
+OPSYS_EMULDIR= /${EMULSUBDIR}
+.elif (${OPSYS} == "FreeBSD") || (${OPSYS} == "DragonFly")
+OPSYS_EMULDIR= /compat/${EMULSUBDIR:T}
+.else
+OPSYS_EMULDIR= /${EMULSUBDIR}
+.endif
+FILES_SUBST+= OPSYS_EMULDIR=${OPSYS_EMULDIR:Q}
+
RPM2PKG= ${PREFIX}/sbin/rpm2pkg
BUILD_DEPENDS+= rpm2pkg>=2.1:../../pkgtools/rpm2pkg
@@ -59,6 +69,3 @@ do-install:
${ECHO} "@unexec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR} 2>/dev/null" >>${PLIST_SRC}; \
fi
.endif
-
-show-shlib-type:
- @${ECHO} linux-${MACHINE_ARCH}